Skip to content

fix: use standard bcp 47 code from Locale to construct LanguageRange#840

Merged
LordIdra merged 1 commit into
pylonmc:masterfrom
ybw0014:fix/locale-language-range
Jun 16, 2026
Merged

fix: use standard bcp 47 code from Locale to construct LanguageRange#840
LordIdra merged 1 commit into
pylonmc:masterfrom
ybw0014:fix/locale-language-range

Conversation

@ybw0014

@ybw0014 ybw0014 commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Locale.toLanguageTag() returns standard bcp 47 code, use it instead of manually constructing questionable language code for LanguageRange

Fixes #784

@LordIdra
LordIdra merged commit 7626d00 into pylonmc:master Jun 16, 2026
3 checks passed
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.

Locale parsing issue

2 participants