🐛 Fix locale for calendar and clock (#1330)

This commit is contained in:
Tagaishi authored and GitHub committed 2023-09-01 17:13:55 +02:00
1 parent 3b74f735a1
commit 981c964ba9
3 files changed
+13 -12

No files matched your search

+1 -1
View File
@@ -57,7 +57,7 @@ function App(
) {
const { Component, pageProps } = props;
// TODO: make mapping from our locales to moment locales
const language = getLanguageByCode(pageProps.locale);
const language = getLanguageByCode(pageProps.session?.user?.language ?? 'en');
require(`dayjs/locale/${language.locale}.js`);
dayjs.locale(language.locale);