From b0bd60b9a4040702b258cce220f19585042645db Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Sat, 8 Nov 2025 18:01:58 +0200 Subject: [PATCH] feat(collections/calendar): use formatting locale --- apps/client/src/widgets/collections/calendar/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {