Skip to content

feat: chrome translation — EmotionsScreen (ja/zh-Hans/zh-Hant) - #44

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

feat: chrome translation — EmotionsScreen (ja/zh-Hans/zh-Hant)#44
TrainTravel merged 1 commit into
mainfrom
feat/chrome-translation-emotions-screen

Conversation

@TrainTravel

Copy link
Copy Markdown
Owner

Summary

Single-screen translation PR — cherry-picked from the larger Tier 2 sweep so the diff is small enough to actually review.

EmotionsScreen is the screen most central to OutputFirst's emotional-granularity goal. 9 t() call sites get ja / zh-Hans / zh-Hant keys.

Diff is 9 strings — review them yourself

"A word for how you feel"  → 今の気持ちを一言で / 用一个词形容你的感受 / 用一個詞形容你的感受
"Edit my text"             → 本文を編集 / 修改我的文字 / 修改我的文字
"Back to home"             → ホームに戻る / 返回首页 / 返回首頁
"Choose up to N words."    → 最大N語まで選べます。 / 最多选 N 个词。 / 最多選 N 個詞。
"Long-press a word..."     → 長押しで言葉を詳しく見る / 长按可查看词义 / 長按可查看詞義
"Words explored"           → 出会った語彙 / 已探索词汇 / 已探索詞彙
"Explore all 48 words"     → 48語すべてを見る / 浏览全部 48 个词 / 瀏覽全部 48 個詞
"Continue"                 → 続ける / 继续 / 繼續
"Skip this step"           → この手順をスキップ / 跳过这一步 / 跳過這一步

Test plan

  • npx tsc --noEmit — clean
  • npx vitest run — 198 / 198 (full green, including the just-fixed freewrite test)
  • Manual: pick an emotion with target=ja, verify the screen reads naturally in Japanese
  • Manual: same with target=zh-Hant and target=zh-Hans

Why cherry-picked, not bulk

After PRs #38-#43, the user requested I cherry-pick translation work into smaller reviewable PRs rather than ship the entire sweep at once. This is the first of those. Other Tier 2 files (WriteScreen, ReflectionScreen, GratitudeScreen, FeedbackScreen, ThoughtGardenScreen, etc.) exist on the sweep branch and will be opened as separate small PRs by a follow-up agent.

🤖 Generated with Claude Code

Adds Japanese, Simplified Chinese, and Traditional Chinese keys to
the 9 t() call sites on EmotionsScreen — the screen most central
to the app's emotional-granularity goal.

Cherry-picked from the larger Tier 2 sweep branch
(feat/chrome-translation-tier2-3) as a reviewable single-file PR.
Other Tier 2 files remain on the sweep branch awaiting separate
PRs.

Strings translated:
- Header "A word for how you feel"
- Back buttons ("Edit my text", "Back to home")
- Word-limit instruction ("Choose up to N words.")
- Long-press hint
- Vocabulary progress label
- "Explore all 48 words" CTA
- Continue / Skip buttons

Register: polite Japanese (です・ます), neutral Mandarin (S/T
distinguished where they differ — 词/詞, 继续/繼續, 跳过/跳過).

Native review pass still planned post-merge.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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