mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-21 18:55:19 -04:00
fix(i18n): use event to change luxon language setting
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
a23c215d8d
commit
53a3c92fdb
2 changed files with 4 additions and 3 deletions
|
@ -36,5 +36,6 @@ export const setUpI18n = async (): Promise<void> => {
|
|||
}
|
||||
})
|
||||
|
||||
i18n.on('languageChanged', (language) => (Settings.defaultLocale = language))
|
||||
Settings.defaultLocale = i18n.language
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue