Skip to content

Commit

Permalink
Merge pull request #12434 from openfoodfoundation/revert-12392-fix/du…
Browse files Browse the repository at this point in the history
…plicate-language-display-new-user-11513

Revert "Fix Duplicate Language Display on New User Creation"
  • Loading branch information
mkllnk committed May 3, 2024
2 parents 2e004a0 + a75f324 commit 0ddf830
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/open_food_network/i18n_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def self.selectable_locales

# 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.
Expand Down
4 changes: 2 additions & 2 deletions spec/lib/open_food_network/i18n_config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down

0 comments on commit 0ddf830

Please sign in to comment.