🐛 Fix locale for calendar and clock (#1330)
This commit is contained in:
1 parent
3b74f735a1
commit
981c964ba9
3 files changed
+13
-12
No files matched your search
+1
-1
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user