Skip to content

fix(cloud-function): treat zh-Hant like zh-TW#324

Draft
caugner wants to merge 5 commits intomainfrom
322-locale-redirect-with-zh-Hant
Draft

fix(cloud-function): treat zh-Hant like zh-TW#324
caugner wants to merge 5 commits intomainfrom
322-locale-redirect-with-zh-Hant

Conversation

@caugner
Copy link
Copy Markdown
Contributor

@caugner caugner commented Apr 30, 2026

Description

Updates the locale redirect to treat Accept-Language: zh-Hant like Accept-Language: zh-TW, by normalizing Chinese script subtags.

Motivation

Fix content negotiation bug where this caused a redirect to zh-CN.

Additional details

Related issues and pull requests

Fixes #322.

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.

Accept-Language: zh-Hant is not handled

2 participants