Fixed JSON error in Chrome App mode
This commit is contained in:
parent
63091d1d8f
commit
f82fd9db08
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user