-
Notifications
You must be signed in to change notification settings - Fork 55
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
Questions/Feature Request: "polluting" components / translate pipe without language parameter #46
Comments
Hi Matthias,
The value of
Greetings, Roberto |
Hi Roberto, thanks a lot for explaing things helping me out :)
i had to use <div translate>foo</div> and this didn't work: <div translate>
foo
</div> Probably because of the spaces - if there is no reason to keep it this way you might consider to trim the white spaces :)
Can you provide an example with Advanced Initialization or is this what you mean with it? I'd rather not "code" the translation, on the other hand i could just use seperate .ts files instead of json for that Thanks and best regards, |
Just saw #33, sorry :-) |
No problem.
Greetings, Roberto |
I'm closing it. If you need, open a new issue. Greetings |
I use your great localization library accross multiple modules and components and setup everything in my AppModule including setting the locale/language like described [here] +
setCurrentLocale()
.(https://github.com/robisim74/angular2localization/blob/master/doc/quick-start.md)So far, so good, now my questions regarding using it:
Do i have to pollute" all my components with extends locale and so on? It seems to work without it which i would highly appreciate
If i don't have to pollute my components, there is an issue with the lang parameter of the translate pipe:
{{ 'foo' | translate }}
so that the language that has been setup on bootstrap is used. But currently the texts are not translated and i get an empty outputCan you make the lang parameter optional so that the default is beeing used? Might also be related to #45
Is there already a working solution for this?
Thanks and best regards,
Matthias
The text was updated successfully, but these errors were encountered: