Active
Project:
Drupal core
Version:
main
Component:
Olivero theme
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
29 Jun 2021 at 22:37 UTC
Updated:
22 Mar 2025 at 20:11 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #3
mherchelBelow is an option put to the very right of the secondary menu.
Questions:
1) Can this be a
menu? Or should be do a regular dropdown?
2) Does the icon make sense from an international point of view?
3) Is the placement logical?
Comment #4
shaalUmami has a similar icon for its upcoming language switcher [WIP] - #3042417: Accessible dropdown for Umami's language-switcher and mobile main-menu
1) I think this is a regular dropdown. How would it be different if this was a menu?
2) In Umami we agreed that this kind of icon makes sense from an international point of view.
3) Placement makes sense to me. Can you add a screenshot of where would the language switch be placed in mobile?
Comment #5
cedeweyIn the Drupal User Experience weekly call we discussed this issue and a few points were made.
Comment #6
benjifisherWe discussed this issue at #3225198: Drupal Usability Meeting 2021-07-30.
@shaal was at the meeting. As he pointed out in #4, the Umami theme has also been working on a language switcher. Chances are good that Olivero and Umami can share some code and some ideas.
No firm recommendations came out of the meeting, but we did come up with some resources that might be helpful:
Comment #7
berdirNot too involved with Olivero, but how exactly would you control the *placement* of the language switcher? It's something that a user has to place after adding two languages as a block. At best you can document somewhere that the recommend place is in that region, but you can't actually guarantee that users are going to chose that option.
Unlike other blocks, you can _not_ provide a default block for it, as it is only relevant to sites with multiple languages and you can't have that initially with the standard install profile.
Umami can do it, because it by default installs multiple languages.
Comment #8
mherchelThat's a good point. We can have Olivero serve different templates and styles based on its region, and maybe have a recommended region. But you're right. We can't do anything beyond that.
Comment #13
xmacinfoCurrently not a single region display properly the language switcher. At minimum, Olivero should support putting the language switcher in a recommended region.
I have to create a new theme based on Olivero if I want to use Olivero.
In the new theme based on Olivero I add additional CSS to make the language switcher usable in Olivero. I put the language switcher block in the Secondary menu region. Controlling the CSS also give me the opportunity to hide from the list of languages the current one.
What is the experience we want to give users of Olivero with the language switcher?
Comment #14
w01f commentedJust following up on this - currently we have to use a few imperfect contrib/custom solutions to make a dropdown select for switching language. Some direction about if there's a plan for this and how/what to work on to contribute towards a best practices, accessible solution would be great.