From 42c08e7b89b59cac68be225814f2e0175c2e2423 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Wed, 6 Sep 2017 14:49:06 +0300 Subject: [PATCH] Load en.json for languages that don't have translations. --- apps/common/locale.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/apps/common/locale.js b/apps/common/locale.js index 6217b8e01..4112b39c1 100644 --- a/apps/common/locale.js +++ b/apps/common/locale.js @@ -106,7 +106,14 @@ Common.Locale = new(function() { l10n = eval("(" + xhrObj.responseText + ")"); } } - catch (e) { + catch (e) { + try { + xhrObj.open('GET', 'locale/en.json', false); + xhrObj.send(''); + l10n = eval("(" + xhrObj.responseText + ")"); + } + catch (e) { + } } return {