core
core copied to clipboard
Translate texts to specific language
Current behavior
Current get/instant methods do not allow to load string in a specific language:
instant(key: string|Array<string>, interpolateParams?: Object): string|Object
Expected behavior
I would love to see additional attribute like language.
instant(key: string|Array<string>, interpolateParams?: Object, language?: string): string|Object
What is the motivation / use case for changing the behavior?
There are several places where I have to use translated texts from all languages.
I need this too.
me too
I need this too, badly.
@androdel This can be achieved using fixed language translation of an extension package @rxweb/ngx-translate-extension. Have a look at the documentation of fixed language translation. For getting started with package refer Extensible Guide
We need this
We need this :)