Skip to content

Instantly share code, notes, and snippets.

@Xanir Xanir/Generic
Last active Aug 29, 2015

Embed
What would you like to do?
Angular I18N Initalization Format
(function (angular) {
"use strict";
var mod;
try {
mod = angular.module(!*ANGULAR_PACKAGE*!);
} catch(e) {}
if (mod) {
mod.config(function ($translateProvider) {
var i18nValues = !*LOCALE_MAP*!;
$translateProvider.translations(!*LOCALE_CODE*!, i18nValues);
$translateProvider.use(!*LOCALE_CODE*!);
});
}
})(angular);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.