Merge pull request #1246 from robdegraaf/feat/i18n-nl

This commit is contained in:
Marc-André Bombeck committed 2026-10-20 00:14:49 +02:00
commit 7be3714ac2
83 files changed
+13832 -74

No files matched your search

+4 -2
View File
@@ -1,4 +1,4 @@
import { de, enUS, es, fr, it, ko, pl } from "date-fns/locale";
import { de, enUS, es, fr, it, ko, nl, pl } from "date-fns/locale";
import type { Locale as DateFnsLocale } from "date-fns";
import type { Locale } from "@/lib/i18n/config";
@@ -6,7 +6,7 @@ import type { Locale } from "@/lib/i18n/config";
/**
* Map the app locale → the date-fns locale so the calendar's month / weekday
* names match the UI language. Defaults to enUS for anything unmapped.
* Imported only by the calendars, which load on demand, so the seven
* Imported only by the calendars, which load on demand, so the eight
* locales never ride a page's first load.
*/
export function resolveDateFnsLocale(locale: Locale): DateFnsLocale {
@@ -23,6 +23,8 @@ export function resolveDateFnsLocale(locale: Locale): DateFnsLocale {
return pl;
case "ko":
return ko;
case "nl":
return nl;
default:
return enUS;
}