mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-19 13:19:39 +02:00
Locale updates
This commit is contained in:
parent
89e107e36c
commit
ba49fea89a
1 changed files with 10 additions and 14 deletions
|
@ -138,24 +138,19 @@ module LanguagesHelper
|
|||
wo: "Wolof"
|
||||
}.freeze
|
||||
|
||||
# Locales that we don't have files for, but which are available in Rails
|
||||
EXCLUDED_LOCALES = [
|
||||
# Test locales
|
||||
"en-BORK",
|
||||
"en-au-ocker",
|
||||
# Duplicate locales
|
||||
"fr-FR",
|
||||
"de-DE",
|
||||
"hi-IN",
|
||||
"sv-SE",
|
||||
"ca-CAT",
|
||||
"da-DK",
|
||||
"de-AT",
|
||||
"de-CH",
|
||||
"ee",
|
||||
"en-IND",
|
||||
"en-KE",
|
||||
"en-MS",
|
||||
"en-NEP",
|
||||
"en-NG",
|
||||
"en-PAK",
|
||||
"en-SG",
|
||||
"en-TH",
|
||||
"en-UG"
|
||||
"en-US",
|
||||
"fi-FI",
|
||||
"en-IND"
|
||||
].freeze
|
||||
|
||||
COUNTRY_MAPPING = {
|
||||
|
@ -366,5 +361,6 @@ module LanguagesHelper
|
|||
label = LANGUAGE_MAPPING[locale.to_sym] || locale.to_s.humanize
|
||||
[ "#{label} (#{locale})", locale ]
|
||||
end
|
||||
.sort_by { |label, locale| label }
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue