refactor i18n
This commit is contained in:
1 parent
4f678827f3
commit
70055c712b
12 files changed
+38
-27
No files matched your search
@@ -5,7 +5,6 @@ const initialState = {
|
||||
isLoading: false,
|
||||
apiBaseUrl: "",
|
||||
logLevel: "debug",
|
||||
language: "gb",
|
||||
pagespeedApiKey: "",
|
||||
};
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ const initialState = {
|
||||
greeting: { index: 0, lastUpdate: null },
|
||||
timezone: "America/Toronto",
|
||||
distributedUptimeEnabled: false,
|
||||
language: "gb",
|
||||
language: "en",
|
||||
starPromptOpen: true,
|
||||
};
|
||||
|
||||
@@ -57,7 +57,7 @@ const uiSlice = createSlice({
|
||||
setTimezone(state, action) {
|
||||
state.timezone = action.payload.timezone;
|
||||
},
|
||||
setLanguage(state, action) {
|
||||
setLanguage: (state, action) => {
|
||||
state.language = action.payload;
|
||||
},
|
||||
setStarPromptOpen: (state, action) => {
|
||||
|
||||
Reference in new issue
Block a user