Merge pull request #8328 from tchak/fix-pays-sort

fix(pays): some Île are written with î for some reason…
This commit is contained in:
Paul Chavard 2022-12-26 22:02:03 +00:00 committed by GitHub
commit 9be1030cba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,7 +4,7 @@ class APIGeoService
I18nData.countries(locale)
.merge(get_localized_additional_countries(locale))
.map { |(code, name)| { name:, code: } }
.sort_by { I18n.transliterate(_1[:name]) }
.sort_by { I18n.transliterate(_1[:name].tr('î', 'Î')) }
end
def country_name(code, locale: I18n.locale)