feat(i18n): add turkish(tr) localization support

This commit is contained in:
Eray Dereağzı
2024-11-28 13:38:40 +03:00
parent 37fa139a65
commit 7469c30992
6 changed files with 50 additions and 3 deletions

View File

@@ -37,7 +37,7 @@ const appearanceFormSchema = z.object({
theme: z.enum(["light", "dark", "system"], {
required_error: "Please select a theme.",
}),
language: z.enum(["en", "pl", "ru", "de", "zh-Hant", "zh-Hans"], {
language: z.enum(["en", "pl", "ru", "de", "tr", "zh-Hant", "zh-Hans"], {
required_error: "Please select a language.",
}),
});
@@ -179,6 +179,7 @@ export function AppearanceForm() {
{ label: "Deutsch", value: "de" },
{ label: "繁體中文", value: "zh-Hant" },
{ label: "简体中文", value: "zh-Hans" },
{ label: "Türkçe", value: "tr" },
].map((preset) => (
<SelectItem key={preset.label} value={preset.value}>
{preset.label}