Skip to content

feat(translation): add HK and TW regional variants for Traditional Chinese#45

Merged
sirily11 merged 1 commit into
mainfrom
copilot/add-zh-hant-hk-and-zh-hant-tw-support
May 2, 2026
Merged

feat(translation): add HK and TW regional variants for Traditional Chinese#45
sirily11 merged 1 commit into
mainfrom
copilot/add-zh-hant-hk-and-zh-hant-tw-support

Conversation

Copilot AI commented May 2, 2026

Copy link
Copy Markdown
Contributor

The language picker only offered generic zh-Hant (Traditional Chinese) with no regional distinction. This splits it into Hong Kong and Taiwan variants using proper BCP-47 region subtags.

Changes

  • lib/translation/languages.ts: Replace zh-Hant with two entries:
    • zh-Hant-HK — Chinese (Traditional, Hong Kong)
    • zh-Hant-TW — Chinese (Traditional, Taiwan)

@vercel

vercel Bot commented May 2, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
universal-translation Ready Ready Preview, Comment May 2, 2026 4:01pm

Request Review

@sirily11 sirily11 marked this pull request as ready for review May 2, 2026 16:01
Copilot AI review requested due to automatic review settings May 2, 2026 16:01
@sirily11 sirily11 enabled auto-merge (squash) May 2, 2026 16:01
@autopilot-project-manager autopilot-project-manager Bot added the enhancement New feature or request label May 2, 2026
@autopilot-project-manager autopilot-project-manager Bot changed the title Add zh-Hant-HK and zh-Hant-TW to language picker feat(translation): add HK and TW regional variants for Traditional Chinese May 2, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the translation language selector list to distinguish Traditional Chinese by region, replacing the generic zh-Hant option with BCP-47 region-specific variants for Hong Kong and Taiwan.

Changes:

  • Replace zh-Hant with zh-Hant-HK (Traditional Chinese, Hong Kong)
  • Add zh-Hant-TW (Traditional Chinese, Taiwan)

@sirily11 sirily11 merged commit 86fdb9b into main May 2, 2026
9 checks passed
@sirily11 sirily11 deleted the copilot/add-zh-hant-hk-and-zh-hant-tw-support branch May 2, 2026 16:04
@sirily11

sirily11 commented May 2, 2026

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 1.2.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants