Why this change?
Since discourse/discourse@a440e15, we have started to support objects typed theme setting so we are switching this theme component to use it instead as it provides a much better UX for configuring the settings required for the theme component.
Related #30.
Reported here: https://meta.discourse.org/t/missing-custom-header-links-after-update/262594
#### Current behavior
The links are not displayed if a locale is not provided in the setting.
#### Expected behavior
By not associating a locale with a link, the link should be displayed by default regardless of the user's language.
* Add a locale attribute to custom header links
This attribute is to be set to a language code like 'fr', 'en' or 'de'.
* Filter out links which locale is different from the html document's
* prettier
* more syntax
---------
Co-authored-by: Lena Montenot <lena.montenot@commown.coop>
Co-authored-by: Jordan Vidrine <jordan@jordanvidrine.com>