feat: Load automatic language settings on app startup

This commit is contained in:
cihatata committed 2025-03-02 02:43:53 +03:00
1 parent a72d0029a1
commit a549e42c43
3 files changed
+15 -3

No files matched your search

+2
View File
@@ -5,6 +5,7 @@ const initialState = {
isLoading: false,
apiBaseUrl: "",
logLevel: "debug",
language: "",
};
export const getAppSettings = createAsyncThunk(
@@ -69,6 +70,7 @@ const handleGetSettingsFulfilled = (state, action) => {
state.msg = action.payload.msg;
state.apiBaseUrl = action.payload.data.apiBaseUrl;
state.logLevel = action.payload.data.logLevel;
state.language = action.payload.data.language;
};
const handleGetSettingsRejected = (state, action) => {
state.isLoading = false;