A small and simple provider for changing locale in angular.
To use, import module
'troch.l10n' in your app.
By default, no locales are included in angular-l10n.js. All locales available with angularjs can be used in your applicaation. For including locales you need in your app:
Run the following command line with the locales you want to be available in your angular application. Example:
grunt --locales=['en-gb', 'fr-fr']
/*LOCALES_HERE*/ in angular-l10n.js by the locales required in your application. All the locales are located in folders
locale/min (non-uglified and uglified files). The final file should look like this:
How to use
Set locale in app config
This will set the locale your application will start with.
Change locale from anywhere in your app
$l10n needs to be injected in your controller or directive