mirror of
https://github.com/umami-software/umami.git
synced 2026-02-10 23:57:12 +01:00
Updated profile settings. Refactored locale saving.
This commit is contained in:
parent
814589f6a5
commit
7f598fa84d
9 changed files with 82 additions and 30 deletions
|
|
@ -1,8 +1,9 @@
|
|||
import { createSlice } from '@reduxjs/toolkit';
|
||||
import { getItem } from 'lib/web';
|
||||
|
||||
const app = createSlice({
|
||||
name: 'app',
|
||||
initialState: { locale: 'en-US' },
|
||||
initialState: { locale: getItem('umami.locale') || 'en-US' },
|
||||
reducers: {
|
||||
updateApp(state, action) {
|
||||
state = action.payload;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue