My question is about ngx translate in angular2. My project supports 2 languages: English and Arabic and hence there is en.json and ar.json files. The below code will give me translated value of key based on my current language
this.translate.get('key').subscribe((msg: string) => {
console.log(msg);
}
Question: How do I pass a specific language as input and get the translation for that specific language? For eg, my current language is English (and don't want to change the current language), but from the ts file, I need to retrieve the Arabic translation for a key from ar.json without changing the current language.