From 0b0fad8e21a326414e3c64f5bef7ea7cbb4dcc5a Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Wed, 9 Apr 2025 08:37:02 -0500 Subject: [PATCH] add polish --- web/src/components/menu/GeneralSettings.tsx | 18 ++++++++++++++++++ web/src/components/ui/calendar.tsx | 5 ++++- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/web/src/components/menu/GeneralSettings.tsx b/web/src/components/menu/GeneralSettings.tsx index d5df1cec43..347058d6f2 100644 --- a/web/src/components/menu/GeneralSettings.tsx +++ b/web/src/components/menu/GeneralSettings.tsx @@ -369,6 +369,24 @@ export default function GeneralSettings({ className }: GeneralSettingsProps) { )} + setLanguage("es")} + > + {language === "es" ? ( + <> + + {t("menu.language.pl")} + + ) : ( + {t("menu.language.pl")} + )} + diff --git a/web/src/components/ui/calendar.tsx b/web/src/components/ui/calendar.tsx index 59bda28642..4b4581c063 100644 --- a/web/src/components/ui/calendar.tsx +++ b/web/src/components/ui/calendar.tsx @@ -1,7 +1,7 @@ import * as React from "react"; import { ChevronLeft, ChevronRight } from "lucide-react"; import { DayPicker } from "react-day-picker"; -import { enUS, Locale, zhCN, es } from "date-fns/locale"; +import { enUS, Locale, zhCN, es, pl } from "date-fns/locale"; import { cn } from "@/lib/utils"; import { buttonVariants } from "@/components/ui/button"; import i18n from "@/utils/i18n"; @@ -16,6 +16,9 @@ switch (i18n.language) { case "es": locale = es; break; + case "pl": + locale = pl; + break; default: locale = enUS; break;