Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
feat(collections/calendar): use formatting locale
Elian Doranb0bd60b9a404
diff --git a/apps/client/src/widgets/collections/calendar/index.tsx b/apps/client/src/widgets/collections/calendar/index.tsxindex c1b288e27c..ec1e9e23b0 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<LocaleInput>();useEffect(() => {- const correspondingLocale = LOCALE_MAPPINGS[locale];+ const correspondingLocale = LOCALE_MAPPINGS[formattingLocale];if (correspondingLocale) {correspondingLocale().then((locale) => setCalendarLocale(locale.default));} else {