{{ 'about' | i18n }}
{{ 'text.moduleDescLong' | i18n }}
{{ 'usage' | i18n }}
{{ 'usage.intro' | i18n }}
{{ 'label.setup' | i18n }}
angular.module('app', [
'ngI18n',
'ngI18nLangSelect'
])
.config(function(I18NProvider) {
var i18nConfig = {
// local or remote directory containing language files
langsDir: 'assets/lang/',
default: {
locale: 'en-us',
name: 'English'
},
// locale property should match language filenames
langs: [{
locale: 'en-us',
name: 'English'
}, {
locale: 'pt-pt',
name: 'Portuguese'
}]
};
I18NProvider.config(i18nConfig);
})
{{ 'label.filter' | i18n }}
{{ 'keyInLanguageFile' | i18n }}
{{ 'label.directive' | i18n }}
{{ 'text.aboutDirective' | i18n }}
<ng-i18n key="theKey" foo="bar" baz="qux"></ng-i18n>