Update or Replace Header Locale Selector for New Discourse Header (widgets-end-of-life) – Is Built-in Support Available?

Hello everyone,

I am currently using the header-locale-selector component on my Discourse forum to provide users with an easy way to switch languages from the header. Recently, I received the following admin notice:

[Admin Notice] Theme ‘Header Locale Selector’ contains code which needs updating. (id:discourse.widgets-end-of-life)

I understand that Discourse is deprecating the legacy widget rendering system and that this component would need to be updated to work with the new Glimmer components system. Unfortunately, I do not have experience with Ember or Glimmer, and I would appreciate help from the community to either update this component or suggest alternatives.

My questions:

  • Has similar language selector functionality been added to Discourse Core or is there an officially supported method for letting users quickly change their interface language in the header?
  • Are there any actively maintained theme components that provide this feature and are already compatible with the new header system?
  • If an update or rewrite is necessary, are there migration guides, code examples, or perhaps someone willing to help provide a code update or pull request?

Component Repository:

github.com

GitHub - Ahmedgagan/header-locale-selector

I appreciate any advice, suggestions, or direct help. Thank you very much!

hi there. I believe that theme component is currently broken.

1 Like

Thank you for the previous updates. Specifically:

  1. Are there any built-in admin configurations that can directly support the language switching functionality that the header locale selector provided? For example, settings within the Discourse admin interface that might enable a similar user experience without requiring custom development?
  2. If built-in options are limited, what plugins or custom modifications are recommended by the community to implement a language switcher in the header? I’ve seen discussions about multilingual sites and language preferences during registration, but I’m particularly interested in solutions that are:
  • Compatible with the latest Discourse versions and the new header widgets.
  • User-friendly and accessible.
  • Effective for handling multiple languages seamlessly.
  1. Any insights or workarounds from those who have already addressed this change would be greatly appreciated. For instance, are there theme components or other extensions that can mimic this functionality?

I guess this is overkill: Content Localization - Manual and Automatic with Discourse AI

It shouldn’t be too hard to re-make that theme component according to current standards, but no one has done it and it looks like there hasn’t been a surge of interest. If you’ve got a budget you could ask in Marketplace .

1 Like

Hmm the new content localization language header in should work fine. Settings are:

  • Content localization supported locales
  • Content localization language switcher

They do not need AI to function.

That’s awesome. Does that mean that those settings replace GitHub - Ahmedgagan/header-locale-selector? If so, maybe update that other topic?