-
Notifications
You must be signed in to change notification settings - Fork 632
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(text): use locale-independent letter case methods (#6016) #6204
fix(text): use locale-independent letter case methods (#6016) #6204
Conversation
33c4a3b
to
aaf3999
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6204 +/- ##
==========================================
+ Coverage 96.52% 96.54% +0.01%
==========================================
Files 533 533
Lines 40870 40868 -2
Branches 6120 6120
==========================================
+ Hits 39451 39454 +3
+ Misses 1377 1372 -5
Partials 42 42 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Could this change/fix any output with Turkish locale? |
@kt3k Sorry, only just noticed this comment after the merge. It would change such output to use "default" letter case conversions (which I think for all intents and purposes is the same as It's possible there could be cases where the locale-sensitive version with the host locale is desirable, but I suspect such cases are rare, as it's usually better to explicitly specify a locale. For example, a Turkish-language-only website should consistently use Turkish letter case conventions even for users' whose browser/OS is in another language; meanwhile, a multilingual website supporting Turkish should use the locale of the current content. In cases where the locale is unknown, perhaps the host locale could be used as a fallback, with the usual caveats about potential bugs (string comparison etc). |
No worries. I agree this is generally a good convention. Thanks for your contribution. I was just wondering if we should tag this PR |
Closes #6016