Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand Locale parser to support three-character language codes #6124

Merged
merged 3 commits into from
Oct 31, 2024

Conversation

baronfel
Copy link
Contributor

@baronfel baronfel commented Oct 29, 2024

Bug

Fixes: NuGet/Home#12253

Description

Per NuGet/Home#12253 (comment), I found that all cultures known to .NET on my Windows and Linux hosts used 2 or 3-character language codes, so I expanded the heuristic in the Locale_Parser to this to enable handling of resources for these locales in .NET packages. I also added comments explaining why these decisions were made and a note about future fully-correct implementations if those become required.

PR Checklist

  • Meaningful title, helpful description and a linked NuGet/Home issue
  • Added tests - I would appreciate some pointers where to add tests for this
  • Link to an issue or pull request to update docs if this PR changes settings, environment variables, new feature, etc.

@baronfel baronfel requested a review from a team as a code owner October 29, 2024 01:16
@microsoft-github-policy-service microsoft-github-policy-service bot added the Community PRs created by someone not in the NuGet team label Oct 29, 2024
@baronfel baronfel force-pushed the support-three-character-locale-prefixes branch from 7c3e4a0 to 3cf400c Compare October 29, 2024 21:11
@baronfel baronfel force-pushed the support-three-character-locale-prefixes branch from 3cf400c to d0a4d36 Compare October 29, 2024 21:11
nkolev92
nkolev92 previously approved these changes Oct 29, 2024
@jeffkl jeffkl self-assigned this Oct 29, 2024
Copy link
Contributor

@jeffkl jeffkl left a comment

Choose a reason for hiding this comment

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

Thanks for the fix!

@jeffkl jeffkl merged commit edb1d2f into NuGet:dev Oct 31, 2024
30 checks passed
@baronfel baronfel deleted the support-three-character-locale-prefixes branch November 1, 2024 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Community PRs created by someone not in the NuGet team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Satellite assemblies for three-letter languages are not copied from NuGet package
3 participants