Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Message translation on language change #1063

Merged
merged 12 commits into from
Oct 24, 2022
Merged

Message translation on language change #1063

merged 12 commits into from
Oct 24, 2022

Conversation

pelord
Copy link
Member

@pelord pelord commented May 30, 2022

Please check if the PR fulfills these requirements

What is the current behavior? (You can also link to an open issue here)
If the app language is changed... there is no method to translated active message

What is the new behavior?
1- Add a method to translate dynamically the active message
2- observable for language change
3- TODO pass to messageService a key/interpolation params instead of a translated message.

Does this PR introduce a breaking change? (check one with "x")

  • Yes
  • No

If this PR contains a breaking change, please describe the impact and migration path for existing applications:

Other information:

@pelord
Copy link
Member Author

pelord commented Jun 9, 2022

@PhilippeLafreniere18 reported to 1.13... too much changes

@pelord pelord marked this pull request as draft June 9, 2022 20:42
@pelord pelord added the to test Issues that need testing by PO // Demandes qui ont besoin d'être testées par un pilote label Oct 24, 2022
@pelord pelord marked this pull request as ready for review October 24, 2022 13:17
@pelord
Copy link
Member Author

pelord commented Oct 24, 2022

#1110

@pelord pelord merged commit 337f0cc into next Oct 24, 2022
@pelord pelord deleted the messageTranslation branch October 24, 2022 14:05
cbourget pushed a commit that referenced this pull request Mar 21, 2023
* feat(language): provide an observable to monitor language change

* feat(message): translate message (ngx-toastr) while shown

* refactor(messageservice): allow interpolate param on language change.

* Update message.service.ts

* refactor(messageservice): allow interpolate param on language change.

* lint

* lint

Co-authored-by: Pierre-Étienne Lord
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
to test Issues that need testing by PO // Demandes qui ont besoin d'être testées par un pilote
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant