diff options
Diffstat (limited to 'packages/shared/src/stores/GlobalSettingsBase.ts')
-rw-r--r-- | packages/shared/src/stores/GlobalSettingsBase.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/shared/src/stores/GlobalSettingsBase.ts b/packages/shared/src/stores/GlobalSettingsBase.ts index 1bd0628..c74c822 100644 --- a/packages/shared/src/stores/GlobalSettingsBase.ts +++ b/packages/shared/src/stores/GlobalSettingsBase.ts | |||
@@ -30,10 +30,13 @@ import { ThemeSource } from '../schemas/ThemeSource'; | |||
30 | 30 | ||
31 | import ServiceBase from './ServiceBase'; | 31 | import ServiceBase from './ServiceBase'; |
32 | 32 | ||
33 | export const SYSTEM_LOCALE = 'system'; | ||
34 | |||
33 | export function defineGlobalSettingsModel<TS extends IAnyModelType>( | 35 | export function defineGlobalSettingsModel<TS extends IAnyModelType>( |
34 | service: TS, | 36 | service: TS, |
35 | ) { | 37 | ) { |
36 | return types.model('GlobalSettings', { | 38 | return types.model('GlobalSettings', { |
39 | language: SYSTEM_LOCALE, | ||
37 | themeSource: types.optional( | 40 | themeSource: types.optional( |
38 | types.enumeration(ThemeSource.options), | 41 | types.enumeration(ThemeSource.options), |
39 | 'system', | 42 | 'system', |