Skip to content

Commit

Permalink
Fix: The i18n locales selector is showing a dropdown with 3 languages (
Browse files Browse the repository at this point in the history
  • Loading branch information
alecslupu authored and Quentinchampenois committed Nov 23, 2022
1 parent 3b4295f commit 4a9d919
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion decidim-core/lib/decidim/form_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def collection_radio_buttons(attribute, collection, value_attribute, text_attrib
# rubocop:enable Metrics/ParameterLists

def create_language_selector(locales, tabs_id, name)
if Decidim.available_locales.count > 4
if locales.count > 4
language_selector_select(locales, tabs_id, name)
else
language_tabs(locales, tabs_id, name)
Expand Down

0 comments on commit 4a9d919

Please sign in to comment.