From 4cd2aa6f324188ea232767e90f518d6f8909271f Mon Sep 17 00:00:00 2001 From: xt <32516078+xtzero@users.noreply.github.com> Date: Wed, 12 Feb 2025 10:13:09 +0800 Subject: [PATCH] chore: chinese localization enhancements (#4397) * Chinese localization enhancements * Fix for eslint --- web/src/components/CreateShortcutDialog.tsx | 8 ++-- .../Settings/MemoRelatedSettings.tsx | 2 +- .../components/Settings/WorkspaceSection.tsx | 2 +- web/src/locales/en.json | 5 +- web/src/locales/zh-Hans.json | 47 +++++++++++++++++-- 5 files changed, 54 insertions(+), 10 deletions(-) diff --git a/web/src/components/CreateShortcutDialog.tsx b/web/src/components/CreateShortcutDialog.tsx index dcafcfc7..5fc485d2 100644 --- a/web/src/components/CreateShortcutDialog.tsx +++ b/web/src/components/CreateShortcutDialog.tsx @@ -64,22 +64,22 @@ const CreateShortcutDialog: React.FC = (props: Props) => { return ( <>
-

{`${isCreating ? "Create" : "Edit"} Shortcut`}

+

{`${isCreating ? t("common.create") : t("common.edit")} ${t("common.shortcuts")}`}

- Title + {t("common.title")} - Filter + {t("common.filter")}