Skip to content

feat: chrome translation — reflection flow (3 screens) - #46

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

feat: chrome translation — reflection flow (3 screens)#46
TrainTravel merged 1 commit into
mainfrom
feat/chrome-translation-reflection-flow

Conversation

@TrainTravel

Copy link
Copy Markdown
Owner

Summary

Adds Japanese, Simplified Chinese, and Traditional Chinese keys to the three post-write reflection screens.

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

  • ReflectionScreen.tsx
  • GratitudeScreen.tsx
  • FeedbackScreen.tsx

Cherry-picked from feat/chrome-translation-tier2-3 as a per-flow reviewable PR, following #44 / #45.

Translation samples

  • Taking a moment to reflect...少し考えています... / 稍等,正在思考... / 稍等,正在思考...
  • Finish with gratitude感謝で締めくくる / 以感恩收尾 / 以感恩收尾
  • Complete journal日記を完了する / 完成日记 / 完成日記
  • A moment of clarity澄んだひととき / 清明片刻 / 清明片刻
  • A small noteひとこと / 小提示 / 小提示

Known carve-outs

The hard-coded isFr ? : isEs ? : ... ternaries inside ReflectionScreen.tsx (4 sites) and FeedbackScreen.tsx (1 site) are pre-existing technical debt — they bypass t() entirely, so they're outside this PR's chrome-translation scope. They'll be migrated to proper t() calls in a follow-up.

Test plan

  • tsc --noEmit passes
  • vitest run — 14 files / 198 tests pass
  • Manual: switch primary to ja, complete journal → Feedback → Reflection → Gratitude

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

Adds Japanese, Simplified Chinese, and Traditional Chinese keys to
the three post-write reflection screens:

- ReflectionScreen.tsx
- GratitudeScreen.tsx
- FeedbackScreen.tsx

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

The hard-coded isFr/isEs ternaries inside ReflectionScreen and
FeedbackScreen are pre-existing technical debt (not t() calls) and
remain out of scope for this pass — they'll be cleaned up in a
follow-up that refactors them into proper t() sites.

Register: polite Japanese (です・ます), neutral Mandarin (S/T
distinguished where they differ).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@TrainTravel
TrainTravel force-pushed the feat/chrome-translation-reflection-flow branch from 71f9dad to ab464fb Compare May 27, 2026 00:49
@TrainTravel
TrainTravel merged commit 2f2e85b 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