Skip to content
This repository was archived by the owner on Jul 27, 2025. It is now read-only.

Commit ba49fea

Browse files
committed
Locale updates
1 parent 89e107e commit ba49fea

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

app/helpers/languages_helper.rb

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -138,24 +138,19 @@ module LanguagesHelper
138138
wo: "Wolof"
139139
}.freeze
140140

141-
# Locales that we don't have files for, but which are available in Rails
142141
EXCLUDED_LOCALES = [
142+
# Test locales
143143
"en-BORK",
144144
"en-au-ocker",
145+
# Duplicate locales
146+
"fr-FR",
147+
"de-DE",
148+
"hi-IN",
149+
"sv-SE",
145150
"ca-CAT",
146-
"da-DK",
147-
"de-AT",
148-
"de-CH",
149-
"ee",
150-
"en-IND",
151-
"en-KE",
152-
"en-MS",
153-
"en-NEP",
154-
"en-NG",
155-
"en-PAK",
156-
"en-SG",
157-
"en-TH",
158-
"en-UG"
151+
"en-US",
152+
"fi-FI",
153+
"en-IND"
159154
].freeze
160155

161156
COUNTRY_MAPPING = {
@@ -366,5 +361,6 @@ def language_options
366361
label = LANGUAGE_MAPPING[locale.to_sym] || locale.to_s.humanize
367362
[ "#{label} (#{locale})", locale ]
368363
end
364+
.sort_by { |label, locale| label }
369365
end
370366
end

0 commit comments

Comments
 (0)