Revert "Switch tracking key to accountStorage" This reverts commit 549fae4015c049f2d194daa7176f5df1b67422ea.

a8f05c92aef64247b874440b10478805710b53ae

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +3 -4Ignore whitespace
public/scripts/i18n.js+3 -4
@@ -1,6 +1,5 @@
11import { registerDebugFunction } from './power-user.js';
22import { updateSecretDisplay } from './secrets.js';
3-import { accountStorage } from './util/AccountStorage.js';
43
54const storageKey = 'language';
65const overrideLanguage = localStorage.getItem(storageKey);
@@ -292,7 +291,7 @@ export async function initLocales() {
292291 attributeFilter: ['data-i18n'],
293292 });
294293
295294 if (accountStoragelocalStorage.getItem('trackDynamicTranslate') === 'true' && isSupportedNonEnglish()) {
296295 trackMissingDynamicTranslate = new Set();
297296 }
298297
@@ -305,8 +304,8 @@ export async function initLocales() {
305304 'This includes things translated via the t`...` function and translate(). It will only track strings translated <b>after</b> this is toggled on, '
306305 + 'and when they actually pop up, so refreshing the page and opening popups, etc, is needed. Will only track if the current locale is not English.',
307306 () => {
308307 const isTracking = accountStoragelocalStorage.getItem('trackDynamicTranslate') !== 'true';
309308 accountStoragelocalStorage.setItem('trackDynamicTranslate', isTracking ? 'true' : 'false');
310309 if (isTracking && isSupportedNonEnglish()) {
311310 trackMissingDynamicTranslate = new Set();
312311 toastr.success('Dynamic translation tracking enabled.');