From 429e8ffc829531d5e5af3a1c03deb969ab0f388a Mon Sep 17 00:00:00 2001 From: l0ng-ai <24760907+l0ng-ai@users.noreply.github.com> Date: Wed, 28 Oct 2026 12:38:25 +0800 Subject: [PATCH] fix(i18n): Translate the remaining Git and pull request text (#116) Multi-repo branch popup matches actions by their translated label (highlights and Chinese search now work) and translates its group headers. Conflict counts, relative times (shared dateFormat), in-progress operation titles, git operation progress/results, branch widget tooltips, diff/hunk counts, worktree markers, PR author line and review placeholders go through tx; the default "Changes" changelist shows its translated name. HexViewer read-only leaves the untranslated allowlist. 92 zh entries. Claude-Session: https://claude.ai/code/session_01VUYsdXA2nkF5v6zsC93dpn --- src/features/database/ObjectDialogs.tsx | 2 +- src/features/debugger/ui/DebugToolWindow.tsx | 4 +- src/features/github/PullRequestsView.tsx | 4 +- src/features/github/dialogs.tsx | 2 +- .../search/structure/StructureView.tsx | 4 +- src/features/vcs/BranchWidget.tsx | 36 +++++--- src/features/vcs/CommitView.tsx | 15 ++- src/features/vcs/DiffEditor.tsx | 12 ++- src/features/vcs/HunkPopup.tsx | 8 +- src/features/vcs/MergeEditor.tsx | 2 +- .../vcs/__tests__/repoBranches.test.ts | 13 +++ src/features/vcs/clone.tsx | 3 +- src/features/vcs/gitMenuDialogs.tsx | 2 +- src/features/vcs/operations.tsx | 66 +++++++++++--- src/features/vcs/ops.ts | 11 ++- src/features/vcs/patches.tsx | 8 +- src/features/vcs/remoteUi.tsx | 2 +- src/features/vcs/repoBranches.ts | 17 ++-- src/features/vcs/shelf.tsx | 2 +- src/platform/dateFormat.ts | 9 +- src/platform/locales/text/zh.json | 91 ++++++++++++++++++- src/platform/locales/textCatalog.test.ts | 1 - 22 files changed, 237 insertions(+), 77 deletions(-) diff --git a/src/features/database/ObjectDialogs.tsx b/src/features/database/ObjectDialogs.tsx index 8681ad52a..30121bac2 100644 --- a/src/features/database/ObjectDialogs.tsx +++ b/src/features/database/ObjectDialogs.tsx @@ -293,7 +293,7 @@ function ModifyTableDialog(props: ModifyProps) { width={440} buttons={[{ label: "Cancel", role: "cancel" }]} > -
{details?.status === "error" ? details.message : "Loading…"}
+
{details?.status === "error" ? details.message : tx("Loading…")}
); } diff --git a/src/features/debugger/ui/DebugToolWindow.tsx b/src/features/debugger/ui/DebugToolWindow.tsx index 59595231a..f331b5aec 100644 --- a/src/features/debugger/ui/DebugToolWindow.tsx +++ b/src/features/debugger/ui/DebugToolWindow.tsx @@ -276,7 +276,9 @@ function FramesPane({ session }: { session: DebugSession }) { } onBlur={() => blurDebugView("frames")} > - {!paused &&
{session.status === "terminated" ? tx("Finished") : "Running…"}
} + {!paused && ( +
{session.status === "terminated" ? tx("Finished") : tx("Running…")}
+ )} {items.map((item) => item.kind === "hidden" ? (