A library to change the locale at runtime. It changes the underlying $locale
object, so changing the locale will change the formatting of all elements that use $locale
This angular module makes it possible to programmatically change the current locale.
Install it via npm or bower
$ npm install angular-dynamic-locale $ bower install angular-dynamic-locale
To use, simply include it as a dependency in your app and you're done!
angular.module('myApp', ['tmh.dynamicLocale'])
Pick a locale
Selected locale id: {{model.selectedLocale}}
Current locale id: {{$locale.id}}
A big number: {{1234567890 | number}}
The Epoch was on: {{0 | date}}
One million of the local currency: {{1000000 | currency}}