fix: remove localstorage usage

This commit is contained in:
cihatata
2025-05-06 00:29:58 +03:00
parent 82b9dcea4f
commit f5a0932489
3 changed files with 2 additions and 3 deletions
@@ -5,7 +5,7 @@ const initialState = {
isLoading: false,
apiBaseUrl: "",
logLevel: "debug",
language: "",
language: "gb",
};
export const getAppSettings = createAsyncThunk(
+1 -1
View File
@@ -23,7 +23,7 @@ const initialState = {
greeting: { index: 0, lastUpdate: null },
timezone: "America/Toronto",
distributedUptimeEnabled: false,
language: localStorage.getItem("app_language") || "gb",
language: "gb",
starPromptOpen: true,
};
-1
View File
@@ -32,7 +32,6 @@ i18n.use(initReactI18next).init({
i18n.on("languageChanged", (lng) => {
store.dispatch(setLanguage(lng));
window.localStorage.setItem("app_language", lng);
});
export default i18n;