Admin Toolbar Language Switcher title are not translated

Created on 8 December 2023, 12 months ago

Problem/Motivation

The language switcher titles in the language switcher are not translated.

Hello,
Is it possible to add a translation for the language title?

Use case: When we select a language, another language title in the menu should be translated into the selected language.

Example:

We select the French language and in the language, bar should show "Passer en anglais".

and when we select English language should be "Switch to English"

I am using Drupal 9.5.10 version.

🐛 Bug report
Status

Closed: works as designed

Version

2.0

Component

Code

Created by

🇮🇳India lvishal

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

Comments & Activities

  • Issue created by @lvishal
  • Status changed to Closed: works as designed 12 months ago
  • 🇬🇧United Kingdom james.williams

    Ah so this was deliberately done in #3164373: Mixed-language link "Switch to X" - the switch link is shown in the destination language, rather than the current page language, to avoid a weird mix of languages in that link. I believe this is more helpful to users, as if they don't speak French, it's more helpful to say "Switch to English" than "Passer en anglais", "Passer en English" or even "Switch to anglais" etc! (Or if they don't speak English, it's better to say "Passer en français" rather than "Switch to français" etc.)

    So I'm closing this ticket - but of course, I'm open to being persuaded to reconsider if there are better reasons! But the current behaviour is intentional, having already been thought through.

Production build 0.71.5 2024