select-country icon indicating copy to clipboard operation
select-country copied to clipboard

Change language "on the fly" globally

Open antalmate12 opened this issue 3 years ago • 0 comments

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 avatar Nov 30 '22 11:11 antalmate12