mirror of
https://github.com/umami-software/umami.git
synced 2026-02-14 17:45:38 +01:00
Support i18n.
This commit is contained in:
parent
f0ac9b6522
commit
e8538f6e23
14 changed files with 372 additions and 36 deletions
16
redux/actions/app.js
Normal file
16
redux/actions/app.js
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
import { createSlice } from '@reduxjs/toolkit';
|
||||
|
||||
const app = createSlice({
|
||||
name: 'app',
|
||||
initialState: { locale: 'en' },
|
||||
reducers: {
|
||||
updateApp(state, action) {
|
||||
state = action.payload;
|
||||
return state;
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
export const { updateApp } = app.actions;
|
||||
|
||||
export default app.reducer;
|
||||
Loading…
Add table
Add a link
Reference in a new issue