Wednesday, March 3, 2021ΒΆ

>>> from django.utils.translation import to_locale
>>> to_locale("zh-hant")
'zh_Hant'
>>> from lino.core.site import to_locale
>>> to_locale("zh-hant")
'zh_Hant'