diff --git a/app/js/init.js b/app/js/init.js index ecdab8e9..c102ed4d 100644 --- a/app/js/init.js +++ b/app/js/init.js @@ -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();