mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
feat: add Polish language support to appearance settings and locale configuration
This commit is contained in:
@@ -37,7 +37,7 @@ const appearanceFormSchema = z.object({
|
|||||||
theme: z.enum(["light", "dark", "system"], {
|
theme: z.enum(["light", "dark", "system"], {
|
||||||
required_error: "Please select a theme.",
|
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.",
|
required_error: "Please select a language.",
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
@@ -174,6 +174,7 @@ export function AppearanceForm() {
|
|||||||
<SelectContent>
|
<SelectContent>
|
||||||
{[
|
{[
|
||||||
{ label: "English", value: "en" },
|
{ label: "English", value: "en" },
|
||||||
|
{ label: "Polski", value: "pl" },
|
||||||
{ label: "简体中文", value: "zh-Hans" },
|
{ label: "简体中文", value: "zh-Hans" },
|
||||||
].map((preset) => (
|
].map((preset) => (
|
||||||
<SelectItem key={preset.label} value={preset.value}>
|
<SelectItem key={preset.label} value={preset.value}>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
i18n: {
|
i18n: {
|
||||||
defaultLocale: "en",
|
defaultLocale: "en",
|
||||||
locales: ["en", "zh-Hans"],
|
locales: ["en", "pl", "zh-Hans"],
|
||||||
localeDetection: false,
|
localeDetection: false,
|
||||||
},
|
},
|
||||||
fallbackLng: "en",
|
fallbackLng: "en",
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ export default api.withTRPC(
|
|||||||
{
|
{
|
||||||
i18n: {
|
i18n: {
|
||||||
defaultLocale: "en",
|
defaultLocale: "en",
|
||||||
locales: ["en", "zh-Hans"],
|
locales: ["en", "pl", "zh-Hans"],
|
||||||
localeDetection: false,
|
localeDetection: false,
|
||||||
},
|
},
|
||||||
fallbackLng: "en",
|
fallbackLng: "en",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import Cookies from "js-cookie";
|
import Cookies from "js-cookie";
|
||||||
|
|
||||||
const SUPPORTED_LOCALES = ["en", "zh-Hans"] as const;
|
const SUPPORTED_LOCALES = ["en", "pl", "zh-Hans"] as const;
|
||||||
|
|
||||||
type Locale = (typeof SUPPORTED_LOCALES)[number];
|
type Locale = (typeof SUPPORTED_LOCALES)[number];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user