Fixed JSON error in Chrome App mode

This commit is contained in:
Igor Zhukov 2014-09-19 18:32:54 +04:00
parent 63091d1d8f
commit f82fd9db08

View File

@ -123,7 +123,7 @@
);
}
$.get('js/locales/' + Config.I18n.locale + '.json').success(function (json) {
$.getJSON('js/locales/' + Config.I18n.locale + '.json').success(function (json) {
Config.I18n.messages = json;
bootReady.i18n_messages = true;
if (locale == defaultLocale) { // No fallback, leave empty object
@ -133,7 +133,7 @@
});
if (Config.I18n.locale != defaultLocale) {
$.get('js/locales/en-us.json').success(function (json) {
$.getJSON('js/locales/' + defaultLocale + '.json').success(function (json) {
Config.I18n.fallback_messages = json;
bootReady.i18n_fallback = true;
checkReady();