From 2cd3c27ae90babca22f3cadbb98651a824e59642 Mon Sep 17 00:00:00 2001 From: Mauricio Siu Date: Mon, 16 Feb 2026 02:15:53 -0600 Subject: [PATCH] refactor(dashboard): replace localization strings with static text for certificate and port labels - Updated the WebDomain and ManageTraefikPorts components to use static placeholders and labels instead of localization functions, improving readability and simplifying the codebase. --- .../components/dashboard/settings/web-domain.tsx | 12 +++--------- .../settings/web-server/manage-traefik-ports.tsx | 8 ++------ 2 files changed, 5 insertions(+), 15 deletions(-) diff --git a/apps/dokploy/components/dashboard/settings/web-domain.tsx b/apps/dokploy/components/dashboard/settings/web-domain.tsx index 191b5f147..98791e196 100644 --- a/apps/dokploy/components/dashboard/settings/web-domain.tsx +++ b/apps/dokploy/components/dashboard/settings/web-domain.tsx @@ -218,22 +218,16 @@ export const WebDomain = () => { - {t( - "settings.server.domain.form.certificateOptions.none", - )} + None - {t( - "settings.server.domain.form.certificateOptions.letsencrypt", - )} + Let's Encrypt diff --git a/apps/dokploy/components/dashboard/settings/web-server/manage-traefik-ports.tsx b/apps/dokploy/components/dashboard/settings/web-server/manage-traefik-ports.tsx index 59dfca9ee..9d29c1937 100644 --- a/apps/dokploy/components/dashboard/settings/web-server/manage-traefik-ports.tsx +++ b/apps/dokploy/components/dashboard/settings/web-server/manage-traefik-ports.tsx @@ -175,9 +175,7 @@ export const ManageTraefikPorts = ({ children, serverId }: Props) => { render={({ field }) => ( - {t( - "settings.server.webServer.traefik.targetPort", - )} + Target Port { render={({ field }) => ( - {t( - "settings.server.webServer.traefik.publishedPort", - )} + Published Port