Skip to content

Commit

Permalink
Only allow user to select from list of selectable (available) locales
Browse files Browse the repository at this point in the history
This list of locales doesn't have the additional fallback source locale (en).

The naming of these methods is really confusing!
  • Loading branch information
dacook committed Jul 23, 2024
1 parent 146296d commit 4a9a42e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/i18n_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module I18nHelper
def locale_options
OpenFoodNetwork::I18nConfig.available_locales.map do |locale|
OpenFoodNetwork::I18nConfig.selectable_locales.map do |locale|
[t('language_name', locale:), locale]
end
end
Expand Down

0 comments on commit 4a9a42e

Please sign in to comment.