i18n_.js
403 Bytes
var mixIn = require('../object/mixIn');
var enUS = require('./i18n/en-US');
// we also use mixIn to make sure we don't affect the original locale
var activeLocale = mixIn({}, enUS, {
// we expose a "set" method to allow overriding the global locale
set : function(localeData){
mixIn(activeLocale, localeData);
}
});
module.exports = activeLocale;