From fc4afb9793656a2496449e673f2e88b89bf53576 Mon Sep 17 00:00:00 2001 From: Paul Chavard Date: Thu, 22 Dec 2022 17:24:08 +0100 Subject: [PATCH] =?UTF-8?q?fix(pays):=20some=20=C3=8Ele=20are=20written=20?= =?UTF-8?q?with=20=C3=AE=20for=20some=20reason=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/services/api_geo_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/api_geo_service.rb b/app/services/api_geo_service.rb index 8f721cedc..af97b7a4c 100644 --- a/app/services/api_geo_service.rb +++ b/app/services/api_geo_service.rb @@ -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)