Mixed-language link "Switch to X"

Created on 10 August 2020, about 5 years ago
Updated 8 June 2025, 4 months ago

Problem/Motivation

When there are only two languages to choose from, the switcher is collapsed to a single link to the non-current language. The link text is "Switch to @another", where @another is replaced with the name of the other language. My problem is that the name of the other language is rendered in that other language, while the rest of the link text is rendered in the current language. This results in, e.g. "Switch to Svenska". The mixed language bothers me.

Steps to reproduce

Activate exactly two languages and enable the module.

Proposed resolution

I would expect either "Switch to Swedish" (fully in the current language) or "Byt till Svenska" (fully in the other language). Both alternatives have their own pros, but I'm leaning slightly towards the first alternative, to avoid language-mixing completely.

A third alternative would be to print only the language name, but I'm hesitant because it wouldn't be clear if it's saying the current or the non-current language.

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Documentation

Created by

πŸ‡ΈπŸ‡ͺSweden Arla

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024