From 783e2cf233dc3954ea5e532d9b336507562134dd Mon Sep 17 00:00:00 2001 From: James Geiger Date: Thu, 10 Jul 2025 11:55:38 -0500 Subject: [PATCH] Implement localization in calendar component (#386) * Updates calendar component to use localized months/weekdays Leverages svelte-i18n date formatter to localize the month name of the calendar. For weekdays, to remain consistent with the two-letter format, implement custom i18n locale keys. * Adds locale translations for weekday abbreviations in en and de --- web/src/lib/components/base/calendar.svelte | 24 +++++---------------- web/src/lib/i18n/index.ts | 7 ++++++ web/src/lib/i18n/locales/de.json | 13 ++++++++++- web/src/lib/i18n/locales/en.json | 13 ++++++++++- 4 files changed, 36 insertions(+), 21 deletions(-) diff --git a/web/src/lib/components/base/calendar.svelte b/web/src/lib/components/base/calendar.svelte index 3af2120d..fd886e59 100644 --- a/web/src/lib/components/base/calendar.svelte +++ b/web/src/lib/components/base/calendar.svelte @@ -1,7 +1,8 @@