Rename window.env to window.config

Also normalize to camelCase for configs.

// FREEBIE
This commit is contained in:
lilia 2017-04-13 10:47:30 -07:00 committed by Scott Nonnenberg
parent 75f4c3c522
commit c83dbc1bf0
No known key found for this signature in database
GPG key ID: A4931C09644C654B
8 changed files with 12 additions and 12 deletions

View file

@ -3,7 +3,7 @@
*/
;(function() {
'use strict';
var json = window.env.locale_json;
var json = window.config.locale_json;
window.i18n = function (message, substitutions) {
if (!json[message]) {
return;
@ -20,6 +20,6 @@
};
i18n.getLocale = function() {
return window.env.locale;
return window.config.locale;
};
})();