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'