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:
Richard Schreiber
2026-01-20 10:13:20 +01:00
committed by GitHub
parent ceb2e13d27
commit 112d5da792
4 changed files with 8 additions and 8 deletions

View File

@@ -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,