summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/locale
diff options
context:
space:
mode:
authorTim Zallmann <tzallmann@gitlab.com>2017-10-06 10:03:56 +0200
committerTim Zallmann <tzallmann@gitlab.com>2017-10-06 10:03:56 +0200
commit0f6d20e39453b106e42ab53fa3649674b403eba5 (patch)
tree205e685ae0c4c02cf658b2c7775763cc4fc4735e /app/assets/javascripts/locale
parent6c5837ae4933b17f657c80c96431e528ff62d971 (diff)
downloadgitlab-ce-0f6d20e39453b106e42ab53fa3649674b403eba5.tar.gz
Made the insertion of the English Translation File conditional + removed window.translations from the global object to save some memory38845-skip-loading-english-frontend-translation-file
Diffstat (limited to 'app/assets/javascripts/locale')
-rw-r--r--app/assets/javascripts/locale/index.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/assets/javascripts/locale/index.js b/app/assets/javascripts/locale/index.js
index ce05b3eabec..1003b9ba0af 100644
--- a/app/assets/javascripts/locale/index.js
+++ b/app/assets/javascripts/locale/index.js
@@ -4,6 +4,7 @@ import sprintf from './sprintf';
const langAttribute = document.querySelector('html').getAttribute('lang');
const lang = (langAttribute || 'en').replace(/-/g, '_');
const locale = new Jed(window.translations || {});
+delete window.translations;
/**
Translates `text`