Skip to content

feat(i18n): add Traditional Chinese (zh-Hant) locale - #962

Open
mosiwang wants to merge 1 commit into
craft-ai-agents:mainfrom
mosiwang:feat/zh-Hant-locale
Open

feat(i18n): add Traditional Chinese (zh-Hant) locale#962
mosiwang wants to merge 1 commit into
craft-ai-agents:mainfrom
mosiwang:feat/zh-Hant-locale

Conversation

@mosiwang

Copy link
Copy Markdown

Summary

Adds Traditional Chinese (zh-Hant) locale support to Craft Agents.

Changes

  • New file: packages/shared/src/i18n/locales/zh-Hant.json — 1641 translated entries covering all UI strings
  • Updated: packages/shared/src/i18n/registry.ts — registered zh-Hant in LOCALE_REGISTRY with nativeName: "繁體中文" and zhTW date-fns locale
  • Updated: packages/shared/src/i18n/__tests__/locale-registry.test.ts — added test verifying zh-Hant resolves to zh-TW date locale

Testing

  • bun run typecheck passes
  • Locale registry test passes: cd packages/shared && bun test tests/llm-connections.test.ts

This is the first step for full zh-Hant support — ready for review.

- Add zh-Hant.json with 1641 translated entries
- Register zh-Hant in LOCALE_REGISTRY with zhTW date locale
- Add test for zh-Hant date locale resolution
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