mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-05 04:57:42 +03:00
add turkish
This commit is contained in:
parent
0b0fad8e21
commit
6d4ff66e9f
@ -387,6 +387,24 @@ export default function GeneralSettings({ className }: GeneralSettingsProps) {
|
|||||||
<span className="ml-6 mr-2">{t("menu.language.pl")}</span>
|
<span className="ml-6 mr-2">{t("menu.language.pl")}</span>
|
||||||
)}
|
)}
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
|
<MenuItem
|
||||||
|
className={
|
||||||
|
isDesktop
|
||||||
|
? "cursor-pointer"
|
||||||
|
: "flex items-center p-2 text-sm"
|
||||||
|
}
|
||||||
|
aria-label={t("menu.language.tr")}
|
||||||
|
onClick={() => setLanguage("es")}
|
||||||
|
>
|
||||||
|
{language === "es" ? (
|
||||||
|
<>
|
||||||
|
<LuLanguages className="mr-2 size-4" />
|
||||||
|
{t("menu.language.tr")}
|
||||||
|
</>
|
||||||
|
) : (
|
||||||
|
<span className="ml-6 mr-2">{t("menu.language.tr")}</span>
|
||||||
|
)}
|
||||||
|
</MenuItem>
|
||||||
</SubItemContent>
|
</SubItemContent>
|
||||||
</Portal>
|
</Portal>
|
||||||
</SubItem>
|
</SubItem>
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
import { ChevronLeft, ChevronRight } from "lucide-react";
|
import { ChevronLeft, ChevronRight } from "lucide-react";
|
||||||
import { DayPicker } from "react-day-picker";
|
import { DayPicker } from "react-day-picker";
|
||||||
import { enUS, Locale, zhCN, es, pl } from "date-fns/locale";
|
import { enUS, Locale, zhCN, es, pl, tr } from "date-fns/locale";
|
||||||
import { cn } from "@/lib/utils";
|
import { cn } from "@/lib/utils";
|
||||||
import { buttonVariants } from "@/components/ui/button";
|
import { buttonVariants } from "@/components/ui/button";
|
||||||
import i18n from "@/utils/i18n";
|
import i18n from "@/utils/i18n";
|
||||||
@ -19,6 +19,9 @@ switch (i18n.language) {
|
|||||||
case "pl":
|
case "pl":
|
||||||
locale = pl;
|
locale = pl;
|
||||||
break;
|
break;
|
||||||
|
case "tr":
|
||||||
|
locale = tr;
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
locale = enUS;
|
locale = enUS;
|
||||||
break;
|
break;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user