From e69de4a0162e217d2d6647df31b17bdd72b477d9 Mon Sep 17 00:00:00 2001 From: UtkarshSiddhpura Date: Sun, 20 Aug 2023 13:25:13 +0530 Subject: [PATCH] remove subscribeLanguageChange from Measure.activity SugarL10n.js. --- .../Measure.activity/js/components/SugarL10n.js | 12 ------------ 1 file changed, 12 deletions(-) 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 = '';