From f1a96ec639eeb184b765cfc60adbd5aebe1ef2e1 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Wed, 28 Jan 2026 23:22:12 +0200 Subject: [PATCH] undo sw changes --- src/sw.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/sw.js b/src/sw.js index 2a162ce52..e3225c91d 100644 --- a/src/sw.js +++ b/src/sw.js @@ -4,9 +4,6 @@ import 'virtual:pleroma-fe/service_worker_env' import { createI18n } from 'vue-i18n' -import { useInstanceStore } from 'src/stores/instance.js' -import { useSyncConfigStore } from 'src/stores/sync_config.js' - import { storage } from 'src/lib/storage.js' import { parseNotification } from 'src/services/entity_normalizer/entity_normalizer.service.js' import { prepareNotificationObject } from 'src/services/notification_utils/notification_utils.js' @@ -38,8 +35,7 @@ function getWindowClients() { const setSettings = async () => { const vuexState = await storage.getItem('vuex-lz') - const locale = useSyncConfigStore().mergedConfig.interfaceLanguage || 'en' - console.log('LOCALE', locale) + const locale = vuexState.config.interfaceLanguage || 'en' i18n.locale = locale const notificationsNativeArray = Object.entries( vuexState.config.notificationNative,