feat: add Polish language support to appearance settings and locale configuration

This commit is contained in:
Krzysztof Durek
2024-11-17 22:05:52 +01:00
parent 82367213ea
commit f138b0917f
4 changed files with 5 additions and 4 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", "zh-Hans"], {
language: z.enum(["en", "pl", "zh-Hans"], {
required_error: "Please select a language.",
}),
});
@@ -174,6 +174,7 @@ export function AppearanceForm() {
<SelectContent>
{[
{ label: "English", value: "en" },
{ label: "Polski", value: "pl" },
{ label: "简体中文", value: "zh-Hans" },
].map((preset) => (
<SelectItem key={preset.label} value={preset.value}>