i18n-strings-and-catalogs
Writes and checks every Pocket Arcade UI text - react-intl catalogs, semantic keys, ICU plurals, t() and T, Intl polyfills, copy-deck strings, de/fa/ckb translations. Use when adding or changing visible text, a message key, a translation or copy. Not for RTL layout or digits (rtl-and-direction).
- License 许可
- MIT
- 最近更新
- 2026-11-05
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- i18n-strings-and-catalogs
- description
- Writes and checks every Pocket Arcade UI text - react-intl catalogs, semantic keys, ICU plurals, t() and T, Intl polyfills, copy-deck strings, de/fa/ckb translations. Use when adding or changing visible text, a message key, a translation or copy. Not for RTL layout or digits (rtl-and-direction).
02 资源文件 500
- 资产文件assets/copy-deck.json153.4 KB
- 资产文件assets/shared.json948 B
- 资产文件assets/shell-extras.json5.5 KB
- 参考文档examples/add-a-counted-message.md6.3 KB
- 参考文档references/catalogs-keys-and-icu.md19.2 KB
- 参考文档references/runtime-and-provider.md13.8 KB
- 参考文档references/translation-workflow.md23.9 KB
- 脚本scripts/check-catalogs.mjs9.8 KB
- 脚本scripts/check-i18n-code.mjs19.7 KB
- 脚本scripts/check-lib.mjs44.4 KB
- 脚本scripts/copy-deck.mjs23.9 KB
- 脚本scripts/lib/catalog-rules.mjs10.7 KB
- 脚本scripts/lib/icu-parse.mjs9.0 KB
- 脚本scripts/lib/source-scan.mjs8.8 KB
- 脚本scripts/selftest.mjs875 B
- 脚本templates/game-i18n/keys.ts2.0 KB
- 脚本templates/root-test/start-shell-imports.test.ts696 B
- 脚本templates/shell-i18n/bidi.ts3.3 KB
- 脚本templates/shell-i18n/create-t.test.ts2.6 KB
- 脚本templates/shell-i18n/create-t.ts1.3 KB
- 其他templates/shell-i18n/device-locales-context.tsx703 B
- 脚本templates/shell-i18n/digits.ts799 B
- 脚本templates/shell-i18n/format-date.test.ts3.0 KB
- 脚本templates/shell-i18n/format-date.ts4.3 KB
- 脚本templates/shell-i18n/game-message-text.test.ts1.8 KB
- 脚本templates/shell-i18n/game-message-text.ts989 B
- 其他templates/shell-i18n/i18n-provider.tsx1.1 KB
- 脚本templates/shell-i18n/intl-polyfills.ts1.3 KB
- 脚本templates/shell-i18n/intl-status.test.ts648 B
- 脚本templates/shell-i18n/intl-status.ts435 B
- 其他templates/shell-i18n/language-context.tsx280 B
- 脚本templates/shell-i18n/languages.ts851 B
- 脚本templates/shell-i18n/messages.ts2.0 KB
- 脚本templates/shell-i18n/resolve-language.test.ts2.0 KB
- 脚本templates/shell-i18n/resolve-language.ts1.5 KB
- 其他templates/shell-i18n/t-bridge.tsx576 B
- 脚本templates/shell-i18n/t-context.ts433 B
- 其他templates/shell-i18n/t.test.tsx1.2 KB
- 其他templates/shell-i18n/t.tsx695 B
- 脚本templates/tooling-i18n/catalog-dirs.test.ts1.5 KB
- 脚本templates/tooling-i18n/catalog-dirs.ts1.1 KB
- 脚本templates/tooling-i18n/catalog-lint-rules.test.ts3.1 KB
- 脚本templates/tooling-i18n/catalog-lint-rules.ts7.9 KB
- 脚本templates/tooling-i18n/catalog-lint.ts1.9 KB
- 脚本templates/tooling-i18n/icu-walk.ts863 B
- 脚本templates/tooling-i18n/review-sheet.test.ts7.3 KB
- 脚本templates/tooling-i18n/review-sheet.ts9.7 KB
- 脚本templates/tooling-i18n/verify-catalogs.ts1.3 KB
- 参考文档tests/fixtures/check-catalogs/bad-arabic-letters/apps/line-siege/src/i18n/ckb.json1.9 KB
- 参考文档tests/fixtures/check-catalogs/bad-arabic-letters/apps/line-siege/src/i18n/de.json1.4 KB
- 参考文档tests/fixtures/check-catalogs/bad-arabic-letters/apps/line-siege/src/i18n/en.json1.3 KB
- 参考文档tests/fixtures/check-catalogs/bad-arabic-letters/apps/line-siege/src/i18n/fa.json1.8 KB
- 参考文档tests/fixtures/check-catalogs/bad-arabic-letters/EXPECT.txt29 B
- 参考文档tests/fixtures/check-catalogs/bad-arabic-letters/packages/shell/src/i18n/catalogs/ckb.json2.1 KB
- 参考文档tests/fixtures/check-catalogs/bad-arabic-letters/packages/shell/src/i18n/catalogs/de.json1.6 KB
- 参考文档tests/fixtures/check-catalogs/bad-arabic-letters/packages/shell/src/i18n/catalogs/en.json1.5 KB
- 参考文档tests/fixtures/check-catalogs/bad-arabic-letters/packages/shell/src/i18n/catalogs/fa.json1.9 KB
- 参考文档tests/fixtures/check-catalogs/bad-bidi-control/apps/line-siege/src/i18n/ckb.json1.9 KB
- 参考文档tests/fixtures/check-catalogs/bad-bidi-control/apps/line-siege/src/i18n/de.json1.4 KB
- 参考文档tests/fixtures/check-catalogs/bad-bidi-control/apps/line-siege/src/i18n/en.json1.3 KB
- 参考文档tests/fixtures/check-catalogs/bad-bidi-control/apps/line-siege/src/i18n/fa.json1.8 KB
- 参考文档tests/fixtures/check-catalogs/bad-bidi-control/EXPECT.txt27 B
- 参考文档tests/fixtures/check-catalogs/bad-bidi-control/packages/shell/src/i18n/catalogs/ckb.json2.1 KB
- 参考文档tests/fixtures/check-catalogs/bad-bidi-control/packages/shell/src/i18n/catalogs/de.json1.6 KB
- 参考文档tests/fixtures/check-catalogs/bad-bidi-control/packages/shell/src/i18n/catalogs/en.json1.5 KB
- 参考文档tests/fixtures/check-catalogs/bad-bidi-control/packages/shell/src/i18n/catalogs/fa.json1.9 KB
- 参考文档tests/fixtures/check-catalogs/bad-count-needs-plural/apps/line-siege/src/i18n/ckb.json1.9 KB
- 参考文档tests/fixtures/check-catalogs/bad-count-needs-plural/apps/line-siege/src/i18n/de.json1.4 KB
- 参考文档tests/fixtures/check-catalogs/bad-count-needs-plural/apps/line-siege/src/i18n/en.json1.3 KB
- 参考文档tests/fixtures/check-catalogs/bad-count-needs-plural/apps/line-siege/src/i18n/fa.json1.8 KB
- 参考文档tests/fixtures/check-catalogs/bad-count-needs-plural/EXPECT.txt32 B
- 参考文档tests/fixtures/check-catalogs/bad-count-needs-plural/packages/shell/src/i18n/catalogs/ckb.json2.1 KB
- 参考文档tests/fixtures/check-catalogs/bad-count-needs-plural/packages/shell/src/i18n/catalogs/de.json1.5 KB
- 参考文档tests/fixtures/check-catalogs/bad-count-needs-plural/packages/shell/src/i18n/catalogs/en.json1.5 KB
- 参考文档tests/fixtures/check-catalogs/bad-count-needs-plural/packages/shell/src/i18n/catalogs/fa.json1.9 KB
- 参考文档tests/fixtures/check-catalogs/bad-debug-translated/apps/line-siege/src/i18n/ckb.json1.9 KB
- 参考文档tests/fixtures/check-catalogs/bad-debug-translated/apps/line-siege/src/i18n/de.json1.4 KB
- 参考文档tests/fixtures/check-catalogs/bad-debug-translated/apps/line-siege/src/i18n/en.json1.3 KB
- 参考文档tests/fixtures/check-catalogs/bad-debug-translated/apps/line-siege/src/i18n/fa.json1.8 KB
- 参考文档tests/fixtures/check-catalogs/bad-debug-translated/EXPECT.txt42 B
- 参考文档tests/fixtures/check-catalogs/bad-debug-translated/packages/shell/src/i18n/catalogs/ckb.json2.6 KB
- 参考文档tests/fixtures/check-catalogs/bad-debug-translated/packages/shell/src/i18n/catalogs/de.json2.1 KB
- 参考文档tests/fixtures/check-catalogs/bad-debug-translated/packages/shell/src/i18n/catalogs/en.json2.0 KB
- 参考文档tests/fixtures/check-catalogs/bad-debug-translated/packages/shell/src/i18n/catalogs/fa.json2.5 KB
- 参考文档tests/fixtures/check-catalogs/bad-exact-plural/apps/line-siege/src/i18n/ckb.json1.9 KB
- 参考文档tests/fixtures/check-catalogs/bad-exact-plural/apps/line-siege/src/i18n/de.json1.4 KB
- 参考文档tests/fixtures/check-catalogs/bad-exact-plural/apps/line-siege/src/i18n/en.json1.3 KB
- 参考文档tests/fixtures/check-catalogs/bad-exact-plural/apps/line-siege/src/i18n/fa.json1.8 KB
- 参考文档tests/fixtures/check-catalogs/bad-exact-plural/EXPECT.txt33 B
- 参考文档tests/fixtures/check-catalogs/bad-exact-plural/packages/shell/src/i18n/catalogs/ckb.json2.1 KB
- 参考文档tests/fixtures/check-catalogs/bad-exact-plural/packages/shell/src/i18n/catalogs/de.json1.6 KB
- 参考文档tests/fixtures/check-catalogs/bad-exact-plural/packages/shell/src/i18n/catalogs/en.json1.5 KB
- 参考文档tests/fixtures/check-catalogs/bad-exact-plural/packages/shell/src/i18n/catalogs/fa.json1.9 KB
- 参考文档tests/fixtures/check-catalogs/bad-extra-key/apps/line-siege/src/i18n/ckb.json1.9 KB
- 参考文档tests/fixtures/check-catalogs/bad-extra-key/apps/line-siege/src/i18n/de.json1.4 KB
- 参考文档tests/fixtures/check-catalogs/bad-extra-key/apps/line-siege/src/i18n/en.json1.3 KB
- 参考文档tests/fixtures/check-catalogs/bad-extra-key/apps/line-siege/src/i18n/fa.json1.8 KB
- 参考文档tests/fixtures/check-catalogs/bad-extra-key/EXPECT.txt46 B
- 参考文档tests/fixtures/check-catalogs/bad-extra-key/packages/shell/src/i18n/catalogs/ckb.json2.1 KB
- 参考文档tests/fixtures/check-catalogs/bad-extra-key/packages/shell/src/i18n/catalogs/de.json1.6 KB
- 参考文档tests/fixtures/check-catalogs/bad-extra-key/packages/shell/src/i18n/catalogs/en.json1.5 KB
- 参考文档tests/fixtures/check-catalogs/bad-extra-key/packages/shell/src/i18n/catalogs/fa.json1.9 KB
- 参考文档tests/fixtures/check-catalogs/bad-game-namespace/apps/line-siege/src/i18n/ckb.json2.0 KB
- 参考文档tests/fixtures/check-catalogs/bad-game-namespace/apps/line-siege/src/i18n/de.json1.4 KB
- 参考文档tests/fixtures/check-catalogs/bad-game-namespace/apps/line-siege/src/i18n/en.json1.3 KB
- 参考文档tests/fixtures/check-catalogs/bad-game-namespace/apps/line-siege/src/i18n/fa.json1.9 KB
- 参考文档tests/fixtures/check-catalogs/bad-game-namespace/EXPECT.txt55 B
- 参考文档tests/fixtures/check-catalogs/bad-game-namespace/packages/shell/src/i18n/catalogs/ckb.json2.1 KB
- 参考文档tests/fixtures/check-catalogs/bad-game-namespace/packages/shell/src/i18n/catalogs/de.json1.6 KB
- 参考文档tests/fixtures/check-catalogs/bad-game-namespace/packages/shell/src/i18n/catalogs/en.json1.5 KB
- 参考文档tests/fixtures/check-catalogs/bad-game-namespace/packages/shell/src/i18n/catalogs/fa.json1.9 KB
- 参考文档tests/fixtures/check-catalogs/bad-icu-syntax/apps/line-siege/src/i18n/ckb.json1.9 KB
- 参考文档tests/fixtures/check-catalogs/bad-icu-syntax/apps/line-siege/src/i18n/de.json1.4 KB
- 参考文档tests/fixtures/check-catalogs/bad-icu-syntax/apps/line-siege/src/i18n/en.json1.3 KB
- 参考文档tests/fixtures/check-catalogs/bad-icu-syntax/apps/line-siege/src/i18n/fa.json1.8 KB
- 参考文档tests/fixtures/check-catalogs/bad-icu-syntax/EXPECT.txt33 B
- 参考文档tests/fixtures/check-catalogs/bad-icu-syntax/packages/shell/src/i18n/catalogs/ckb.json2.1 KB
- 参考文档tests/fixtures/check-catalogs/bad-icu-syntax/packages/shell/src/i18n/catalogs/de.json1.6 KB
- 参考文档tests/fixtures/check-catalogs/bad-icu-syntax/packages/shell/src/i18n/catalogs/en.json1.5 KB
- 参考文档tests/fixtures/check-catalogs/bad-icu-syntax/packages/shell/src/i18n/catalogs/fa.json1.9 KB
- 参考文档tests/fixtures/check-catalogs/bad-key-shape/apps/line-siege/src/i18n/ckb.json1.9 KB
- 参考文档tests/fixtures/check-catalogs/bad-key-shape/apps/line-siege/src/i18n/de.json1.4 KB
- 参考文档tests/fixtures/check-catalogs/bad-key-shape/apps/line-siege/src/i18n/en.json1.3 KB
- 参考文档tests/fixtures/check-catalogs/bad-key-shape/apps/line-siege/src/i18n/fa.json1.8 KB
- 参考文档tests/fixtures/check-catalogs/bad-key-shape/EXPECT.txt27 B
- 参考文档tests/fixtures/check-catalogs/bad-key-shape/packages/shell/src/i18n/catalogs/ckb.json2.1 KB
- 参考文档tests/fixtures/check-catalogs/bad-key-shape/packages/shell/src/i18n/catalogs/de.json1.6 KB
- 参考文档tests/fixtures/check-catalogs/bad-key-shape/packages/shell/src/i18n/catalogs/en.json1.5 KB
- 参考文档tests/fixtures/check-catalogs/bad-key-shape/packages/shell/src/i18n/catalogs/fa.json1.9 KB
- 参考文档tests/fixtures/check-catalogs/bad-latin-punctuation/apps/line-siege/src/i18n/ckb.json1.9 KB
- 参考文档tests/fixtures/check-catalogs/bad-latin-punctuation/apps/line-siege/src/i18n/de.json1.4 KB
- 参考文档tests/fixtures/check-catalogs/bad-latin-punctuation/apps/line-siege/src/i18n/en.json1.3 KB
- 参考文档tests/fixtures/check-catalogs/bad-latin-punctuation/apps/line-siege/src/i18n/fa.json1.8 KB
- 参考文档tests/fixtures/check-catalogs/bad-latin-punctuation/EXPECT.txt32 B
- 参考文档tests/fixtures/check-catalogs/bad-latin-punctuation/packages/shell/src/i18n/catalogs/ckb.json2.1 KB
- 参考文档tests/fixtures/check-catalogs/bad-latin-punctuation/packages/shell/src/i18n/catalogs/de.json1.6 KB
- 参考文档tests/fixtures/check-catalogs/bad-latin-punctuation/packages/shell/src/i18n/catalogs/en.json1.5 KB
- 参考文档tests/fixtures/check-catalogs/bad-latin-punctuation/packages/shell/src/i18n/catalogs/fa.json1.9 KB
- 参考文档tests/fixtures/check-catalogs/bad-literal-digits/apps/line-siege/src/i18n/ckb.json1.9 KB
- 参考文档tests/fixtures/check-catalogs/bad-literal-digits/apps/line-siege/src/i18n/de.json1.4 KB
- 参考文档tests/fixtures/check-catalogs/bad-literal-digits/apps/line-siege/src/i18n/en.json1.3 KB
- 参考文档tests/fixtures/check-catalogs/bad-literal-digits/apps/line-siege/src/i18n/fa.json1.8 KB
- 参考文档tests/fixtures/check-catalogs/bad-literal-digits/EXPECT.txt32 B
- 参考文档tests/fixtures/check-catalogs/bad-literal-digits/packages/shell/src/i18n/catalogs/ckb.json2.1 KB
- 参考文档tests/fixtures/check-catalogs/bad-literal-digits/packages/shell/src/i18n/catalogs/de.json1.6 KB
- 参考文档tests/fixtures/check-catalogs/bad-literal-digits/packages/shell/src/i18n/catalogs/en.json1.5 KB
- 参考文档tests/fixtures/check-catalogs/bad-literal-digits/packages/shell/src/i18n/catalogs/fa.json1.9 KB
- 参考文档tests/fixtures/check-catalogs/bad-missing-file/apps/line-siege/src/i18n/de.json1.4 KB
- 参考文档tests/fixtures/check-catalogs/bad-missing-file/apps/line-siege/src/i18n/en.json1.3 KB
- 参考文档tests/fixtures/check-catalogs/bad-missing-file/apps/line-siege/src/i18n/fa.json1.8 KB
- 参考文档tests/fixtures/check-catalogs/bad-missing-file/EXPECT.txt38 B
- 参考文档tests/fixtures/check-catalogs/bad-missing-file/packages/shell/src/i18n/catalogs/ckb.json2.1 KB
- 参考文档tests/fixtures/check-catalogs/bad-missing-file/packages/shell/src/i18n/catalogs/de.json1.6 KB
- 参考文档tests/fixtures/check-catalogs/bad-missing-file/packages/shell/src/i18n/catalogs/en.json1.5 KB
- 参考文档tests/fixtures/check-catalogs/bad-missing-file/packages/shell/src/i18n/catalogs/fa.json1.9 KB
- 参考文档tests/fixtures/check-catalogs/bad-missing-key/apps/line-siege/src/i18n/ckb.json1.9 KB
- 参考文档tests/fixtures/check-catalogs/bad-missing-key/apps/line-siege/src/i18n/de.json1.4 KB
- 参考文档tests/fixtures/check-catalogs/bad-missing-key/apps/line-siege/src/i18n/en.json1.3 KB
- 参考文档tests/fixtures/check-catalogs/bad-missing-key/apps/line-siege/src/i18n/fa.json1.8 KB
- 参考文档tests/fixtures/check-catalogs/bad-missing-key/EXPECT.txt53 B
- 参考文档tests/fixtures/check-catalogs/bad-missing-key/packages/shell/src/i18n/catalogs/ckb.json2.0 KB
- 参考文档tests/fixtures/check-catalogs/bad-missing-key/packages/shell/src/i18n/catalogs/de.json1.6 KB
- 参考文档tests/fixtures/check-catalogs/bad-missing-key/packages/shell/src/i18n/catalogs/en.json1.5 KB
- 参考文档tests/fixtures/check-catalogs/bad-missing-key/packages/shell/src/i18n/catalogs/fa.json1.9 KB
- 参考文档tests/fixtures/check-catalogs/bad-missing-shell-catalogs/EXPECT.txt135 B
- 脚本tests/fixtures/check-catalogs/bad-missing-shell-catalogs/packages/tooling/src/i18n/verify-catalogs.ts127 B
- 参考文档tests/fixtures/check-catalogs/bad-missing-win-title/apps/line-siege/src/i18n/ckb.json1.8 KB
- 参考文档tests/fixtures/check-catalogs/bad-missing-win-title/apps/line-siege/src/i18n/de.json1.3 KB
- 参考文档tests/fixtures/check-catalogs/bad-missing-win-title/apps/line-siege/src/i18n/en.json1.2 KB
- 参考文档tests/fixtures/check-catalogs/bad-missing-win-title/apps/line-siege/src/i18n/fa.json1.8 KB
- 参考文档tests/fixtures/check-catalogs/bad-missing-win-title/EXPECT.txt107 B
- 参考文档tests/fixtures/check-catalogs/bad-missing-win-title/packages/shell/src/i18n/catalogs/ckb.json2.1 KB
- 参考文档tests/fixtures/check-catalogs/bad-missing-win-title/packages/shell/src/i18n/catalogs/de.json1.6 KB
- 参考文档tests/fixtures/check-catalogs/bad-missing-win-title/packages/shell/src/i18n/catalogs/en.json1.5 KB
- 参考文档tests/fixtures/check-catalogs/bad-missing-win-title/packages/shell/src/i18n/catalogs/fa.json1.9 KB
- 参考文档tests/fixtures/check-catalogs/bad-not-string/apps/line-siege/src/i18n/ckb.json1.9 KB
- 参考文档tests/fixtures/check-catalogs/bad-not-string/apps/line-siege/src/i18n/de.json1.4 KB
- 参考文档tests/fixtures/check-catalogs/bad-not-string/apps/line-siege/src/i18n/en.json1.3 KB
- 参考文档tests/fixtures/check-catalogs/bad-not-string/apps/line-siege/src/i18n/fa.json1.8 KB
- 参考文档tests/fixtures/check-catalogs/bad-not-string/EXPECT.txt40 B
- 参考文档tests/fixtures/check-catalogs/bad-not-string/packages/shell/src/i18n/catalogs/ckb.json2.1 KB
- 参考文档tests/fixtures/check-catalogs/bad-not-string/packages/shell/src/i18n/catalogs/de.json1.6 KB
- 参考文档tests/fixtures/check-catalogs/bad-not-string/packages/shell/src/i18n/catalogs/en.json1.5 KB
- 参考文档tests/fixtures/check-catalogs/bad-not-string/packages/shell/src/i18n/catalogs/fa.json1.9 KB
- 参考文档tests/fixtures/check-catalogs/bad-placeholder-parity/apps/line-siege/src/i18n/ckb.json1.9 KB
- 参考文档tests/fixtures/check-catalogs/bad-placeholder-parity/apps/line-siege/src/i18n/de.json1.4 KB
- 参考文档tests/fixtures/check-catalogs/bad-placeholder-parity/apps/line-siege/src/i18n/en.json1.3 KB
- 参考文档tests/fixtures/check-catalogs/bad-placeholder-parity/apps/line-siege/src/i18n/fa.json1.8 KB
- 参考文档tests/fixtures/check-catalogs/bad-placeholder-parity/EXPECT.txt41 B
- 参考文档tests/fixtures/check-catalogs/bad-placeholder-parity/packages/shell/src/i18n/catalogs/ckb.json2.1 KB
- 参考文档tests/fixtures/check-catalogs/bad-placeholder-parity/packages/shell/src/i18n/catalogs/de.json1.6 KB
- 参考文档tests/fixtures/check-catalogs/bad-placeholder-parity/packages/shell/src/i18n/catalogs/en.json1.5 KB
- 参考文档tests/fixtures/check-catalogs/bad-placeholder-parity/packages/shell/src/i18n/catalogs/fa.json1.9 KB
- 参考文档tests/fixtures/check-catalogs/bad-plain-number/apps/line-siege/src/i18n/ckb.json1.9 KB
- 参考文档tests/fixtures/check-catalogs/bad-plain-number/apps/line-siege/src/i18n/de.json1.4 KB
- 参考文档tests/fixtures/check-catalogs/bad-plain-number/apps/line-siege/src/i18n/en.json1.3 KB
- 参考文档tests/fixtures/check-catalogs/bad-plain-number/apps/line-siege/src/i18n/fa.json1.8 KB
- 参考文档tests/fixtures/check-catalogs/bad-plain-number/EXPECT.txt44 B
- 参考文档tests/fixtures/check-catalogs/bad-plain-number/packages/shell/src/i18n/catalogs/ckb.json2.1 KB
- 参考文档tests/fixtures/check-catalogs/bad-plain-number/packages/shell/src/i18n/catalogs/de.json1.6 KB
- 参考文档tests/fixtures/check-catalogs/bad-plain-number/packages/shell/src/i18n/catalogs/en.json1.5 KB
- 参考文档tests/fixtures/check-catalogs/bad-plain-number/packages/shell/src/i18n/catalogs/fa.json1.9 KB
- 参考文档tests/fixtures/check-catalogs/bad-plural-category/apps/line-siege/src/i18n/ckb.json1.9 KB
- 参考文档tests/fixtures/check-catalogs/bad-plural-category/apps/line-siege/src/i18n/de.json1.4 KB
- 参考文档tests/fixtures/check-catalogs/bad-plural-category/apps/line-siege/src/i18n/en.json1.3 KB
- 参考文档tests/fixtures/check-catalogs/bad-plural-category/apps/line-siege/src/i18n/fa.json1.8 KB
- 参考文档tests/fixtures/check-catalogs/bad-plural-category/EXPECT.txt45 B
- 参考文档tests/fixtures/check-catalogs/bad-plural-category/packages/shell/src/i18n/catalogs/ckb.json2.1 KB
- 参考文档tests/fixtures/check-catalogs/bad-plural-category/packages/shell/src/i18n/catalogs/de.json1.6 KB
- 参考文档tests/fixtures/check-catalogs/bad-plural-category/packages/shell/src/i18n/catalogs/en.json1.5 KB
- 参考文档tests/fixtures/check-catalogs/bad-plural-category/packages/shell/src/i18n/catalogs/fa.json1.9 KB
- 参考文档tests/fixtures/check-catalogs/bad-sentence-fragment/apps/line-siege/src/i18n/ckb.json1.9 KB
- 参考文档tests/fixtures/check-catalogs/bad-sentence-fragment/apps/line-siege/src/i18n/de.json1.4 KB
- 参考文档tests/fixtures/check-catalogs/bad-sentence-fragment/apps/line-siege/src/i18n/en.json1.3 KB
- 参考文档tests/fixtures/check-catalogs/bad-sentence-fragment/apps/line-siege/src/i18n/fa.json1.8 KB
- 参考文档tests/fixtures/check-catalogs/bad-sentence-fragment/EXPECT.txt54 B
- 参考文档tests/fixtures/check-catalogs/bad-sentence-fragment/packages/shell/src/i18n/catalogs/ckb.json2.1 KB
- 参考文档tests/fixtures/check-catalogs/bad-sentence-fragment/packages/shell/src/i18n/catalogs/de.json1.6 KB
- 参考文档tests/fixtures/check-catalogs/bad-sentence-fragment/packages/shell/src/i18n/catalogs/en.json1.5 KB
- 参考文档tests/fixtures/check-catalogs/bad-sentence-fragment/packages/shell/src/i18n/catalogs/fa.json1.9 KB
- 参考文档tests/fixtures/check-catalogs/bad-shell-key-uses-game-id/apps/line-siege/src/i18n/ckb.json1.9 KB
- 参考文档tests/fixtures/check-catalogs/bad-shell-key-uses-game-id/apps/line-siege/src/i18n/de.json1.4 KB
- 参考文档tests/fixtures/check-catalogs/bad-shell-key-uses-game-id/apps/line-siege/src/i18n/en.json1.3 KB
- 参考文档tests/fixtures/check-catalogs/bad-shell-key-uses-game-id/apps/line-siege/src/i18n/fa.json1.8 KB
- 参考文档tests/fixtures/check-catalogs/bad-shell-key-uses-game-id/EXPECT.txt46 B
- 参考文档tests/fixtures/check-catalogs/bad-shell-key-uses-game-id/packages/shell/src/i18n/catalogs/ckb.json2.1 KB
- 参考文档tests/fixtures/check-catalogs/bad-shell-key-uses-game-id/packages/shell/src/i18n/catalogs/de.json1.6 KB
- 参考文档tests/fixtures/check-catalogs/bad-shell-key-uses-game-id/packages/shell/src/i18n/catalogs/en.json1.5 KB
- 参考文档tests/fixtures/check-catalogs/bad-shell-key-uses-game-id/packages/shell/src/i18n/catalogs/fa.json1.9 KB
- 参考文档tests/fixtures/check-catalogs/bad-unsorted/apps/line-siege/src/i18n/ckb.json1.9 KB
- 参考文档tests/fixtures/check-catalogs/bad-unsorted/apps/line-siege/src/i18n/de.json1.4 KB
- 参考文档tests/fixtures/check-catalogs/bad-unsorted/apps/line-siege/src/i18n/en.json1.3 KB
- 参考文档tests/fixtures/check-catalogs/bad-unsorted/apps/line-siege/src/i18n/fa.json1.8 KB
- 参考文档tests/fixtures/check-catalogs/bad-unsorted/EXPECT.txt26 B
- 参考文档tests/fixtures/check-catalogs/bad-unsorted/packages/shell/src/i18n/catalogs/ckb.json2.1 KB
- 参考文档tests/fixtures/check-catalogs/bad-unsorted/packages/shell/src/i18n/catalogs/de.json1.6 KB
- 参考文档tests/fixtures/check-catalogs/bad-unsorted/packages/shell/src/i18n/catalogs/en.json1.5 KB
- 参考文档tests/fixtures/check-catalogs/bad-unsorted/packages/shell/src/i18n/catalogs/fa.json1.9 KB
- 参考文档tests/fixtures/check-catalogs/good/apps/line-siege/src/i18n/ckb.json1.9 KB
- 参考文档tests/fixtures/check-catalogs/good/apps/line-siege/src/i18n/de.json1.4 KB
- 参考文档tests/fixtures/check-catalogs/good/apps/line-siege/src/i18n/en.json1.3 KB
- 参考文档tests/fixtures/check-catalogs/good/apps/line-siege/src/i18n/fa.json1.8 KB
- 参考文档tests/fixtures/check-catalogs/good/packages/shell/src/i18n/catalogs/ckb.json2.6 KB
- 参考文档tests/fixtures/check-catalogs/good/packages/shell/src/i18n/catalogs/de.json2.1 KB
- 参考文档tests/fixtures/check-catalogs/good/packages/shell/src/i18n/catalogs/en.json2.0 KB
- 参考文档tests/fixtures/check-catalogs/good/packages/shell/src/i18n/catalogs/fa.json2.4 KB
- 参考文档tests/fixtures/check-catalogs/pass-shell-catalogs-not-due/apps/line-siege/src/i18n/ckb.json1.9 KB
- 参考文档tests/fixtures/check-catalogs/pass-shell-catalogs-not-due/apps/line-siege/src/i18n/de.json1.4 KB
- 参考文档tests/fixtures/check-catalogs/pass-shell-catalogs-not-due/apps/line-siege/src/i18n/en.json1.3 KB
- 参考文档tests/fixtures/check-catalogs/pass-shell-catalogs-not-due/apps/line-siege/src/i18n/fa.json1.8 KB
- 参考文档tests/fixtures/check-catalogs/pass-shell-catalogs-not-due/EXPECT.txt150 B
- 参考文档tests/fixtures/check-catalogs/pass-shell-catalogs-not-due/packages/shell/package.json42 B
- 参考文档tests/fixtures/check-i18n-code/bad-alert/apps/demo-game/src/i18n/en.json36 B
- 脚本tests/fixtures/check-i18n-code/bad-alert/apps/demo-game/src/i18n/keys.ts165 B
- 参考文档tests/fixtures/check-i18n-code/bad-alert/EXPECT.txt67 B
- 脚本tests/fixtures/check-i18n-code/bad-alert/jest.config.js187 B
- 脚本tests/fixtures/check-i18n-code/bad-alert/packages/shell/src/app/start-shell.ts209 B
- 参考文档tests/fixtures/check-i18n-code/bad-alert/packages/shell/src/i18n/catalogs/en.json157 B
- 其他tests/fixtures/check-i18n-code/bad-alert/packages/shell/src/i18n/i18n-provider.tsx166 B
- 脚本tests/fixtures/check-i18n-code/bad-alert/packages/shell/src/i18n/intl-polyfills.ts1.3 KB
- 其他tests/fixtures/check-i18n-code/bad-alert/packages/shell/src/i18n/language-context.tsx169 B
- 脚本tests/fixtures/check-i18n-code/bad-alert/packages/shell/src/i18n/month-keys.ts272 B
- 其他tests/fixtures/check-i18n-code/bad-alert/packages/shell/src/i18n/t-bridge.tsx576 B
- 脚本tests/fixtures/check-i18n-code/bad-alert/packages/shell/src/i18n/t-context.ts161 B
- 其他tests/fixtures/check-i18n-code/bad-alert/packages/shell/src/i18n/t.test.tsx159 B
- 其他tests/fixtures/check-i18n-code/bad-alert/packages/shell/src/i18n/t.tsx154 B
- 其他tests/fixtures/check-i18n-code/bad-alert/packages/shell/src/screens/home/home-header.test.tsx388 B
- 其他tests/fixtures/check-i18n-code/bad-alert/packages/shell/src/screens/home/home-header.tsx1.0 KB
- 脚本tests/fixtures/check-i18n-code/bad-alert/packages/shell/src/screens/settings/reset.ts142 B
- 脚本tests/fixtures/check-i18n-code/bad-alert/test/integration/i18n/start-shell-imports.test.ts174 B
- 参考文档tests/fixtures/check-i18n-code/bad-built-text/apps/demo-game/src/i18n/en.json36 B
- 脚本tests/fixtures/check-i18n-code/bad-built-text/apps/demo-game/src/i18n/keys.ts165 B
- 参考文档tests/fixtures/check-i18n-code/bad-built-text/EXPECT.txt39 B
- 脚本tests/fixtures/check-i18n-code/bad-built-text/jest.config.js187 B
- 脚本tests/fixtures/check-i18n-code/bad-built-text/packages/shell/src/app/start-shell.ts209 B
- 参考文档tests/fixtures/check-i18n-code/bad-built-text/packages/shell/src/i18n/catalogs/en.json157 B
- 其他tests/fixtures/check-i18n-code/bad-built-text/packages/shell/src/i18n/i18n-provider.tsx166 B
- 脚本tests/fixtures/check-i18n-code/bad-built-text/packages/shell/src/i18n/intl-polyfills.ts1.3 KB
- 其他tests/fixtures/check-i18n-code/bad-built-text/packages/shell/src/i18n/language-context.tsx169 B
- 脚本tests/fixtures/check-i18n-code/bad-built-text/packages/shell/src/i18n/month-keys.ts272 B
- 其他tests/fixtures/check-i18n-code/bad-built-text/packages/shell/src/i18n/t-bridge.tsx576 B
- 脚本tests/fixtures/check-i18n-code/bad-built-text/packages/shell/src/i18n/t-context.ts161 B
- 其他tests/fixtures/check-i18n-code/bad-built-text/packages/shell/src/i18n/t.test.tsx159 B
- 其他tests/fixtures/check-i18n-code/bad-built-text/packages/shell/src/i18n/t.tsx154 B
- 其他tests/fixtures/check-i18n-code/bad-built-text/packages/shell/src/screens/home/home-header.test.tsx388 B
- 其他tests/fixtures/check-i18n-code/bad-built-text/packages/shell/src/screens/home/home-header.tsx1011 B
- 脚本tests/fixtures/check-i18n-code/bad-built-text/test/integration/i18n/start-shell-imports.test.ts174 B
- 参考文档tests/fixtures/check-i18n-code/bad-cast-game-key/apps/demo-game/src/i18n/en.json36 B
- 脚本tests/fixtures/check-i18n-code/bad-cast-game-key/apps/demo-game/src/i18n/keys.ts165 B
- 参考文档tests/fixtures/check-i18n-code/bad-cast-game-key/EXPECT.txt54 B
- 脚本tests/fixtures/check-i18n-code/bad-cast-game-key/jest.config.js187 B
- 脚本tests/fixtures/check-i18n-code/bad-cast-game-key/packages/shell/src/app/start-shell.ts209 B
- 脚本tests/fixtures/check-i18n-code/bad-cast-game-key/packages/shell/src/game-host/lose-reason-text.ts327 B
- 参考文档tests/fixtures/check-i18n-code/bad-cast-game-key/packages/shell/src/i18n/catalogs/en.json157 B
- 脚本tests/fixtures/check-i18n-code/bad-cast-game-key/packages/shell/src/i18n/game-message-text.ts989 B
- 其他tests/fixtures/check-i18n-code/bad-cast-game-key/packages/shell/src/i18n/i18n-provider.tsx166 B
- 脚本tests/fixtures/check-i18n-code/bad-cast-game-key/packages/shell/src/i18n/intl-polyfills.ts1.3 KB
- 其他tests/fixtures/check-i18n-code/bad-cast-game-key/packages/shell/src/i18n/language-context.tsx169 B
- 脚本tests/fixtures/check-i18n-code/bad-cast-game-key/packages/shell/src/i18n/month-keys.ts272 B
- 其他tests/fixtures/check-i18n-code/bad-cast-game-key/packages/shell/src/i18n/t-bridge.tsx576 B
- 脚本tests/fixtures/check-i18n-code/bad-cast-game-key/packages/shell/src/i18n/t-context.ts161 B
- 其他tests/fixtures/check-i18n-code/bad-cast-game-key/packages/shell/src/i18n/t.test.tsx159 B
- 其他tests/fixtures/check-i18n-code/bad-cast-game-key/packages/shell/src/i18n/t.tsx154 B
- 其他tests/fixtures/check-i18n-code/bad-cast-game-key/packages/shell/src/screens/home/home-header.test.tsx388 B
- 其他tests/fixtures/check-i18n-code/bad-cast-game-key/packages/shell/src/screens/home/home-header.tsx1.0 KB
- 脚本tests/fixtures/check-i18n-code/bad-cast-game-key/test/integration/i18n/start-shell-imports.test.ts174 B
- 参考文档tests/fixtures/check-i18n-code/bad-conditional-literal/apps/demo-game/src/i18n/en.json36 B
- 脚本tests/fixtures/check-i18n-code/bad-conditional-literal/apps/demo-game/src/i18n/keys.ts165 B
- 参考文档tests/fixtures/check-i18n-code/bad-conditional-literal/EXPECT.txt39 B
- 脚本tests/fixtures/check-i18n-code/bad-conditional-literal/jest.config.js187 B
- 脚本tests/fixtures/check-i18n-code/bad-conditional-literal/packages/shell/src/app/start-shell.ts209 B
- 参考文档tests/fixtures/check-i18n-code/bad-conditional-literal/packages/shell/src/i18n/catalogs/en.json157 B
- 其他tests/fixtures/check-i18n-code/bad-conditional-literal/packages/shell/src/i18n/i18n-provider.tsx166 B
- 脚本tests/fixtures/check-i18n-code/bad-conditional-literal/packages/shell/src/i18n/intl-polyfills.ts1.3 KB
- 其他tests/fixtures/check-i18n-code/bad-conditional-literal/packages/shell/src/i18n/language-context.tsx169 B
- 脚本tests/fixtures/check-i18n-code/bad-conditional-literal/packages/shell/src/i18n/month-keys.ts272 B
- 其他tests/fixtures/check-i18n-code/bad-conditional-literal/packages/shell/src/i18n/t-bridge.tsx576 B
- 脚本tests/fixtures/check-i18n-code/bad-conditional-literal/packages/shell/src/i18n/t-context.ts161 B
- 其他tests/fixtures/check-i18n-code/bad-conditional-literal/packages/shell/src/i18n/t.test.tsx159 B
- 其他tests/fixtures/check-i18n-code/bad-conditional-literal/packages/shell/src/i18n/t.tsx154 B
- 其他tests/fixtures/check-i18n-code/bad-conditional-literal/packages/shell/src/screens/home/home-header.test.tsx388 B
- 其他tests/fixtures/check-i18n-code/bad-conditional-literal/packages/shell/src/screens/home/home-header.tsx1.0 KB
- 脚本tests/fixtures/check-i18n-code/bad-conditional-literal/test/integration/i18n/start-shell-imports.test.ts174 B
- 参考文档tests/fixtures/check-i18n-code/bad-date-api/apps/demo-game/src/i18n/en.json36 B
- 脚本tests/fixtures/check-i18n-code/bad-date-api/apps/demo-game/src/i18n/keys.ts165 B
- 参考文档tests/fixtures/check-i18n-code/bad-date-api/EXPECT.txt54 B
- 脚本tests/fixtures/check-i18n-code/bad-date-api/jest.config.js187 B
- 脚本tests/fixtures/check-i18n-code/bad-date-api/packages/shell/src/app/start-shell.ts209 B
- 参考文档tests/fixtures/check-i18n-code/bad-date-api/packages/shell/src/i18n/catalogs/en.json157 B
- 其他tests/fixtures/check-i18n-code/bad-date-api/packages/shell/src/i18n/i18n-provider.tsx166 B
- 脚本tests/fixtures/check-i18n-code/bad-date-api/packages/shell/src/i18n/intl-polyfills.ts1.3 KB
- 其他tests/fixtures/check-i18n-code/bad-date-api/packages/shell/src/i18n/language-context.tsx169 B
- 脚本tests/fixtures/check-i18n-code/bad-date-api/packages/shell/src/i18n/month-keys.ts272 B
- 其他tests/fixtures/check-i18n-code/bad-date-api/packages/shell/src/i18n/t-bridge.tsx576 B
- 脚本tests/fixtures/check-i18n-code/bad-date-api/packages/shell/src/i18n/t-context.ts161 B
- 其他tests/fixtures/check-i18n-code/bad-date-api/packages/shell/src/i18n/t.test.tsx159 B
- 其他tests/fixtures/check-i18n-code/bad-date-api/packages/shell/src/i18n/t.tsx154 B
- 脚本tests/fixtures/check-i18n-code/bad-date-api/packages/shell/src/screens/daily/today-label.ts89 B
- 其他tests/fixtures/check-i18n-code/bad-date-api/packages/shell/src/screens/home/home-header.test.tsx388 B
- 其他tests/fixtures/check-i18n-code/bad-date-api/packages/shell/src/screens/home/home-header.tsx1.0 KB
- 脚本tests/fixtures/check-i18n-code/bad-date-api/test/integration/i18n/start-shell-imports.test.ts174 B
- 参考文档tests/fixtures/check-i18n-code/bad-dynamic-key/apps/demo-game/src/i18n/en.json36 B
- 脚本tests/fixtures/check-i18n-code/bad-dynamic-key/apps/demo-game/src/i18n/keys.ts165 B
- 参考文档tests/fixtures/check-i18n-code/bad-dynamic-key/EXPECT.txt31 B
- 脚本tests/fixtures/check-i18n-code/bad-dynamic-key/jest.config.js187 B
- 脚本tests/fixtures/check-i18n-code/bad-dynamic-key/packages/shell/src/app/start-shell.ts209 B
- 参考文档tests/fixtures/check-i18n-code/bad-dynamic-key/packages/shell/src/i18n/catalogs/en.json157 B
- 其他tests/fixtures/check-i18n-code/bad-dynamic-key/packages/shell/src/i18n/i18n-provider.tsx166 B
- 脚本tests/fixtures/check-i18n-code/bad-dynamic-key/packages/shell/src/i18n/intl-polyfills.ts1.3 KB
- 其他tests/fixtures/check-i18n-code/bad-dynamic-key/packages/shell/src/i18n/language-context.tsx169 B
- 脚本tests/fixtures/check-i18n-code/bad-dynamic-key/packages/shell/src/i18n/month-keys.ts272 B
- 其他tests/fixtures/check-i18n-code/bad-dynamic-key/packages/shell/src/i18n/t-bridge.tsx576 B
- 脚本tests/fixtures/check-i18n-code/bad-dynamic-key/packages/shell/src/i18n/t-context.ts161 B
- 其他tests/fixtures/check-i18n-code/bad-dynamic-key/packages/shell/src/i18n/t.test.tsx159 B
- 其他tests/fixtures/check-i18n-code/bad-dynamic-key/packages/shell/src/i18n/t.tsx154 B
- 脚本tests/fixtures/check-i18n-code/bad-dynamic-key/packages/shell/src/screens/daily/month-label.ts181 B
- 其他tests/fixtures/check-i18n-code/bad-dynamic-key/packages/shell/src/screens/home/home-header.test.tsx388 B
- 其他tests/fixtures/check-i18n-code/bad-dynamic-key/packages/shell/src/screens/home/home-header.tsx1.0 KB
- 脚本tests/fixtures/check-i18n-code/bad-dynamic-key/test/integration/i18n/start-shell-imports.test.ts174 B
- 参考文档tests/fixtures/check-i18n-code/bad-game-key-table/apps/demo-game/src/i18n/en.json134 B
- 脚本tests/fixtures/check-i18n-code/bad-game-key-table/apps/demo-game/src/i18n/keys.ts194 B
- 脚本tests/fixtures/check-i18n-code/bad-game-key-table/apps/demo-game/src/rules/demo-hud.ts352 B
- 参考文档tests/fixtures/check-i18n-code/bad-game-key-table/EXPECT.txt42 B
- 脚本tests/fixtures/check-i18n-code/bad-game-key-table/jest.config.js187 B
- 脚本tests/fixtures/check-i18n-code/bad-game-key-table/packages/shell/src/app/start-shell.ts209 B
- 参考文档tests/fixtures/check-i18n-code/bad-game-key-table/packages/shell/src/i18n/catalogs/en.json157 B
- 脚本tests/fixtures/check-i18n-code/bad-game-key-table/packages/shell/src/i18n/game-message-text.ts989 B
- 其他tests/fixtures/check-i18n-code/bad-game-key-table/packages/shell/src/i18n/i18n-provider.tsx166 B
- 脚本tests/fixtures/check-i18n-code/bad-game-key-table/packages/shell/src/i18n/intl-polyfills.ts1.3 KB
- 其他tests/fixtures/check-i18n-code/bad-game-key-table/packages/shell/src/i18n/language-context.tsx169 B
- 脚本tests/fixtures/check-i18n-code/bad-game-key-table/packages/shell/src/i18n/month-keys.ts272 B
- 其他tests/fixtures/check-i18n-code/bad-game-key-table/packages/shell/src/i18n/t-bridge.tsx576 B
- 脚本tests/fixtures/check-i18n-code/bad-game-key-table/packages/shell/src/i18n/t-context.ts161 B
- 其他tests/fixtures/check-i18n-code/bad-game-key-table/packages/shell/src/i18n/t.test.tsx159 B
- 其他tests/fixtures/check-i18n-code/bad-game-key-table/packages/shell/src/i18n/t.tsx154 B
- 其他tests/fixtures/check-i18n-code/bad-game-key-table/packages/shell/src/screens/home/home-header.test.tsx388 B
- 其他tests/fixtures/check-i18n-code/bad-game-key-table/packages/shell/src/screens/home/home-header.tsx1.0 KB
- 脚本tests/fixtures/check-i18n-code/bad-game-key-table/test/integration/i18n/start-shell-imports.test.ts174 B
- 参考文档tests/fixtures/check-i18n-code/bad-i18n-runtime-missing/apps/demo-game/src/i18n/en.json134 B
- 脚本tests/fixtures/check-i18n-code/bad-i18n-runtime-missing/apps/demo-game/src/i18n/keys.ts165 B
- 脚本tests/fixtures/check-i18n-code/bad-i18n-runtime-missing/apps/demo-game/src/rules/demo-hud.ts352 B
- 参考文档tests/fixtures/check-i18n-code/bad-i18n-runtime-missing/EXPECT.txt103 B
- 脚本tests/fixtures/check-i18n-code/bad-i18n-runtime-missing/jest.config.js187 B
- 脚本tests/fixtures/check-i18n-code/bad-i18n-runtime-missing/packages/shell/src/app/start-shell.ts209 B
- 脚本tests/fixtures/check-i18n-code/bad-i18n-runtime-missing/packages/shell/src/game-host/top-bar-model.ts618 B
- 参考文档tests/fixtures/check-i18n-code/bad-i18n-runtime-missing/packages/shell/src/i18n/catalogs/en.json311 B
- 脚本tests/fixtures/check-i18n-code/bad-i18n-runtime-missing/packages/shell/src/i18n/game-message-text.ts989 B
- 其他tests/fixtures/check-i18n-code/bad-i18n-runtime-missing/packages/shell/src/i18n/i18n-provider.tsx166 B
- 脚本tests/fixtures/check-i18n-code/bad-i18n-runtime-missing/packages/shell/src/i18n/intl-polyfills.ts1.3 KB
- 其他tests/fixtures/check-i18n-code/bad-i18n-runtime-missing/packages/shell/src/i18n/language-context.tsx169 B
- 脚本tests/fixtures/check-i18n-code/bad-i18n-runtime-missing/packages/shell/src/i18n/month-keys.ts272 B
- 其他tests/fixtures/check-i18n-code/bad-i18n-runtime-missing/packages/shell/src/i18n/t-bridge.tsx576 B
- 其他tests/fixtures/check-i18n-code/bad-i18n-runtime-missing/packages/shell/src/i18n/t.test.tsx159 B
- 其他tests/fixtures/check-i18n-code/bad-i18n-runtime-missing/packages/shell/src/i18n/t.tsx154 B
- 其他tests/fixtures/check-i18n-code/bad-i18n-runtime-missing/packages/shell/src/screens/home/home-header.test.tsx388 B
- 其他tests/fixtures/check-i18n-code/bad-i18n-runtime-missing/packages/shell/src/screens/home/home-header.tsx1.0 KB
- 脚本tests/fixtures/check-i18n-code/bad-i18n-runtime-missing/test/integration/i18n/start-shell-imports.test.ts174 B
- 脚本tests/fixtures/check-i18n-code/bad-intl-datetime/apps/demo-game/src/hud/clock.ts146 B
- 参考文档tests/fixtures/check-i18n-code/bad-intl-datetime/apps/demo-game/src/i18n/en.json36 B
- 脚本tests/fixtures/check-i18n-code/bad-intl-datetime/apps/demo-game/src/i18n/keys.ts165 B
- 参考文档tests/fixtures/check-i18n-code/bad-intl-datetime/EXPECT.txt38 B
- 脚本tests/fixtures/check-i18n-code/bad-intl-datetime/jest.config.js187 B
- 脚本tests/fixtures/check-i18n-code/bad-intl-datetime/packages/shell/src/app/start-shell.ts209 B
- 参考文档tests/fixtures/check-i18n-code/bad-intl-datetime/packages/shell/src/i18n/catalogs/en.json157 B
- 其他tests/fixtures/check-i18n-code/bad-intl-datetime/packages/shell/src/i18n/i18n-provider.tsx166 B
- 脚本tests/fixtures/check-i18n-code/bad-intl-datetime/packages/shell/src/i18n/intl-polyfills.ts1.3 KB
- 其他tests/fixtures/check-i18n-code/bad-intl-datetime/packages/shell/src/i18n/language-context.tsx169 B
- 脚本tests/fixtures/check-i18n-code/bad-intl-datetime/packages/shell/src/i18n/month-keys.ts272 B
- 其他tests/fixtures/check-i18n-code/bad-intl-datetime/packages/shell/src/i18n/t-bridge.tsx576 B
- 脚本tests/fixtures/check-i18n-code/bad-intl-datetime/packages/shell/src/i18n/t-context.ts161 B
- 其他tests/fixtures/check-i18n-code/bad-intl-datetime/packages/shell/src/i18n/t.test.tsx159 B
- 其他tests/fixtures/check-i18n-code/bad-intl-datetime/packages/shell/src/i18n/t.tsx154 B
- 其他tests/fixtures/check-i18n-code/bad-intl-datetime/packages/shell/src/screens/home/home-header.test.tsx388 B
- 其他tests/fixtures/check-i18n-code/bad-intl-datetime/packages/shell/src/screens/home/home-header.tsx1.0 KB
- 脚本tests/fixtures/check-i18n-code/bad-intl-datetime/test/integration/i18n/start-shell-imports.test.ts174 B
- 参考文档tests/fixtures/check-i18n-code/bad-jest-setup/apps/demo-game/src/i18n/en.json36 B
- 脚本tests/fixtures/check-i18n-code/bad-jest-setup/apps/demo-game/src/i18n/keys.ts165 B
- 参考文档tests/fixtures/check-i18n-code/bad-jest-setup/EXPECT.txt32 B
- 脚本tests/fixtures/check-i18n-code/bad-jest-setup/jest.config.js116 B
- 脚本tests/fixtures/check-i18n-code/bad-jest-setup/packages/shell/src/app/start-shell.ts209 B
- 参考文档tests/fixtures/check-i18n-code/bad-jest-setup/packages/shell/src/i18n/catalogs/en.json157 B
- 其他tests/fixtures/check-i18n-code/bad-jest-setup/packages/shell/src/i18n/i18n-provider.tsx166 B
- 脚本tests/fixtures/check-i18n-code/bad-jest-setup/packages/shell/src/i18n/intl-polyfills.ts1.3 KB
- 其他tests/fixtures/check-i18n-code/bad-jest-setup/packages/shell/src/i18n/language-context.tsx169 B
- 脚本tests/fixtures/check-i18n-code/bad-jest-setup/packages/shell/src/i18n/month-keys.ts272 B
- 其他tests/fixtures/check-i18n-code/bad-jest-setup/packages/shell/src/i18n/t-bridge.tsx576 B
- 脚本tests/fixtures/check-i18n-code/bad-jest-setup/packages/shell/src/i18n/t-context.ts161 B
- 其他tests/fixtures/check-i18n-code/bad-jest-setup/packages/shell/src/i18n/t.test.tsx159 B
- 其他tests/fixtures/check-i18n-code/bad-jest-setup/packages/shell/src/i18n/t.tsx154 B
- 其他tests/fixtures/check-i18n-code/bad-jest-setup/packages/shell/src/screens/home/home-header.test.tsx388 B
- 其他tests/fixtures/check-i18n-code/bad-jest-setup/packages/shell/src/screens/home/home-header.tsx1.0 KB
- 脚本tests/fixtures/check-i18n-code/bad-jest-setup/test/integration/i18n/start-shell-imports.test.ts174 B
- 参考文档tests/fixtures/check-i18n-code/bad-jsx-text/apps/demo-game/src/i18n/en.json36 B
- 脚本tests/fixtures/check-i18n-code/bad-jsx-text/apps/demo-game/src/i18n/keys.ts165 B
- 参考文档tests/fixtures/check-i18n-code/bad-jsx-text/EXPECT.txt51 B
- 脚本tests/fixtures/check-i18n-code/bad-jsx-text/jest.config.js187 B
- 脚本tests/fixtures/check-i18n-code/bad-jsx-text/packages/shell/src/app/start-shell.ts209 B
- 参考文档tests/fixtures/check-i18n-code/bad-jsx-text/packages/shell/src/i18n/catalogs/en.json157 B
- 其他tests/fixtures/check-i18n-code/bad-jsx-text/packages/shell/src/i18n/i18n-provider.tsx166 B
- 脚本tests/fixtures/check-i18n-code/bad-jsx-text/packages/shell/src/i18n/intl-polyfills.ts1.3 KB
- 其他tests/fixtures/check-i18n-code/bad-jsx-text/packages/shell/src/i18n/language-context.tsx169 B
- 脚本tests/fixtures/check-i18n-code/bad-jsx-text/packages/shell/src/i18n/month-keys.ts272 B
- 其他tests/fixtures/check-i18n-code/bad-jsx-text/packages/shell/src/i18n/t-bridge.tsx576 B
- 脚本tests/fixtures/check-i18n-code/bad-jsx-text/packages/shell/src/i18n/t-context.ts161 B
- 其他tests/fixtures/check-i18n-code/bad-jsx-text/packages/shell/src/i18n/t.test.tsx159 B
- 其他tests/fixtures/check-i18n-code/bad-jsx-text/packages/shell/src/i18n/t.tsx154 B
- 其他tests/fixtures/check-i18n-code/bad-jsx-text/packages/shell/src/screens/home/home-header.test.tsx388 B
- 其他tests/fixtures/check-i18n-code/bad-jsx-text/packages/shell/src/screens/home/home-header.tsx1007 B
- 脚本tests/fixtures/check-i18n-code/bad-jsx-text/test/integration/i18n/start-shell-imports.test.ts174 B
- 参考文档tests/fixtures/check-i18n-code/bad-literal-label/apps/demo-game/src/i18n/en.json36 B
- 脚本tests/fixtures/check-i18n-code/bad-literal-label/apps/demo-game/src/i18n/keys.ts165 B
- 参考文档tests/fixtures/check-i18n-code/bad-literal-label/EXPECT.txt56 B
- 脚本tests/fixtures/check-i18n-code/bad-literal-label/jest.config.js187 B
- 脚本tests/fixtures/check-i18n-code/bad-literal-label/packages/shell/src/app/start-shell.ts209 B
- 参考文档tests/fixtures/check-i18n-code/bad-literal-label/packages/shell/src/i18n/catalogs/en.json157 B
- 其他tests/fixtures/check-i18n-code/bad-literal-label/packages/shell/src/i18n/i18n-provider.tsx166 B
- 脚本tests/fixtures/check-i18n-code/bad-literal-label/packages/shell/src/i18n/intl-polyfills.ts1.3 KB
- 其他tests/fixtures/check-i18n-code/bad-literal-label/packages/shell/src/i18n/language-context.tsx169 B
- 脚本tests/fixtures/check-i18n-code/bad-literal-label/packages/shell/src/i18n/month-keys.ts272 B
- 其他tests/fixtures/check-i18n-code/bad-literal-label/packages/shell/src/i18n/t-bridge.tsx576 B
- 脚本tests/fixtures/check-i18n-code/bad-literal-label/packages/shell/src/i18n/t-context.ts161 B
- 其他tests/fixtures/check-i18n-code/bad-literal-label/packages/shell/src/i18n/t.test.tsx159 B
- 其他tests/fixtures/check-i18n-code/bad-literal-label/packages/shell/src/i18n/t.tsx154 B
- 其他tests/fixtures/check-i18n-code/bad-literal-label/packages/shell/src/screens/home/home-header.test.tsx388 B
- 其他tests/fixtures/check-i18n-code/bad-literal-label/packages/shell/src/screens/home/home-header.tsx1014 B
- 脚本tests/fixtures/check-i18n-code/bad-literal-label/test/integration/i18n/start-shell-imports.test.ts174 B
- 参考文档tests/fixtures/check-i18n-code/bad-nested-isolates/apps/demo-game/src/i18n/en.json134 B
- 脚本tests/fixtures/check-i18n-code/bad-nested-isolates/apps/demo-game/src/i18n/keys.ts165 B
- 脚本tests/fixtures/check-i18n-code/bad-nested-isolates/apps/demo-game/src/rules/demo-hud.ts352 B
- 参考文档tests/fixtures/check-i18n-code/bad-nested-isolates/EXPECT.txt122 B
- 脚本tests/fixtures/check-i18n-code/bad-nested-isolates/jest.config.js187 B
- 脚本tests/fixtures/check-i18n-code/bad-nested-isolates/packages/shell/src/app/start-shell.ts209 B
- 脚本tests/fixtures/check-i18n-code/bad-nested-isolates/packages/shell/src/game-host/top-bar-model.ts549 B
- 参考文档tests/fixtures/check-i18n-code/bad-nested-isolates/packages/shell/src/i18n/catalogs/en.json311 B
- 脚本tests/fixtures/check-i18n-code/bad-nested-isolates/packages/shell/src/i18n/game-message-text.ts989 B
- 其他tests/fixtures/check-i18n-code/bad-nested-isolates/packages/shell/src/i18n/i18n-provider.tsx166 B
- 脚本tests/fixtures/check-i18n-code/bad-nested-isolates/packages/shell/src/i18n/intl-polyfills.ts1.3 KB
- 其他tests/fixtures/check-i18n-code/bad-nested-isolates/packages/shell/src/i18n/language-context.tsx169 B
- 脚本tests/fixtures/check-i18n-code/bad-nested-isolates/packages/shell/src/i18n/month-keys.ts272 B
- 其他tests/fixtures/check-i18n-code/bad-nested-isolates/packages/shell/src/i18n/t-bridge.tsx576 B
- 脚本tests/fixtures/check-i18n-code/bad-nested-isolates/packages/shell/src/i18n/t-context.ts161 B
- 其他tests/fixtures/check-i18n-code/bad-nested-isolates/packages/shell/src/i18n/t.test.tsx159 B
- 其他tests/fixtures/check-i18n-code/bad-nested-isolates/packages/shell/src/i18n/t.tsx154 B
- 其他tests/fixtures/check-i18n-code/bad-nested-isolates/packages/shell/src/screens/home/home-header.test.tsx388 B
- 其他tests/fixtures/check-i18n-code/bad-nested-isolates/packages/shell/src/screens/home/home-header.tsx1.0 KB
- 脚本tests/fixtures/check-i18n-code/bad-nested-isolates/test/integration/i18n/start-shell-imports.test.ts174 B
- 参考文档tests/fixtures/check-i18n-code/bad-polyfill-first/apps/demo-game/src/i18n/en.json36 B
- 脚本tests/fixtures/check-i18n-code/bad-polyfill-first/apps/demo-game/src/i18n/keys.ts165 B
- 参考文档tests/fixtures/check-i18n-code/bad-polyfill-first/EXPECT.txt39 B
- 脚本tests/fixtures/check-i18n-code/bad-polyfill-first/jest.config.js187 B
- 脚本tests/fixtures/check-i18n-code/bad-polyfill-first/packages/shell/src/app/start-shell.ts168 B
- 参考文档tests/fixtures/check-i18n-code/bad-polyfill-first/packages/shell/src/i18n/catalogs/en.json157 B
- 其他tests/fixtures/check-i18n-code/bad-polyfill-first/packages/shell/src/i18n/i18n-provider.tsx166 B
- 脚本tests/fixtures/check-i18n-code/bad-polyfill-first/packages/shell/src/i18n/intl-polyfills.ts1.3 KB
- 其他tests/fixtures/check-i18n-code/bad-polyfill-first/packages/shell/src/i18n/language-context.tsx169 B
- 脚本tests/fixtures/check-i18n-code/bad-polyfill-first/packages/shell/src/i18n/month-keys.ts272 B
- 其他tests/fixtures/check-i18n-code/bad-polyfill-first/packages/shell/src/i18n/t-bridge.tsx576 B
- 脚本tests/fixtures/check-i18n-code/bad-polyfill-first/packages/shell/src/i18n/t-context.ts161 B
- 其他tests/fixtures/check-i18n-code/bad-polyfill-first/packages/shell/src/i18n/t.test.tsx159 B
- 其他tests/fixtures/check-i18n-code/bad-polyfill-first/packages/shell/src/i18n/t.tsx154 B
03 SKILL.md 正文
UI text, catalogs and translations
Every word a player sees comes from a catalog key in English, German, Persian and Sorani, the Shell's texts are exactly the Toybox copy deck's (so screens match their design screenshots), and scripts prove the catalogs and the code follow the rules.
Rules that must hold
- Render every visible string through
t()or<T>from a catalog key. No literals in JSX, in text or accessibility props, or inAlert. Why: the product ships in four languages from day one; a literal is English on every phone. - Take Shell and game texts from the copy deck with
copy-deck.mjs, never by retyping; the twelve Shell texts the deck lacks come fromassets/shell-extras.jsonthe same way (--extras). A wording change goes into the deck (or that table) first, then into the catalogs. Why: the design mockup renders the deck; a catalog that drifts from it no longer matches its design screenshot, and retyping loses ’, –, ZWNJ and Sorani letters. - Keep four flat catalogs per folder, English as the source, keys sorted. Shell:
packages/shell/src/i18n/catalogs/{en,de,fa,ckb}.json; game:apps/<game-id>/src/i18n/, every key starting with the game id. Why: stable diffs, and no Shell/game key collision. - Name keys
<area>.<element>[.<variant>](2-5 kebab segments) and write them as literals or in typed tables. Game texts reach the Shell as the module's plainMessageIds and become text only throughgameMessageText(t, message). Why: only visible keys can be type-checked and linted; semantic keys survive rewording. - Type every number in a message:
{x, number},{x, number, ::percent}or a plural#. A plain{x}is only for free text named*Name/*Text. Why: a plain argument prints Latin digits in every language. - Write counted nouns as
{n, plural, one {…} other {…}}in all four languages, and any=0branch in all four. Why: Persian puts 0 inone; code that branches on "is it 1?" is wrong in fa. - Force the Intl polyfills (Locale, PluralRules, NumberFormat; en/de/fa/ckb data only) as the first import of
start-shell.tsand in JestsetupFiles. Why: Hermes has noPluralRulesorLocaleand ignores digit selection; forcing makes Jest identical to the phone. - Format dates with
format-date.ts(formatDayMonth,formatDayMonthYear,formatWeekdayDayMonth,formatMonthShort,formatWeekdayName,formatWeekdayLetter) and catalog month and weekday names; neverIntl.DateTimeFormat,toLocale*Stringor{x, date}. Why: Hermes formats fa dates in the Solar Hijri calendar and ignores the digit setting. - Import
react-intlonly insidepackages/shell/src/i18n/; configureexpo-localizationwithsupportedLocalesonly. Why: one text API for the app;supportsRTL/forcesRTLwould undo an in-app language choice. - Keep
check-catalogs.mjs(andnpm run i18n:verify) green before every commit that touches a catalog. Why: a missing or broken text must fail the build, not a player. - Claude writes all four languages; the owner reviews fa and ckb personally, and nothing waits for it (owner decision O6, 2026-09-30). Every slice and release report lists the fa/ckb texts still waiting under "Owner steps (not blocking)" (
review-sheet.tsprints the count and writes the sheets); no gate, release or waiver depends on the review. Why: machine-written Sorani especially can sound unnatural, so the owner reads it, but the work never stops for it. - A system dialog text is plain text (a key ending in
.usage-description, such asconsent.tracking.usage-description, Apple's tracking prompt text from owner decision O1): no{argument}, plural or brace in any language, becausewithShellcopies it from the Shell catalogs into each language'sInfo.pliststrings, where nothing formats ICU. Why: iOS would show the braces to the player (copy-deck.mjs checkrulesystem-text-plain). - Debug-menu texts stay English in every language (lead decision L13). Every
debug.*key, in the copy deck and inassets/shell-extras.json(the Performance sectiondebug.perf.*included), has its en text in de, fa and ckb; numbers and dates inside the debug values still follow the language, because the screen's model formats them with the language's formatters, neverString(n).copy-deck.mjs checkandcheck-catalogs.mjsfail a translated debug text (ruledebug-english, P5), andreview-sheet.tsleaves debug keys out of the fa and ckb review. Why: S15 is a test-only screen, compiled out of store builds, that no player sees; its design draws English in all four languages, and it keeps design parity like every screen (L12).
Workflow
- First time (the Shell has no i18n layer yet). Read references/runtime-and-provider.md. The layer lands in two Shell build steps (that reference's tables), because a template and its test land together and a test that needs a later file waits for it:
- Shell step 6, the i18n step. Install
react-intl(Shell),@formatjs/cli(root dev) and@formatjs/icu-messageformat-parser(tooling dev) from the table; the polyfill packages,intl-polyfills.ts,intl-status.tsand the JestsetupFilesline came with the bootstrap. Copy fromtemplates/shell-i18n/topackages/shell/src/i18n/onlylanguages.ts,resolve-language.ts,digits.ts,bidi.ts,messages.ts,create-t.ts,format-date.tsandgame-message-text.tswith their tests, and all oftemplates/tooling-i18n/topackages/tooling/src/i18n/(the linter and the owner's review sheetreview-sheet.ts, with their tests). Add"i18n:verify": "node packages/tooling/src/i18n/verify-catalogs.ts"to the rootpackage.json. Then create every Shell catalog from the deck:node ${CLAUDE_SKILL_DIR}/scripts/copy-deck.mjs apply . --all --extras(--allincludes the system dialog textconsent.tracking.usage-description;--extrasadds the Shell texts the deck lacks: the score-rated win lineresult.win.score-line, the Undo and Hint labels, the tap-then-tap announcements and the debug menu's Performance sectiondebug.perf.*, English in every language (rule 13);result.win.moves-countis retired).check-i18n-code.mjs .then prints two not-yet-due SKIP lines (polyfill-firstandi18n-runtime,due at Shell step 7: packages/shell/src/app/start-shell.ts not yet created). - Shell step 7, with the boot and
renderWithShell. Copyt.tsxwitht.test.tsx,i18n-provider.tsx,t-bridge.tsx,t-context.ts,language-context.tsxanddevice-locales-context.tsx(the phone's languages, which settings-and-preferences'LocalizedRootand unit-and-component-tests'renderWithShellprovide; screens read them withuseDeviceLocales(), never from expo-localization), andtemplates/root-test/start-shell-imports.test.tstotest/integration/i18n/, in the same step asstart-shell.ts; installexpo-localizationin the app (npx expo install expo-localization) with its first importer, the composition root'sdevice-adapters.ts. From then oncheck-i18n-code.mjsprints no SKIP line and failsi18n-runtimeon any of these files that is missing.
- Shell step 6, the i18n step. Install
- Building or changing a screen. See what the design shows:
node ${CLAUDE_SKILL_DIR}/scripts/copy-deck.mjs keys --screen S4 --lang all(add--game <game-id>when the screen shows game texts). Make sure those keys are in the catalogs (apply --screen S4), and use them as literals:<T id="home.play-button.continue" values={{ level }} />, ort('…')in the screen's model hook for props and accessibility labels. Components receive translated strings; they never build them. - A new game.
node ${CLAUDE_SKILL_DIR}/scripts/copy-deck.mjs apply . --game <game-id>writes its four catalogs (a game the deck does not know yet gets its texts through step 4). The deck's lose reason lands as<game-id>.lose.<slug>(line-siegebroke-through, flock-tiltwolf-got-sheep, scrap-shovecaught, snare-snaketangled, merge-siegeoverrun, stepstonestuck, swap-guardhit, toggle-dropout-of-balls); every other way of losing and every text the deck lacks (Line Siege:.lose.board-full,.progress.endless,.continue.push-back,.board.summary) is added by hand in all four languages with the table in references/translation-workflow.md, fa and ckb on the review list. The game hands its texts to the Shell as literalMessageIds in its module (HUD goal, lose reason, packs, steps, stat labels); its contract test proves each one exists in all four catalogs, and the Shell shows every one of them, tables included, withgameMessageText(t, message)frompackages/shell/src/i18n/game-message-text.ts(runtime reference, "Game keys").templates/game-i18n/keys.ts(tables of plain literal ids) is optional: replace__GAME_ID__and__LOSE_SLUG__, keep only the tables the game uses. No file butgame-message-text.tscallsasGameKey. - Text the deck does not have. Read references/catalogs-keys-and-icu.md (keys, placeholders, plurals, the rules) and references/translation-workflow.md (tone, glossary), and follow examples/add-a-counted-message.md. Write English first, then de, fa, ckb; add the key to all four files, sorted; note the fa/ckb texts for review and ask the owner to add the text to the deck.
- Tests. Keep the template tests (
create-t,format-date,game-message-text,resolve-language,intl-status,catalog-lint-rules,review-sheetfrom step 6;tandstart-shell-importsfrom step 7) green. A new message with a count or a placeholder gets at()assertion in each language whose grammar differs. - Run the checks from the repo root, fix every
FAILline (each names the file, the rule and the fix), and rerun until all printRESULT: PASS:node ${CLAUDE_SKILL_DIR}/scripts/check-i18n-code.mjs .(literals, keys, react-intl, dates, polyfill wiring)node ${CLAUDE_SKILL_DIR}/scripts/copy-deck.mjs check .(add--screen/--gamefor what you built)node ${CLAUDE_SKILL_DIR}/scripts/check-catalogs.mjs .(rules L1-L12, parity P1-P5, P5 beingdebug-english) Thennpx jest packages/shell/src/i18n packages/tooling/src/i18n --ci --selectProjects unit --coverage --collectCoverageFrom='packages/shell/src/i18n/**/*.ts' --coverageThreshold='{}'(paths first; onlynpm run test:coveragejudges the thresholds) andnpm run i18n:verifywhere the project has it.
- The owner's review (owner step, never blocking). Run
node packages/tooling/src/i18n/review-sheet.ts(the release preflight runs it with--release; it always exits 0): it writesreports/i18n/review-fa.csvandreview-ckb.csvwith every text that changed since the owner last read it (debug keys excluded, rule 13) and prints anOWNER STEP (not blocking)line with the count. Copy that line into the report under "Owner steps (not blocking)" with the new texts' reviewer questions (translation-workflow reference) and carry on. When the owner's answers come, apply them to the deck (orassets/shell-extras.json) and the catalogs together, rerun the checks, then record them:node packages/tooling/src/i18n/review-sheet.ts --mark-reviewed fa --date YYYY-MM-DD(andckb).
Definition of done
- [ ] No visible string, text prop, accessibility label or alert text is a literal; everything comes from
t()/<T>with a literal or typed-table key. - [ ] Every key used exists in en, de, fa and ckb; catalogs are flat, sorted, and game keys start with the game id.
- [ ] Every text the design shows equals the copy deck, and every Shell text the deck lacks equals
assets/shell-extras.jsonwith no retired key left:node ${CLAUDE_SKILL_DIR}/scripts/copy-deck.mjs check . --screen <S…> [--game <id>]printsRESULT: PASSfor each screen built. - [ ] Every
debug.*text equals its en text in de, fa and ckb (ruledebug-english); the fa/ckb review sheets list no debug key. - [ ] Numbers are typed, counted nouns are plurals with
oneandother(and the same=Nbranches) in all four languages. - [ ] The polyfills are the first import of
start-shell.tsand in JestsetupFiles; dates useformatDayMonth(). - [ ] The i18n Jest tests pass (with
review-sheet.test.ts); new fa/ckb texts are listed in the report under "Owner steps (not blocking)" for the owner's own review, and nothing waits for it. - [ ]
node ${CLAUDE_SKILL_DIR}/scripts/check-i18n-code.mjs .printsRESULT: PASS. - [ ]
node ${CLAUDE_SKILL_DIR}/scripts/check-catalogs.mjs .printsRESULT: PASS.
Anti-patterns
- Hard-coding English "for now". It ships. Add the key in four languages now; a missing translation fails the checks on purpose.
- Retyping a deck text or "improving" it in the catalog. The design screenshot then disagrees; change the deck first (with the owner) and re-apply.
- Gluing sentences:
t('a') + ' ' + count + ' ' + t('b'). Word order differs per language and digits stay Latin. Write one message with placeholders. {count}for a number, orcount === 1 ? 'move' : 'moves'in code. Use{count, plural, one {# move} other {# moves}}.- Building keys:
t(`date.month-short.${m}`). Use a typed table of literal keys. t(asGameKey(message.id))in a screen or the game host, or a game table built withasGameKey('…'). Game ids become text only throughgameMessageText(t, message)(packages/shell/src/i18n/game-message-text.ts); the game writes each id as a plain literal, and its contract test proves it exists (check-i18n-code.mjsrulegame-key-cast).toLocaleDateString()orIntl.DateTimeFormatfor a date label. Persian users get the Solar Hijri calendar; useformatDayMonth().- Adding locale data "just in case" or a second i18n library. Every locale file is startup weight; en, de, fa and ckb are the product.
- Translating language names or game names. Autonyms are code; game names stay Latin in every language.
- Holding work back until the owner has read the fa/ckb texts, or silently skipping the list. The review never blocks (O6), but it is never forgotten either: every report names the texts still waiting.
- Translating a debug-menu text "for completeness". S15 stays English in every language (L13); a translated
debug.*text failsdebug-englishand would put a test-only screen on the owner's review list. - Copying
t.tsx, the provider or the contexts at step 6. Their tests needrenderWithShelland the boot; landing early leaves untested functions under the coverage threshold. They come at step 7 withstart-shell.ts. - An ICU argument in a system dialog text (
"{gameName} uses this…"inconsent.tracking.usage-description). iOS shows the braces; iOS already names the app in the dialog title.
Files in this skill
| File | What it is | Read/run when |
|---|---|---|
| references/catalogs-keys-and-icu.md | Catalog files, key grammar, placeholders, plurals and CLDR categories, bidi isolation, dates, every catalog rule with its message | Workflow step 4, and when a catalog check fails |
| references/runtime-and-provider.md | Packages and versions, why the polyfills are forced, the i18n folder, language resolution, locale tags, t()/T/provider, game keys, Jest setup and tests |
Workflow step 1, and when changing runtime i18n code |
| references/translation-workflow.md | The copy deck and its game-key mapping, writing a new message, glossary, tone per language, the owner's fa/ckb review (never blocking), reviewer questions | Workflow steps 2-4 and 7 |
| examples/add-a-counted-message.md | A new plural message in four languages, from key to test to checks | Workflow step 4 |
templates/shell-i18n/ |
The Shell i18n modules and their tests (polyfills and intl-status are synced from the library, do not edit them here; languages, resolveLanguage, digits tag, bidi, messages, t(), T, provider, formatDayMonth, gameMessageText) |
Workflow step 1 (step 6, then t.tsx, the provider and the contexts at step 7); copy to packages/shell/src/i18n/ |
templates/tooling-i18n/ |
The project linter behind npm run i18n:verify (same rules and messages as the skill's checker; it takes the language list and Language from the Shell's languages.ts, copied in the same step) and its test, catalog-dirs.ts (the one list of catalog folders, Shell first, that the linter and the review sheet both read) with its test, and the review sheet (next rows) |
Workflow step 1; copy to packages/tooling/src/i18n/ |
templates/tooling-i18n/review-sheet.ts |
The owner's fa/ckb review sheet: writes reports/i18n/review-<lang>.csv for every text (debug keys excluded) that differs from its reviewed hash in packages/shell/src/i18n/review-state.json, prints the count and the OWNER STEP (not blocking) line, always exits 0 (2 only for bad input); --mark-reviewed <lang> --date records the owner's review |
Workflow steps 1 and 7; copy to packages/tooling/src/i18n/ |
templates/tooling-i18n/review-sheet.test.ts |
Its test: pending rows, hashes, the CSV, marking, exit codes | Workflow step 1 |
templates/game-i18n/keys.ts |
Optional typed tables of a game's plain literal message ids (__GAME_ID__), shown by the Shell through gameMessageText |
Workflow step 3, only when used |
templates/root-test/start-shell-imports.test.ts |
Guardrail test: the polyfills are the first import of start-shell.ts |
Workflow step 1, at Shell step 7 with start-shell.ts; copy to test/integration/i18n/ |
scripts/check-catalogs.mjs |
Checks every catalog: rules L1-L12, parity with en (P1-P5; P5 debug-english: a debug.* text in de, fa or ckb that differs from en), files (F1: the Shell's four are due once the project linter verify-catalogs.ts exists; before Shell step 6 a not-yet-due SKIP) |
Workflow step 6, after every catalog change |
scripts/check-i18n-code.mjs |
Checks source for literal text, built or unknown keys, game ids cast outside game-message-text.ts, react-intl imports, date APIs, isolated text passed into t() again (nested-isolates), polyfill order and data, Jest setup, and the step-7 i18n files once start-shell.ts exists (i18n-runtime; a not-yet-due SKIP before step 7) |
Workflow steps 1 and 6 |
scripts/copy-deck.mjs |
Looks up (keys), writes (apply) and verifies (check) deck texts and the Shell texts the deck lacks (--extras) in the catalogs; fails retired Shell keys, system dialog texts that are not plain or missing (system-text-plain, system-text-missing) and translated debug texts in the deck, the extras or the catalogs (debug-english); once the linter verify-catalogs.ts exists, missing Shell catalogs count as empty (every selected text, or with no selection every deck and extra text, is deck-key-missing / extra-key-missing); before it a repo without them stops with exit 2 |
Workflow steps 1-3 and 6 |
scripts/lib/icu-parse.mjs |
Dependency-free ICU MessageFormat parser (same shapes as FormatJS) | Read only when changing a checker |
scripts/lib/catalog-rules.mjs |
The rule implementations shared by the checkers | Read only when changing a rule |
scripts/lib/source-scan.mjs |
JSX, call and import scanning helpers for the code checker | Read only when changing a checker |
scripts/selftest.mjs |
Proves every checker passes its good fixture and catches each planted bug | After changing a script or fixture |
scripts/check-lib.mjs |
Shared script helper, synced from the library (do not edit here) | Never by hand |
assets/copy-deck.json |
The copy deck: every Shell and game text in en, de, fa, ckb, per screen (synced; do not edit here) | Through copy-deck.mjs; read meta for samples and render notes |
assets/shell-extras.json |
The twelve Shell texts the deck lacks (score line, Undo and Hint labels, Home's daily card label, tap-then-tap announcements, S10's best-of counter value, the debug menu's five Performance texts, English in all four) in four languages, and the retired Shell keys; read by copy-deck.mjs --extras |
Workflow steps 1 and 4; change only with the owner |
assets/shared.json |
Declares the shared files this skill copies in | When adding a shared file |
tests/fixtures/ |
Good and planted-bad inputs for the self-test, one folder per checker | When adding a rule |
Related skills
rtl-and-direction- layout direction, mirroring, digits outside messages, bidi in layout, Vazirmatn.accessibility- roles, labels and hints (their text comes from here), text scaling.toybox-screens- which keys each screen uses and where they sit.toybox-visual-parity- proves the built screen matches its design screenshot.naming-conventions- naming beyond message keys.
04 同仓库更多 Skills
unit-and-component-tests
Sets up Jest and writes Pocket Arcade test code - three projects, RNTL 14 async via renderWithShell, root SDK mocks, fakes, fast-check, coverage, Stryker. Use when a test needs the Shell wrapper, a mock or a fake, or Jest fails. Not for the red-green loop (tdd-workflow) or goldens (golden-tests).
typescript-and-lint-rules
Enforces Pocket Arcade's strict TypeScript 6 tsconfigs, ESLint 9 flat config, Prettier and size limits. Use when writing or splitting .ts/.tsx or fixing a tsc or lint error. Not for gate wiring (quality-gates), names (naming-conventions) or import zones (architecture-and-boundaries).
demo-skill
Builds a demo. Use when testing the pitfall checker.
demo-skill
Builds a demo. Use when testing the pitfall checker.
troubleshooting-playbook
Diagnoses and fixes Pocket Arcade failures with a catalogue of 300+ known ones (symptom, cause, fix). Use when something errors, crashes, hangs or renders wrong, or an error or log needs explaining. Not for gate setup (quality-gates) or running builds (ios-simulator-build, ios-release-testflight).
toybox-visual-parity
Proves a built Pocket Arcade screen matches its Toybox design screenshot (light/dark, en/fa) and drives the fixes: capture, element gates, sheets, sign-off. Use when any screen is built or changed, or for visual parity, design match, screenshot compare. Not for building screens (toybox-screens).