select-country
select-country copied to clipboard
Possibility to change the i18n lang outside of the `forRoot`module declaration
Is your feature request related to a problem? Please describe.
Actually our application is translated in several langs and use ngx-translate
to manage that. So when one of our users connect to the app we set is langage via this.translate.use(lang);
But with your (awesome ;)) extension the lang is specified directly in the module declaration so it can't be changed afterwords.
Describe the solution you'd like Would love to have a service associated to your extension in order to change the lang of the module. Or at least a new parameter in the attributes to specify the lang?
Thanks again for your lib, Chris
@descl thanks for opening this ticket.
May you prove a suitable PR for that? That would be awesome!
I made a PR trying to solve it with an input property. It seems to work.