feat: chrome translation — Thought Garden (~31 sites) - #48
Merged
Conversation
TrainTravel
added a commit
that referenced
this pull request
May 27, 2026
Documents the register and structure conventions established across PRs #40-#48 so future Claude sessions and subagents auto-load the same rules. Covers: - Japanese register (polite です・ます, no keigo, no あなた pronoun) - Chinese S/T character splits (with a verified non-exhaustive list) - Dynamic-language-name strings (LANGUAGE_NAMES helper, not literal) - Fallback policy (optional keys + dev-mode warning) - Native review queue (AI drafts ≠ final) - PR scope discipline (≤ 8 files, ≤ 200 lines, cherry-pick large sweeps) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…ventions Adds ja / zh-Hans / zh-Hant keys to ThoughtGardenScreen.tsx — the largest single-file translation surface in the chrome sweep. Spun out as its own PR because the file would have made the bundled thought-management PR (#47) too big to review. Also adds a new 'Chrome Translation Conventions' section to CLAUDE.md (same content as PR #47) codifying: - Japanese polite register / no-keigo / no-あなた rule - Chinese S/T character distinctions - Dynamic-language-name strings flagged for future LANGUAGE_NAMES - Fallback policy + dev-mode warning chain - PR scope discipline (≤ 8 files, ≤ 200 lines per translation PR) The CLAUDE.md addition is duplicated across #47 and #48 by design; whichever merges first lands the content, the second rebase detects the no-op. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
TrainTravel
force-pushed
the
feat/chrome-translation-thought-garden
branch
from
May 27, 2026 01:08
f35dffe to
8bf7f9c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds Japanese, Simplified Chinese, and Traditional Chinese keys to the Thought Garden screen — the cluster + theme grouping board.
Split out from the wider thought-mgmt PR (#47) because of its size: ~31
t()/bilingual()sites, including 10 toast messages with interpolated counts/labels.File:
ThoughtGardenScreen.tsxTranslation samples
Thought Garden→思考の庭/思绪花园/思緒花園My garden→私の庭/我的花园/我的花園Tag N new→新しいN件にタグを付ける/为新增 N 条打标签/為新增 N 條加標籤Convert to cluster→クラスターに変換/转为分组/轉為分組Your garden is empty. Start with a brain dump!→庭はまだ空っぽです。脳のメモから始めましょう!Toasts with interpolated counts/labels (
Déplacé vers "...",Cluster created with N thoughts, etc.) all got proper translations with the count/label interpolated into the locale-appropriate position.Test plan
tsc --noEmitpassesvitest run— 14 files / 198 tests passCo-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com