Permettre aux administrateurs d'afficher le sélecteur de langue de l'en-tête même pour les utilisateurs connectés

Currently, the site setting content localization anon language switcher is a toggle to show the language switcher only for non-logged-in users.

Screenshots 📸

The Setting

The Switcher

There have been some requests to expand this to allow logged-in users to set the language from the header as well.

The work here would involve

  • updating the setting name to exclude “anon”
  • expanding the setting to “none”, “anonymous”, “all”

  • the anon language is tracked via cookies, switching the language in logged-in should update the user.locale instead of cookies

By completing this, we should also update related topics (e.g. Header Locale Selector) that this is now possible in core.

9 « J'aime »

This is now done and merged - FEATURE: Also allow language switcher to be shown when users are logged in by nattsw · Pull Request #34578 · discourse/discourse · GitHub.

Here’s the video that was included in the PR description showing how it should behave.

Something we may consider is perhaps to retire the one shown in /my/preferences/interface in favour of this one for a better experience where the site owner may choose the available languages for the site. We’ll have a few discussions internally first.

7 « J'aime »

That video shows same time why AI-summaries should be translated too :joy:

1 « J'aime »

I hear you.. All in due time.

4 « J'aime »