Skip to content

feat: chrome translation — Thought Garden (~31 sites) - #48

Merged
TrainTravel merged 1 commit into
mainfrom
feat/chrome-translation-thought-garden
May 27, 2026
Merged

feat: chrome translation — Thought Garden (~31 sites)#48
TrainTravel merged 1 commit into
mainfrom
feat/chrome-translation-thought-garden

Conversation

@TrainTravel

Copy link
Copy Markdown
Owner

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.tsx

Translation 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 --noEmit passes
  • vitest run — 14 files / 198 tests pass
  • Manual: switch primary to ja, browse Thought Garden, drag a thought between themes, hit Re-tag, create a cluster

Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com

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
TrainTravel force-pushed the feat/chrome-translation-thought-garden branch from f35dffe to 8bf7f9c Compare May 27, 2026 01:08
@TrainTravel
TrainTravel merged commit ff901f8 into main May 27, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant