core icon indicating copy to clipboard operation
core copied to clipboard

Translate texts to specific language

Open rafalschmidt97 opened this issue 4 years ago • 6 comments

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.

rafalschmidt97 avatar Jul 18 '19 17:07 rafalschmidt97

I need this too.

zedL avatar Sep 05 '19 06:09 zedL

me too

Alan-Bohan avatar Dec 26 '19 04:12 Alan-Bohan

I need this too, badly.

gustavshf avatar Aug 11 '20 14:08 gustavshf

@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

Ushmidave avatar Aug 31 '20 07:08 Ushmidave

We need this

FractalMind avatar Jun 06 '22 21:06 FractalMind

We need this :)

hari-resimator avatar Aug 03 '23 05:08 hari-resimator