[DE] Fix loading translations on IE and minimized version

This commit is contained in:
Julia Radzhabova 2019-09-17 18:24:43 +03:00
parent cca8f2aa12
commit 6061d0f2d1
2 changed files with 81 additions and 77 deletions

View file

@ -169,8 +169,8 @@ require([
]
});
Common.Locale.apply();
Common.Locale.apply(
function() {
require([
'documenteditor/main/app/controller/Viewport',
'documenteditor/main/app/controller/DocumentHolder',
@ -207,6 +207,8 @@ require([
], function() {
app.start();
});
}
);
}, function(err) {
if (err.requireType == 'timeout' && !reqerr && window.requireTimeourError) {
reqerr = window.requireTimeourError();

View file

@ -159,8 +159,8 @@ require([
]
});
Common.Locale.apply();
Common.Locale.apply(
function() {
require([
'documenteditor/main/app/controller/Viewport',
'documenteditor/main/app/controller/DocumentHolder',
@ -198,6 +198,8 @@ require([
window.compareVersions = true;
app.start();
});
}
);
}, function(err) {
if (err.requireType == 'timeout' && !reqerr && window.requireTimeourError) {
reqerr = window.requireTimeourError();