diff --git a/apps/client/src/widgets/collections/calendar/index.tsx b/apps/client/src/widgets/collections/calendar/index.tsx index c1b288e27..ec1e9e23b 100644 --- a/apps/client/src/widgets/collections/calendar/index.tsx +++ b/apps/client/src/widgets/collections/calendar/index.tsx @@ -197,11 +197,11 @@ function usePlugins(isEditable: boolean, isCalendarRoot: boolean) { } function useLocale() { - const [ locale ] = useTriliumOption("locale"); + const [ formattingLocale ] = useTriliumOption("formattingLocale"); const [ calendarLocale, setCalendarLocale ] = useState(); useEffect(() => { - const correspondingLocale = LOCALE_MAPPINGS[locale]; + const correspondingLocale = LOCALE_MAPPINGS[formattingLocale]; if (correspondingLocale) { correspondingLocale().then((locale) => setCalendarLocale(locale.default)); } else {