Skip to content

Normalize language code case in LangChooser#1303

Merged
sy-records merged 1 commit intophp:masterfrom
lufei:fix/lang
Aug 5, 2025
Merged

Normalize language code case in LangChooser#1303
sy-records merged 1 commit intophp:masterfrom
lufei:fix/lang

Conversation

@sy-records
Copy link
Copy Markdown
Member

@sy-records sy-records commented Aug 1, 2025

Fix #1302

In cs,en;q=0.9,fr;q=0.8,zh-CN;q=0.7,zh;q=0.6, zh-CN is not converted to lowercase, so the match is zh- with a quality of 1. After converting zh- to zh, quality is greater than 0.9 for en.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Aug 1, 2025

🚀 Preview for commit 9c9b9ac can be found at https://web-php-pr-1303.preview.thephp.foundation

@sy-records
Copy link
Copy Markdown
Member Author

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Aug 1, 2025

🚀 Regression report for commit 9c9b9ac is at https://web-php-regression-report-pr-1303.preview.thephp.foundation

@mabar
Copy link
Copy Markdown

mabar commented Aug 1, 2025

It works, thank you

@sy-records sy-records merged commit 19786a7 into php:master Aug 5, 2025
5 checks passed
@sy-records sy-records deleted the fix/lang branch August 5, 2025 00:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Language variant redirect does not respect priorities

3 participants