fix: #9046, pretranslate string

v1.18.x
Barış Soner Uşaklı 4 years ago
parent 6669496dba
commit 790f4e4521

@ -6,11 +6,20 @@
if (logoutTimer) {
clearTimeout(logoutTimer);
}
// pre-translate language string gh#9046
var translated;
if (!translated) {
require(['translator'], function (translator) {
translator.translate('[[login:logged-out-due-to-inactivity]]', function (_translated) {
translated = _translated;
});
});
}
logoutTimer = setTimeout(function () {
bootbox.alert({
closeButton: false,
message: '[[login:logged-out-due-to-inactivity]]',
message: translated,
callback: function () {
window.location.reload();
},

Loading…
Cancel
Save