We have a website with angular translate. It works perfectly. We have a variable that we want to fixate with a certain language key. Let\'s say the site\'s language has \'en
It seems like you don't use the method correctly, or probably just misunderstood it.
$translate.instant('ID')
expects the translation id as first parameter and interpolation params as second parameter. It then translate the id synchronously instead of asynchronously (which is what $translate()
does).
What you want is explicitly translating a translation id in a certain locale no matter what language key is currently used. This is currently not supported yet.
Hope that makes things clear.