mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-05 04:57:42 +03:00
add polish
This commit is contained in:
parent
a842f3486a
commit
0b0fad8e21
@ -369,6 +369,24 @@ export default function GeneralSettings({ className }: GeneralSettingsProps) {
|
||||
</span>
|
||||
)}
|
||||
</MenuItem>
|
||||
<MenuItem
|
||||
className={
|
||||
isDesktop
|
||||
? "cursor-pointer"
|
||||
: "flex items-center p-2 text-sm"
|
||||
}
|
||||
aria-label={t("menu.language.pl")}
|
||||
onClick={() => setLanguage("es")}
|
||||
>
|
||||
{language === "es" ? (
|
||||
<>
|
||||
<LuLanguages className="mr-2 size-4" />
|
||||
{t("menu.language.pl")}
|
||||
</>
|
||||
) : (
|
||||
<span className="ml-6 mr-2">{t("menu.language.pl")}</span>
|
||||
)}
|
||||
</MenuItem>
|
||||
</SubItemContent>
|
||||
</Portal>
|
||||
</SubItem>
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user