How to use the l18n.tz_fullnames function in l18n

To help you get started, we’ve selected a few l18n examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github wagtail / wagtail / wagtail / users / forms.py View on Github external
def _get_time_zone_choices():
    time_zones = [(tz, str(l18n.tz_fullnames.get(tz, tz)))
                  for tz in get_available_admin_time_zones()]
    time_zones.sort(key=itemgetter(1))
    return BLANK_CHOICE_DASH + time_zones

l18n

Internationalization for pytz timezones and territories

MIT
Latest version published 2 years ago

Package Health Score

50 / 100
Full package analysis

Popular l18n functions

Similar packages