mirror of
https://github.com/pretix/pretix.git
synced 2026-09-13 16:14:40 +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]
|
statelist = [s for s in pycountry.subdivisions.get(country_code=cc) if s.type in types]
|
||||||
return {
|
return {
|
||||||
'data': [
|
'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)
|
for s in sorted(statelist, key=lambda s: s.name)
|
||||||
],
|
],
|
||||||
**info,
|
**info,
|
||||||
|
|||||||
Reference in New Issue
Block a user