Use content language for footer menu visibility conditions

Created on 24 June 2024, 6 months ago
Updated 16 July 2024, 5 months ago

Problem/Motivation

I have a Canada.ca site where there is a requirement for the user to set their preferred UI language. For example, if I am a French user, I can change my UI language to French, then when I edit content in English I can see the field names and UI elements in French.

What I notice is, if I set my UI language to French, the footer menus are always French. This is incorrect. Since these menus are only on the forward-facing theme (wxt_bootstrap or extension) they should act as content and follow the language of the page.

Steps to reproduce

  1. Go to Language detection and selection (/en/admin/config/regional/language/detection)
  2. Enable Account administration pages option and save. Make sure the new selection is at the top of the list so it gets considered first.
  3. Edit your user profile and select French as the preferred UI language, save
  4. Run the gcweb and gcweb_translation migration groups.

Now when you toggle the home page between English and French, you can see the footer menus (and branch menu) are always in French.

Proposed resolution

Change the visibility condition of these blocks in wxt_bootstrap config to use content language detection instead of UI.

Feature request
Status

Fixed

Version

5.2

Component

WxT Bootstrap

Created by

🇨🇦Canada smulvih2 Canada 🍁

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

Comments & Activities

Production build 0.71.5 2024