Этот коммит содержится в:
Christopher Speller
2016-03-21 12:33:44 -04:00
родитель 0db6994e08
Коммит d7b19dd50f
2 изменённых файлов: 24 добавлений и 4 удалений

Просмотреть файл

@@ -11,6 +11,7 @@
"fastclick": "1.0.6",
"flux": "2.1.1",
"highlight.js": "9.2.0",
"intl": "1.1.0",
"jasny-bootstrap": "3.1.3",
"jquery": "2.2.1",
"keymirror": "0.1.1",

Просмотреть файл

@@ -109,11 +109,30 @@ function preRenderSetup(callwhendone) {
}
);
addLocaleData(enLocaleData);
addLocaleData(esLocaleData);
addLocaleData(ptLocaleData);
function afterIntl() {
addLocaleData(enLocaleData);
addLocaleData(esLocaleData);
addLocaleData(ptLocaleData);
$.when(d1, d2).done(callwhendone);
$.when(d1, d2).done(callwhendone);
}
if (global.Intl) {
afterIntl();
} else {
require.ensure([
'intl',
'intl/locale-data/jsonp/en.js',
'intl/locale-data/jsonp/es.js',
'intl/locale-data/jsonp/pt.js'
], (require) => {
require('intl');
require('intl/locale-data/jsonp/en.js');
require('intl/locale-data/jsonp/es.js');
require('intl/locale-data/jsonp/pt.js');
afterIntl();
});
}
}
function preLoggedIn(nextState, replace, callback) {