mirror of
https://github.com/pretix/pretix.git
synced 2026-08-12 11:07:02 +00:00
Localize state names in js-helper
This commit is contained in:
@@ -76,7 +76,7 @@ def _info(cc):
|
||||
statelist = [s for s in pycountry.subdivisions.get(country_code=cc) if s.type in types]
|
||||
return {
|
||||
'data': [
|
||||
{'name': s.name, 'code': s.code[3:]}
|
||||
{'name': gettext(s.name), 'code': s.code[3:]}
|
||||
for s in sorted(statelist, key=lambda s: s.name)
|
||||
],
|
||||
**info,
|
||||
|
||||
Reference in New Issue
Block a user