diff --git a/activities/Measure.activity/js/components/SugarL10n.js b/activities/Measure.activity/js/components/SugarL10n.js index 6c9f54d05..3721caeb5 100644 --- a/activities/Measure.activity/js/components/SugarL10n.js +++ b/activities/Measure.activity/js/components/SugarL10n.js @@ -77,7 +77,6 @@ Vue.component('sugar-localization', { vm.l10n = i18next; vm.code = i18next.language; vm.dictionary = i18next.getResourceBundle(i18next.language, 'translation'); - vm.subscribeLanguageChange(); } ); }).catch((error) => { @@ -87,17 +86,6 @@ Vue.component('sugar-localization', { }); }, - subscribeLanguageChange: function () { - const vm = this; - requirejs(['lib/i18next.min.js'], function (i18next) { - i18next.on('languageChanged', (lng) => { - vm.code = lng; - vm.dictionary = i18next.getResourceBundle(lng, 'translation'); // Update dictionary with new language - vm.$emit('localized'); - }); - }); - }, - // Get a string with parameter get: function (str, params) { let out = '';