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

Possibility to change the i18n lang outside of the forRootmodule declaration #67

Open
descl opened this issue May 7, 2021 · 2 comments

Comments

@descl
Copy link

descl commented May 7, 2021

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

@AnthonyNahas
Copy link
Member

@descl thanks for opening this ticket.

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

@Rogermax
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants