To change the dynamic language of the application, you need angular-dynamic-locale , and you also need other locale files (English comes with angular) from ngLocale .
This is where plunker works.
You need to catch the broadcast of events, because we want to change the language standard when changing the language. Therefore, for this purpose, I used the $translateChangeSuccess event to set the selected language as the new locale.
$rootScope.$on('$translateChangeSuccess', function (event, data) { tmhDynamicLocale.set(data.language); });
Here is a list of all $ translate events .
source share