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

fix(locale): align language handling with IDE settings (fixes #308) #309

Merged
merged 2 commits into from
Feb 18, 2025

Conversation

Canario5
Copy link
Contributor

Fixes #308 - Improved locale handling for non-English IDE configurations

Changes:

  • Use IDE locale instead of OS system for language displays in settings
  • Implement Collator-based sorting for locale list
  • Standardize prompt locale to 'English name (code) – Native name'; example "French (fr) – français"

- Use IDE locale instead of system default for language displays
- Implement Collator-based sorting for locale list
- Standardize prompt locale to 'English name (code) – Native name'
Copy link
Owner

@Blarc Blarc left a comment

Choose a reason for hiding this comment

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

Hey @Canario5,

thanks a lot for opening a PR. The changes you've suggested make a lot of sense. There are just a few nitpicks I'd like to go over with you, before I merge this 🙏.

…larc#309)

- Simplify locale display format in prompts to use English language names
- Remove redundant Elvis operator in locale retrieval
- Replace deprecated Locale constructor with forLanguageTag()
- Add collator comments explaining locale-aware sorting rationale
- Include contextual help about language display differences
@Blarc
Copy link
Owner

Blarc commented Feb 18, 2025

This looks great @Canario5, thank you so much! 💯

@Blarc Blarc merged commit 969114b into Blarc:main Feb 18, 2025
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.

Improved locale handling for non-English IDE configurations
2 participants