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

Possibility to change the i18n lang outside of the `forRoot`module declaration

Open descl opened this issue 3 years ago • 2 comments

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 avatar May 07 '21 10:05 descl

@descl thanks for opening this ticket.

May you prove a suitable PR for that? That would be awesome!

AnthonyNahas avatar Jun 02 '21 11:06 AnthonyNahas

I made a PR trying to solve it with an input property. It seems to work.

Rogermax avatar Aug 31 '21 22:08 Rogermax