Files
mindfulness/client/src/i18n/ALL_COPY.md
雷汀岚 ce018880f4 fix(i18n): 繁中開屏 consent 文案不生效 - 寫死繁中文案、清理腳本、文件
- splash: 繁中 consent 使用元件內 ZH_TW_CONSENT,避免 bundle 快取
- splash: 使用 isTraditionalChineseLocaleTag 判斷繁中
- i18n: 註解與 __DEV__ debug log
- package: clean:cache, start:clean, ios:clean, clean:ios-build
- ALL_COPY: 故障排除與 consent 只改 zh-TW.json 說明
- spec_kit: Splash Consent overflow 記錄排查結論

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-09 23:05:17 +08:00

1.5 KiB
Raw Blame History

應用文案總表(請在對應 JSON 中修改)

語言與檔案對應(單一來源,避免多檔覆蓋)

語言 實際使用的檔案 說明
英文 locales/all.jsonen 只改 all.json 的 en 區塊
繁體中文 locales/zh-TW.json 唯一來源Onboarding / 開屏 consent 等繁中文案只改此檔
  • 運行時 繁中zh-TW只讀取 zh-TW.json,不會讀取 all.json 的 zh-TW 區塊。
  • 修改 JSON 後需重新載入 App(模擬器 Cmd+R)或重啟 Metro必要時加 --clear)才會看到新文案。
  • 若修改 zh-TW.json 後開屏 consent 仍顯示舊文案:請執行 npm run clean:cache,再以 npm run start:clean 啟動 Metro或先刪除模擬器上的 App 再執行 npm run ios:clean),確保吃到最新 bundle。

快速索引(高頻文案)

  • 開屏 / 協議consent.*繁中只改 zh-TW.jsonconsent.titleconsent.subtitleconsent.subtitleSecondary、agree, privacy, terms, notice…
  • Onboarding 問卷onboardingSurvey.steps.*name.title, status.title, status.options.* …)
  • Onboarding 招呼語onboardingSurvey.greetingHi {{name}}
  • Homehome.*
  • Push 提示push.*
  • 主題theme.*
  • 我的 / Profileprofile.*
  • 收藏favorites.*
  • 設定settings.*
  • Mock 文案mock.*