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

Change language "on the fly" globally #110

Open
antalmate12 opened this issue Nov 30, 2022 · 0 comments
Open

Change language "on the fly" globally #110

antalmate12 opened this issue Nov 30, 2022 · 0 comments

Comments

@antalmate12
Copy link
Contributor

Is your feature request related to a problem? Please describe.
It would be nice to have an option to change the language of the component "on the fly", for example if I have a big application with multiple languages, I'd set the default language like:

MatSelectCountryModule.forRoot('en'),

Describe the solution you'd like
We could maybe add a service that can also control the language, and we could just call it when the entire app's language changes like:

this.selectCountryService.selectLanguage('hu')

so, that I don't have to get the currently selected app language and pass it to select-country every time as an Input

@antalmate12 antalmate12 changed the title Change language "on the fly" Change language "on the fly" globally Nov 30, 2022
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

No branches or pull requests

1 participant