feat: 中英切換與美金顯示(第一階段:主看板、/my) #25

Merged
walkdoggo.yeh merged 9 commits from feat/i18n-currency into main 2026-11-11 17:38:52 +00:00
Owner

第一階段:主看板與 /my 可以切換中文/English、NT$/US$。

  • 右上(主看板在左下角,跟日間/夜間放一起)新增「中文|EN」與「NT$|US$」兩個獨立切換,存在各自的瀏覽器,預設中文、NT$。
  • US$ 依核心參數新增的「美金匯率」換算,預設 1 USD = 30 TWD。已定錨時,匯率跟其他參數一樣到下一次定錨才生效。
  • English:畫面文字依 i18n.js 的對照表翻成英文;姓名顯示「中文+英文」。英文名由 /api/names 提供,對照表存在資料區(english-names.json,不進 Git),只有最高管理者能匯入。
  • 中文、NT$ 的畫面數字與合併前相同(逐頁比對);差別只有金額統一加上 NT$、去掉小數。
  • 權限頁、封存頁、登出頁是第二階段。

測試:node --test 66 項全過(新增 4 項)。
回退點:tag rollback-pre-i18n

🤖 Generated with Claude Code

https://claude.ai/code/session_01VDJVpPiGiWjJP1yVvvGhzQ

第一階段:主看板與 /my 可以切換中文/English、NT$/US$。 - 右上(主看板在左下角,跟日間/夜間放一起)新增「中文|EN」與「NT$|US$」兩個獨立切換,存在各自的瀏覽器,預設中文、NT$。 - US$ 依核心參數新增的「美金匯率」換算,預設 1 USD = 30 TWD。已定錨時,匯率跟其他參數一樣到下一次定錨才生效。 - English:畫面文字依 i18n.js 的對照表翻成英文;姓名顯示「中文+英文」。英文名由 /api/names 提供,對照表存在資料區(english-names.json,不進 Git),只有最高管理者能匯入。 - 中文、NT$ 的畫面數字與合併前相同(逐頁比對);差別只有金額統一加上 NT$、去掉小數。 - 權限頁、封存頁、登出頁是第二階段。 測試:node --test 66 項全過(新增 4 項)。 回退點:tag rollback-pre-i18n 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01VDJVpPiGiWjJP1yVvvGhzQ
walkdoggo.yeh added 9 commits 2026-11-11 17:37:40 +00:00
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VDJVpPiGiWjJP1yVvvGhzQ
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VDJVpPiGiWjJP1yVvvGhzQ
test: 語言、幣別換算與英文名對照
CI / build (push) Successful in 29s
7031ac799c
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VDJVpPiGiWjJP1yVvvGhzQ
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VDJVpPiGiWjJP1yVvvGhzQ
feat: 核心參數新增美金匯率 usdRate
CI / build (push) Failing after 28s
f7aec7bff5
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VDJVpPiGiWjJP1yVvvGhzQ
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VDJVpPiGiWjJP1yVvvGhzQ
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VDJVpPiGiWjJP1yVvvGhzQ
feat: /my 加語言與幣別切換
CI / build (push) Successful in 33s
cbc6829a45
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VDJVpPiGiWjJP1yVvvGhzQ
feat: 主看板金額依幣別顯示、核心參數加匯率、加語言與幣別切換
CI / build (push) Successful in 32s
CI / build (pull_request) Successful in 31s
1278974239
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VDJVpPiGiWjJP1yVvvGhzQ
walkdoggo.yeh merged commit 731ae3f568 into main 2026-11-11 17:38:52 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: walkdoggo.yeh/leadboard#25