forked from CGM_Public/pretix_original
Localize state names (#5744)
* Localize state names in js-helper * localize statename in address-confirm * add localized state_name to AbstractPosition and AttendeeProfile * use state_for_address in order export
This commit is contained in:
committed by
GitHub
parent
ceb2e13d27
commit
112d5da792
@@ -82,7 +82,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