From e950303966a5056ef7ec4af72e2bf84608b3d6eb Mon Sep 17 00:00:00 2001 From: Germain Souquet Date: Mon, 26 Apr 2021 14:13:32 +0100 Subject: [PATCH] stop using experimental class private methods --- src/language-helper.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/language-helper.js b/src/language-helper.js index 58bb6c9..5fe8de3 100644 --- a/src/language-helper.js +++ b/src/language-helper.js @@ -41,7 +41,7 @@ function _t(text, variables = {}) { class AppLocalization { static STORE_KEY = "locale" - #store = null + store = null constructor({ store, components = [] }) { counterpart.registerTranslations("en", this.fetchTranslationJson("en_EN")); @@ -52,9 +52,9 @@ class AppLocalization { this.localizedComponents = new Set(components); } - this.#store = store; - if (this.#store.has(AppLocalization.STORE_KEY)) { - const locales = this.#store.get(AppLocalization.STORE_KEY); + this.store = store; + if (this.store.has(AppLocalization.STORE_KEY)) { + const locales = this.store.get(AppLocalization.STORE_KEY); this.setAppLocale(locales); } @@ -90,7 +90,7 @@ class AppLocalization { }); counterpart.setLocale(locales); - this.#store.set(AppLocalization.STORE_KEY, locales); + this.store.set(AppLocalization.STORE_KEY, locales); this.resetLocalizedUI(); }