Skip to content

feat: chrome translation — write flow (4 screens) - #45

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

feat: chrome translation — write flow (4 screens)#45
TrainTravel merged 1 commit into
mainfrom
feat/chrome-translation-write-flow

Conversation

@TrainTravel

Copy link
Copy Markdown
Owner

Summary

Adds Japanese, Simplified Chinese, and Traditional Chinese keys to the four writing-entry screens so users never silently fall back to English mid-session.

Files (~30 t() / bilingual() sites total):

  • WriteScreen.tsx
  • FreeWriteScreen.tsx
  • FreeWriteChoiceScreen.tsx
  • ExpressiveWriteScreen.tsx

Cherry-picked from the larger sweep branch (feat/chrome-translation-tier2-3) as a per-flow reviewable PR, same pattern as #44.

Translation samples

  • Back戻る / 返回 / 返回
  • Free Write自由に書く / 自由书写 / 自由書寫
  • Don't worry about mistakes.間違いは気にしないでください。 / 别担心错误。 / 別擔心錯誤。
  • What kind of writing?どんな書き方にしますか? / 想要哪种写作? / 想要哪種寫作?
  • Take a moment to breathe.少し深呼吸しましょう。 / 稍作停顿,深呼吸一下。 / 稍作停頓,深呼吸一下。

Register: polite Japanese (です・ます), neutral Mandarin with S/T distinguished where they differ (继续/繼續, 书写/書寫). Native review pass still planned post-merge.

Test plan

  • tsc --noEmit passes
  • vitest run — 14 files / 198 tests pass
  • Manual: switch primary to ja, walk Write → Continue
  • Manual: switch primary to zh-Hans, walk FreeWriteChoice → ExpressiveWrite intro/writing/selfcare

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

Adds Japanese, Simplified Chinese, and Traditional Chinese keys to
the four writing-entry screens:

- WriteScreen.tsx
- FreeWriteScreen.tsx
- FreeWriteChoiceScreen.tsx
- ExpressiveWriteScreen.tsx

~30 t()/bilingual() sites total. Cherry-picked from the larger sweep
branch (feat/chrome-translation-tier2-3) as a per-flow reviewable PR
following the PR #44 pattern.

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>
@TrainTravel
TrainTravel merged commit 4911d44 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