Merge pull request #12392 from sergioosouzaa/fix/duplicate-language-display-new-user-11513

Fix Duplicate Language Display on New User Creation
This commit is contained in:
Filipe
2024-04-25 16:01:09 +01:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@@ -17,7 +17,7 @@ module OpenFoodNetwork
# All locales that can be accessed by the application, including fallbacks.
def self.available_locales
(selectable_locales + [default_locale, source_locale]).uniq
(selectable_locales + [default_locale]).uniq
end
# The default locale that is used when the user doesn't have a preference.

View File

@@ -77,7 +77,7 @@ module OpenFoodNetwork
end
it "provides the default available locales" do
expect(I18nConfig.available_locales).to eq ["en_GB", "en"]
expect(I18nConfig.available_locales).to eq ["en_GB"]
end
end
@@ -92,7 +92,7 @@ module OpenFoodNetwork
end
it "provides the default available locales" do
expect(I18nConfig.available_locales).to eq ["es", "fr", "de", "en"]
expect(I18nConfig.available_locales).to eq ["es", "fr", "de"]
end
end
end