diff --git a/apps/dokploy/components/dashboard/settings/appearance-form.tsx b/apps/dokploy/components/dashboard/settings/appearance-form.tsx index 487fe3d05..29b8bb94d 100644 --- a/apps/dokploy/components/dashboard/settings/appearance-form.tsx +++ b/apps/dokploy/components/dashboard/settings/appearance-form.tsx @@ -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) => ( {preset.label} diff --git a/apps/dokploy/next-i18next.config.cjs b/apps/dokploy/next-i18next.config.cjs index 30f82e64c..853cbf86b 100644 --- a/apps/dokploy/next-i18next.config.cjs +++ b/apps/dokploy/next-i18next.config.cjs @@ -2,7 +2,7 @@ module.exports = { i18n: { defaultLocale: "en", - locales: ["en", "pl", "ru", "de", "zh-Hant", "zh-Hans"], + locales: ["en", "pl", "ru", "de", "tr", "zh-Hant", "zh-Hans"], localeDetection: false, }, fallbackLng: "en", diff --git a/apps/dokploy/pages/_app.tsx b/apps/dokploy/pages/_app.tsx index d1d951231..7050ce9ee 100644 --- a/apps/dokploy/pages/_app.tsx +++ b/apps/dokploy/pages/_app.tsx @@ -71,7 +71,7 @@ export default api.withTRPC( { i18n: { defaultLocale: "en", - locales: ["en", "pl", "ru", "de", "zh-Hant", "zh-Hans"], + locales: ["en", "pl", "ru", "de", "tr", "zh-Hant", "zh-Hans"], localeDetection: false, }, fallbackLng: "en", diff --git a/apps/dokploy/public/locales/tr/common.json b/apps/dokploy/public/locales/tr/common.json new file mode 100644 index 000000000..0967ef424 --- /dev/null +++ b/apps/dokploy/public/locales/tr/common.json @@ -0,0 +1 @@ +{} diff --git a/apps/dokploy/public/locales/tr/settings.json b/apps/dokploy/public/locales/tr/settings.json new file mode 100644 index 000000000..47a6629f5 --- /dev/null +++ b/apps/dokploy/public/locales/tr/settings.json @@ -0,0 +1,44 @@ +{ + "settings.common.save": "Kaydet", + "settings.server.domain.title": "Sunucu Alanı", + "settings.server.domain.description": "Sunucu uygulamanıza bir alan adı ekleyin.", + "settings.server.domain.form.domain": "Alan Adı", + "settings.server.domain.form.letsEncryptEmail": "Let's Encrypt E-postası", + "settings.server.domain.form.certificate.label": "Sertifika", + "settings.server.domain.form.certificate.placeholder": "Bir sertifika seçin", + "settings.server.domain.form.certificateOptions.none": "Hiçbiri", + "settings.server.domain.form.certificateOptions.letsencrypt": "Let's Encrypt (Varsayılan)", + + "settings.server.webServer.title": "Web Sunucusu", + "settings.server.webServer.description": "Web sunucusunu yeniden yükleyin veya temizleyin.", + "settings.server.webServer.actions": "İşlemler", + "settings.server.webServer.reload": "Yeniden Yükle", + "settings.server.webServer.watchLogs": "Günlükleri İzle", + "settings.server.webServer.updateServerIp": "Sunucu IP'sini Güncelle", + "settings.server.webServer.server.label": "Sunucu", + "settings.server.webServer.traefik.label": "Traefik", + "settings.server.webServer.traefik.modifyEnv": "Env Değiştir", + "settings.server.webServer.storage.label": "Alan", + "settings.server.webServer.storage.cleanUnusedImages": "Kullanılmayan görüntüleri temizle", + "settings.server.webServer.storage.cleanUnusedVolumes": "Kullanılmayan birimleri temizle", + "settings.server.webServer.storage.cleanStoppedContainers": "Durmuş konteynerleri temizle", + "settings.server.webServer.storage.cleanDockerBuilder": "Docker Builder ve Sistemi Temizle", + "settings.server.webServer.storage.cleanMonitoring": "İzlemeyi Temizle", + "settings.server.webServer.storage.cleanAll": "Hepsini temizle", + + "settings.profile.title": "Hesap", + "settings.profile.description": "Profil detaylarınızı buradan değiştirebilirsiniz.", + "settings.profile.email": "E-posta", + "settings.profile.password": "Şifre", + "settings.profile.avatar": "Profil Resmi", + + "settings.appearance.title": "Görünüm", + "settings.appearance.description": "Kontrol panelinin temasını özelleştirin.", + "settings.appearance.theme": "Tema", + "settings.appearance.themeDescription": "Kontrol paneli için bir tema seçin", + "settings.appearance.themes.light": "Açık", + "settings.appearance.themes.dark": "Koyu", + "settings.appearance.themes.system": "Sistem", + "settings.appearance.language": "Dil", + "settings.appearance.languageDescription": "Kontrol paneli için bir dil seçin" +} diff --git a/apps/dokploy/utils/hooks/use-locale.ts b/apps/dokploy/utils/hooks/use-locale.ts index 1cd59f021..f261ec84c 100644 --- a/apps/dokploy/utils/hooks/use-locale.ts +++ b/apps/dokploy/utils/hooks/use-locale.ts @@ -5,6 +5,7 @@ const SUPPORTED_LOCALES = [ "pl", "ru", "de", + "tr", "zh-Hant", "zh-Hans", ] as const;