From c2e05e86d93f9cc761d0c5a2d02da4cfabcf796b Mon Sep 17 00:00:00 2001
From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com>
Date: Sat, 15 Mar 2025 22:08:49 -0600
Subject: [PATCH] Revert "feat(i18n): update zh-Hans translation"
---
.../organization/handle-organization.tsx | 36 +--
.../components/dashboard/projects/show.tsx | 14 +-
.../dashboard/settings/api/add-api-key.tsx | 127 ++++------
.../dashboard/settings/api/show-api-keys.tsx | 39 ++-
.../dashboard/settings/profile/enable-2fa.tsx | 56 ++---
.../settings/profile/profile-form.tsx | 8 +-
.../servers/actions/show-dokploy-actions.tsx | 2 +-
.../servers/actions/show-storage-actions.tsx | 2 +-
.../servers/actions/show-traefik-actions.tsx | 2 +-
.../settings/servers/handle-servers.tsx | 2 +-
.../settings/servers/show-servers.tsx | 6 +-
.../dashboard/settings/web-domain.tsx | 2 +-
.../dashboard/settings/web-server.tsx | 2 +-
.../web-server/local-server-config.tsx | 2 +-
.../web-server/manage-traefik-ports.tsx | 2 +-
apps/dokploy/components/layouts/side.tsx | 110 +++------
apps/dokploy/components/layouts/user-nav.tsx | 30 +--
apps/dokploy/lib/languages.ts | 71 ++----
apps/dokploy/pages/dashboard/docker.tsx | 7 +-
apps/dokploy/pages/dashboard/monitoring.tsx | 7 +-
apps/dokploy/pages/dashboard/projects.tsx | 3 -
apps/dokploy/pages/dashboard/requests.tsx | 7 +-
apps/dokploy/pages/dashboard/settings/ai.tsx | 2 +-
.../pages/dashboard/settings/billing.tsx | 4 -
.../pages/dashboard/settings/certificates.tsx | 3 -
.../pages/dashboard/settings/cluster.tsx | 3 -
.../pages/dashboard/settings/destinations.tsx | 3 -
.../dashboard/settings/git-providers.tsx | 7 +-
.../pages/dashboard/settings/index.tsx | 3 -
.../dashboard/settings/notifications.tsx | 3 -
.../pages/dashboard/settings/profile.tsx | 2 +-
.../pages/dashboard/settings/registry.tsx | 3 -
.../pages/dashboard/settings/server.tsx | 2 +-
.../pages/dashboard/settings/servers.tsx | 2 +-
.../pages/dashboard/settings/ssh-keys.tsx | 7 +-
.../pages/dashboard/settings/users.tsx | 3 -
apps/dokploy/pages/dashboard/swarm.tsx | 7 +-
apps/dokploy/pages/dashboard/traefik.tsx | 7 +-
apps/dokploy/pages/index.tsx | 79 +++---
apps/dokploy/public/locales/az/common.json | 55 +----
apps/dokploy/public/locales/az/settings.json | 58 +++++
apps/dokploy/public/locales/de/common.json | 42 +---
apps/dokploy/public/locales/de/settings.json | 44 ++++
apps/dokploy/public/locales/en/common.json | 232 +-----------------
apps/dokploy/public/locales/en/settings.json | 58 +++++
apps/dokploy/public/locales/es/common.json | 50 +---
apps/dokploy/public/locales/es/settings.json | 52 ++++
apps/dokploy/public/locales/fa/common.json | 42 +---
apps/dokploy/public/locales/fa/settings.json | 44 ++++
apps/dokploy/public/locales/fr/common.json | 42 +---
apps/dokploy/public/locales/fr/settings.json | 44 ++++
apps/dokploy/public/locales/id/common.json | 55 +----
apps/dokploy/public/locales/id/settings.json | 58 +++++
apps/dokploy/public/locales/it/common.json | 42 +---
apps/dokploy/public/locales/it/settings.json | 44 ++++
apps/dokploy/public/locales/ja/common.json | 42 +---
apps/dokploy/public/locales/ja/settings.json | 44 ++++
apps/dokploy/public/locales/ko/common.json | 42 +---
apps/dokploy/public/locales/ko/settings.json | 44 ++++
apps/dokploy/public/locales/kz/common.json | 42 +---
apps/dokploy/public/locales/kz/settings.json | 41 ++++
apps/dokploy/public/locales/ml/common.json | 55 +----
apps/dokploy/public/locales/ml/settings.json | 58 +++++
apps/dokploy/public/locales/no/common.json | 50 +---
apps/dokploy/public/locales/no/settings.json | 52 ++++
apps/dokploy/public/locales/pl/common.json | 55 +----
apps/dokploy/public/locales/pl/settings.json | 58 +++++
apps/dokploy/public/locales/pt-br/common.json | 42 +---
.../public/locales/pt-br/settings.json | 44 ++++
apps/dokploy/public/locales/ru/common.json | 55 +----
apps/dokploy/public/locales/ru/settings.json | 58 +++++
apps/dokploy/public/locales/tr/common.json | 42 +---
apps/dokploy/public/locales/tr/settings.json | 44 ++++
apps/dokploy/public/locales/uk/common.json | 55 +----
apps/dokploy/public/locales/uk/settings.json | 58 +++++
.../public/locales/zh-Hans/common.json | 232 +-----------------
.../public/locales/zh-Hans/settings.json | 58 +++++
.../public/locales/zh-Hant/common.json | 55 +----
.../public/locales/zh-Hant/settings.json | 58 +++++
apps/dokploy/utils/i18n.ts | 8 +-
packages/server/package.json | 2 +-
81 files changed, 1268 insertions(+), 1765 deletions(-)
create mode 100644 apps/dokploy/public/locales/az/settings.json
create mode 100644 apps/dokploy/public/locales/de/settings.json
create mode 100644 apps/dokploy/public/locales/en/settings.json
create mode 100644 apps/dokploy/public/locales/es/settings.json
create mode 100644 apps/dokploy/public/locales/fa/settings.json
create mode 100644 apps/dokploy/public/locales/fr/settings.json
create mode 100644 apps/dokploy/public/locales/id/settings.json
create mode 100644 apps/dokploy/public/locales/it/settings.json
create mode 100644 apps/dokploy/public/locales/ja/settings.json
create mode 100644 apps/dokploy/public/locales/ko/settings.json
create mode 100644 apps/dokploy/public/locales/kz/settings.json
create mode 100644 apps/dokploy/public/locales/ml/settings.json
create mode 100644 apps/dokploy/public/locales/no/settings.json
create mode 100644 apps/dokploy/public/locales/pl/settings.json
create mode 100644 apps/dokploy/public/locales/pt-br/settings.json
create mode 100644 apps/dokploy/public/locales/ru/settings.json
create mode 100644 apps/dokploy/public/locales/tr/settings.json
create mode 100644 apps/dokploy/public/locales/uk/settings.json
create mode 100644 apps/dokploy/public/locales/zh-Hans/settings.json
create mode 100644 apps/dokploy/public/locales/zh-Hant/settings.json
diff --git a/apps/dokploy/components/dashboard/organization/handle-organization.tsx b/apps/dokploy/components/dashboard/organization/handle-organization.tsx
index 2d30bc82..014c37df 100644
--- a/apps/dokploy/components/dashboard/organization/handle-organization.tsx
+++ b/apps/dokploy/components/dashboard/organization/handle-organization.tsx
@@ -21,7 +21,6 @@ import { Input } from "@/components/ui/input";
import { api } from "@/utils/api";
import { zodResolver } from "@hookform/resolvers/zod";
import { PenBoxIcon, Plus } from "lucide-react";
-import { useTranslation } from "next-i18next";
import { useEffect, useState } from "react";
import { useForm } from "react-hook-form";
import { toast } from "sonner";
@@ -42,7 +41,6 @@ interface Props {
}
export function AddOrganization({ organizationId }: Props) {
- const { t } = useTranslation();
const [open, setOpen] = useState(false);
const utils = api.useUtils();
const { data: organization } = api.organization.one.useQuery(
@@ -83,9 +81,7 @@ export function AddOrganization({ organizationId }: Props) {
.then(() => {
form.reset();
toast.success(
- organizationId
- ? t("common.side.organizations.updateSuccess")
- : t("common.side.organizations.createSuccess"),
+ `Organization ${organizationId ? "updated" : "created"} successfully`,
);
utils.organization.all.invalidate();
setOpen(false);
@@ -93,9 +89,7 @@ export function AddOrganization({ organizationId }: Props) {
.catch((error) => {
console.error(error);
toast.error(
- organizationId
- ? t("common.side.organizations.updateFailed")
- : t("common.side.organizations.createFailed"),
+ `Failed to ${organizationId ? "update" : "create"} organization`,
);
});
};
@@ -119,7 +113,7 @@ export function AddOrganization({ organizationId }: Props) {
- {t("common.side.organizations.createOrganization")}
+ Add organization
)}
@@ -127,14 +121,12 @@ export function AddOrganization({ organizationId }: Props) {
- {organizationId
- ? t("common.side.organizations.updateOrganization")
- : t("common.side.organizations.createOrganization")}
+ {organizationId ? "Update organization" : "Add organization"}
{organizationId
- ? t("common.side.organizations.updateOrganizationDescription")
- : t("common.side.organizations.createOrganizationDescription")}
+ ? "Update the organization name and logo"
+ : "Create a new organization to manage your projects."}
diff --git a/apps/dokploy/components/dashboard/projects/show.tsx b/apps/dokploy/components/dashboard/projects/show.tsx
index 61c73dc7..f5566143 100644
--- a/apps/dokploy/components/dashboard/projects/show.tsx
+++ b/apps/dokploy/components/dashboard/projects/show.tsx
@@ -47,11 +47,9 @@ import { useMemo, useState } from "react";
import { toast } from "sonner";
import { HandleProject } from "./handle-project";
import { ProjectEnvironment } from "./project-environment";
-import { useTranslation } from "next-i18next";
export const ShowProjects = () => {
const utils = api.useUtils();
- const { t } = useTranslation();
const { data, isLoading } = api.project.all.useQuery();
const { data: auth } = api.user.get.useQuery();
const { mutateAsync } = api.project.remove.useMutation();
@@ -78,10 +76,10 @@ export const ShowProjects = () => {
- {t("home.projects.title")}
+ Projects
- {t("home.projects.description")}
+ Create and manage your projects
@@ -188,9 +186,7 @@ export const ShowProjects = () => {
target="_blank"
href={`${domain.https ? "https" : "http"}://${domain.host}${domain.path}`}
>
-
- {domain.host}
-
+ {domain.host}
@@ -226,9 +222,7 @@ export const ShowProjects = () => {
target="_blank"
href={`${domain.https ? "https" : "http"}://${domain.host}${domain.path}`}
>
-
- {domain.host}
-
+ {domain.host}
diff --git a/apps/dokploy/components/dashboard/settings/api/add-api-key.tsx b/apps/dokploy/components/dashboard/settings/api/add-api-key.tsx
index a26f885c..131d7ddf 100644
--- a/apps/dokploy/components/dashboard/settings/api/add-api-key.tsx
+++ b/apps/dokploy/components/dashboard/settings/api/add-api-key.tsx
@@ -33,7 +33,6 @@ import {
import { Switch } from "@/components/ui/switch";
import copy from "copy-to-clipboard";
import { CodeEditor } from "@/components/shared/code-editor";
-import { useTranslation } from "next-i18next";
const formSchema = z.object({
name: z.string().min(1, "Name is required"),
@@ -80,7 +79,6 @@ const REFILL_INTERVAL_OPTIONS = [
];
export const AddApiKey = () => {
- const { t } = useTranslation();
const [open, setOpen] = useState(false);
const [showSuccessModal, setShowSuccessModal] = useState(false);
const [newApiKey, setNewApiKey] = useState("");
@@ -97,7 +95,7 @@ export const AddApiKey = () => {
void refetch();
},
onError: () => {
- toast.error(t("settings.api.errorGeneratingApiKey"));
+ toast.error("Failed to generate API key");
},
});
@@ -142,13 +140,14 @@ export const AddApiKey = () => {
<>