#31795: Allow overriding regional subtags convertion to lowercase
-----------------------------------------+------------------------
               Reporter:  TheoChevalier  |          Owner:  nobody
                   Type:  Uncategorized  |         Status:  new
              Component:  Uncategorized  |        Version:  master
               Severity:  Normal         |       Keywords:
           Triage Stage:  Unreviewed     |      Has patch:  0
    Needs documentation:  0              |    Needs tests:  0
Patch needs improvement:  0              |  Easy pickings:  0
                  UI/UX:  0              |
-----------------------------------------+------------------------
 Hi,

 Our organization uses IETF BCP 47 locale codes with ISO 3166 regional
 subtags (e.g. `en-US`), and unfortunately `to_language()` converts the
 regional subtag to lowercase, `en-us`. This doesn’t work with our
 localization toolchain, and we’ve noticed we have
 [https://github.com/mozilla/donate-
 wagtail/blob/master/donate/core/__init__.py#L9-L22 hacky code] in each of
 our Django-based project to make it work.

 Would it be possible to allow overriding that logic in a cleaner way?

 Thanks!

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31795>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/056.dea5485997c0e754c1f76129e49601df%40djangoproject.com.

Reply via email to