Closed BLKSerene closed 2 years ago
Thank you!
I was about to merge this pull request, but there’s something I’m not sure about it. I like the idea of being case-insensitive when a language is given (and that’s probably the original goal of the PR), but always returning lowercase in language_fallback
breaks the public API and should probably be avoided. Do you agree?
@liZe Sounds reasonable, should be OK now.
Flake8 should be happy now, please re-run CI.
This pull request makes the language parameter case-insensitive so that users do not have to worry about the case problem.
e.g.
en_us
,sr_LATN
are both valid language codes now (before they should be cased asen_US
andsr_Latn
exactly).