From 0f6d20e39453b106e42ab53fa3649674b403eba5 Mon Sep 17 00:00:00 2001 From: Tim Zallmann Date: Fri, 6 Oct 2017 10:03:56 +0200 Subject: Made the insertion of the English Translation File conditional + removed window.translations from the global object to save some memory --- app/assets/javascripts/locale/index.js | 1 + 1 file changed, 1 insertion(+) (limited to 'app/assets/javascripts/locale') 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` -- cgit v1.2.1