# Selettore di Localizzazione dell'Intestazione

**URL:** <https://meta.discourse.org/t/header-locale-selector/240697>\
**Category:** Theme component\
**Tags:** broken\
**Created:** [3 Ottobre 2022, 7:51am UTC](https://meta.discourse.org/t/header-locale-selector/240697 "2022-10-03T07:51:33Z")\
**Posts on this page:** 1\
**Showing post:** 22

<div class="post-metadata">

**Author:** ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)\
**Post date:** [6 Dicembre 2024, 3:03am UTC](https://meta.discourse.org/t/header-locale-selector/240697/22 "2024-12-06T03:03:44Z")

</div>

> [@fahmi\_fareed](#):
>
> `allLocales.filter(locale => ['en', 'ar'].includes(locale));`

`available_locales` ha questa struttura:

```plaintext
[
  {
    name: "English (US)",
    value: "en"
  },
  ...
]

```

Quindi nel tuo codice dovrai usare `locale.value`. 👍

---

_[View the full topic](https://meta.discourse.org/t/header-locale-selector/240697)._
