Skip to content

VSB-TUO/Context language when sending the archive email upon submission#1118

Merged
milanmajchrak merged 3 commits intocustomer/vsb-tuofrom
vsb-tuo/use-context-language-when-submit-archive-mail-is-send
Oct 16, 2025
Merged

VSB-TUO/Context language when sending the archive email upon submission#1118
milanmajchrak merged 3 commits intocustomer/vsb-tuofrom
vsb-tuo/use-context-language-when-submit-archive-mail-is-send

Conversation

@Paurikova2
Copy link
Collaborator

Phases MP MM MB MR JM Total
ETA 0 0 0 0 0 0
Developing 2 0 0 0 0 0
Review 0 0 0 0 0 0
Total - - - - - 0
ETA est. 0
ETA cust. - - - - - 0

Problem Description

The system does not send the email in English when I create an item — it always sends it in Czech.

Solution

Use the context language when sending the archive email upon submission.

@Paurikova2 Paurikova2 self-assigned this Oct 14, 2025
@Paurikova2 Paurikova2 changed the base branch from dtq-dev to customer/vsb-tuo October 14, 2025 11:27
@Paurikova2 Paurikova2 requested a review from Copilot October 14, 2025 11:27
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes the language localization issue where submission archive emails were always sent in Czech instead of the user's preferred language. The change uses the context's current locale instead of the submitter's EPerson locale when determining the email template language.

  • Modified email template selection to use context locale instead of EPerson locale
  • Removes unused locale variable that was fetching the EPerson's locale

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@Paurikova2
Copy link
Collaborator Author

@milanmajchrak we also have to add this to UFAL

@milanmajchrak milanmajchrak merged commit acc6d73 into customer/vsb-tuo Oct 16, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

VSB-TUO/It doesn’t send the email in English when I create an item — it always sends it in Czech.

3 participants