fix: wrong setting for localstorage workspace. (#821)

This commit is contained in:
Leo 2024-04-06 20:38:12 +08:00 committed by GitHub
parent 228889c50c
commit c34517be2b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -24,7 +24,7 @@ export const settingsSlice = createSlice({
state.workspaceDirectory = action.payload;
},
setLanguage: (state, action) => {
localStorage.setItem("workspaceDirectory", action.payload);
localStorage.setItem("language", action.payload);
state.language = action.payload;
i18next.changeLanguage(action.payload);
},