Skip to content

The i18n locales selector is showing a dropdown with 3 languages #9882

@carolromero

Description

@carolromero

Describe the bug

As an admin, when I go to edit a form in the admin panel, on the i18n locales selector of every field I see the dropdown for selecting the locales, where I should have the horizontal list (see screenshots).

To Reproduce
Steps to reproduce the behavior:

  1. Configure an installation with DECIDIM_AVAILABLE_LOCALES (en, ca, es, fr, de, ja)
  2. Create and organization in system panel and configure "Available Locales" settings for en, es, ca.
  3. Sign in as admin in the administration panel
  4. Go to a form with i18n
  5. The language selector is displayed as a drop-down list

Expected behavior
As described here, the dropdown should be shown when there are more than 4 locales.

Current behavior

Expected behavior

Extra data (please complete the following information):

  • Device: Desktop
  • Device OS: Ubuntu 22.04
  • Browser: Chrome
  • Decidim Version: 0.27.0.rc2
  • Decidim installation: Metadecidim

Additional context
I first thought this was a Metadecidim bug, but with @andreslucena we have found that it is general: decidim/metadecidim#110

We believe that this is happening because this is honoring the DECIDIM_AVAILABLE_LOCALES installation setting instead of the organizations' (tenant) configuration.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions