mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-19 21:29:38 +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"
|
wo: "Wolof"
|
||||||
}.freeze
|
}.freeze
|
||||||
|
|
||||||
# Locales that we don't have files for, but which are available in Rails
|
|
||||||
EXCLUDED_LOCALES = [
|
EXCLUDED_LOCALES = [
|
||||||
|
# Test locales
|
||||||
"en-BORK",
|
"en-BORK",
|
||||||
"en-au-ocker",
|
"en-au-ocker",
|
||||||
|
# Duplicate locales
|
||||||
|
"fr-FR",
|
||||||
|
"de-DE",
|
||||||
|
"hi-IN",
|
||||||
|
"sv-SE",
|
||||||
"ca-CAT",
|
"ca-CAT",
|
||||||
"da-DK",
|
"en-US",
|
||||||
"de-AT",
|
"fi-FI",
|
||||||
"de-CH",
|
"en-IND"
|
||||||
"ee",
|
|
||||||
"en-IND",
|
|
||||||
"en-KE",
|
|
||||||
"en-MS",
|
|
||||||
"en-NEP",
|
|
||||||
"en-NG",
|
|
||||||
"en-PAK",
|
|
||||||
"en-SG",
|
|
||||||
"en-TH",
|
|
||||||
"en-UG"
|
|
||||||
].freeze
|
].freeze
|
||||||
|
|
||||||
COUNTRY_MAPPING = {
|
COUNTRY_MAPPING = {
|
||||||
|
@ -366,5 +361,6 @@ module LanguagesHelper
|
||||||
label = LANGUAGE_MAPPING[locale.to_sym] || locale.to_s.humanize
|
label = LANGUAGE_MAPPING[locale.to_sym] || locale.to_s.humanize
|
||||||
[ "#{label} (#{locale})", locale ]
|
[ "#{label} (#{locale})", locale ]
|
||||||
end
|
end
|
||||||
|
.sort_by { |label, locale| label }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue