Spaces:
Sleeping
Sleeping
chokiproai
commited on
Commit
•
26ea971
1
Parent(s):
5042f7f
Upload 140 files
Browse files
src/hooks/useLanguage.ts
CHANGED
@@ -15,8 +15,8 @@ export function useLanguage() {
|
|
15 |
setLocale('en-US')
|
16 |
return enUS
|
17 |
default:
|
18 |
-
setLocale('
|
19 |
-
return
|
20 |
}
|
21 |
})
|
22 |
|
|
|
15 |
setLocale('en-US')
|
16 |
return enUS
|
17 |
default:
|
18 |
+
setLocale('en-US')
|
19 |
+
return enUS
|
20 |
}
|
21 |
})
|
22 |
|
src/store/modules/app/helper.ts
CHANGED
@@ -4,7 +4,7 @@ const LOCAL_NAME = 'appSetting'
|
|
4 |
|
5 |
export type Theme = 'light' | 'dark' | 'auto'
|
6 |
|
7 |
-
export type Language = 'vi-VN' | '
|
8 |
|
9 |
export interface AppState {
|
10 |
siderCollapsed: boolean
|
@@ -13,7 +13,7 @@ export interface AppState {
|
|
13 |
}
|
14 |
|
15 |
export function defaultSetting(): AppState {
|
16 |
-
return { siderCollapsed: false, theme: 'light', language: '
|
17 |
}
|
18 |
|
19 |
export function getLocalSetting(): AppState {
|
|
|
4 |
|
5 |
export type Theme = 'light' | 'dark' | 'auto'
|
6 |
|
7 |
+
export type Language = 'vi-VN' | 'en-US'
|
8 |
|
9 |
export interface AppState {
|
10 |
siderCollapsed: boolean
|
|
|
13 |
}
|
14 |
|
15 |
export function defaultSetting(): AppState {
|
16 |
+
return { siderCollapsed: false, theme: 'light', language: 'en-US' }
|
17 |
}
|
18 |
|
19 |
export function getLocalSetting(): AppState {
|