Skip to content

In the Admin UI, the language selector is displayed even though the project is configured with only one available language. #58

Description

@akelch

Description

In the Admin UI, the language selector is displayed even though the project is configured with only one available language.

The project configuration contains:

conf.i18n.available_languages = ["de"]
conf.i18n.default_language = "de"

Despite this, the language menu still shows both German and English.

Project-specific names have been anonymized.

Expected Behavior

If only one language is configured, the Admin UI should either:

  • hide the language selector automatically, or
  • provide a configuration option to disable/hide it.

The selector should only show languages that are actually configured as available.

Observed Behavior

The language selector still appears and lists multiple languages, including English, although only German is configured via conf.i18n.available_languages.

Open Question

Where does the Admin UI currently retrieve the list of available languages from?

The configured values in main.py do not appear to be the only source of truth:

conf.i18n.available_languages = ["de"]
conf.i18n.default_language = "de"

Acceptance Criteria

  • The language selector only displays configured available languages.
  • If exactly one language is available, the selector is hidden or can be disabled via configuration.
  • conf.i18n.available_languages is respected by the Admin UI.
  • No fallback language such as English is shown unless explicitly configured.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions