mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-26 01:33:22 +00:00
Revert "Fix Duplicate Language Display on New User Creation"
This commit is contained in:
@@ -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]).uniq
|
||||
(selectable_locales + [default_locale, source_locale]).uniq
|
||||
end
|
||||
|
||||
# The default locale that is used when the user doesn't have a preference.
|
||||
|
||||
@@ -77,7 +77,7 @@ module OpenFoodNetwork
|
||||
end
|
||||
|
||||
it "provides the default available locales" do
|
||||
expect(I18nConfig.available_locales).to eq ["en_GB"]
|
||||
expect(I18nConfig.available_locales).to eq ["en_GB", "en"]
|
||||
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"]
|
||||
expect(I18nConfig.available_locales).to eq ["es", "fr", "de", "en"]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user