1
0

feat: do not save language on the server when in demo mode

When the demo mode is enabled, people set the language to their own language - which is understandable. However, this is really confusing for other people when they log in and the language is something unexpected.
This change overrides the configured language when saving it while Vikunja is in demo mode.
This commit is contained in:
kolaente
2024-05-07 18:39:50 +02:00
parent 6e759b3bee
commit e1dcf2e859
2 changed files with 17 additions and 10 deletions

View File

@ -22,6 +22,6 @@ export interface IUserSettings extends IAbstract {
defaultProjectId: undefined | IProject['id']
weekStart: 0 | 1 | 2 | 3 | 4 | 5 | 6
timezone: string
language: SupportedLocale
language: SupportedLocale | null
frontendSettings: IFrontendSettings
}