Angular Dynamic Locale

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

  Download   View on GitHub

What is this?

This angular module makes it possible to programmatically change the current locale.

How do I use it?

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'])

Example

Pick a locale

Selected locale id: en

Current locale id: en-us

A big number: 1,234,567,890

The Epoch was on: Jan 1, 1970

One million of the local currency: $1,000,000.00