# Available Locales Plugin

**URL:** https://meta.discourse.org/t/available-locales-plugin/86346
**Category:** Plugin
**Created:** [April 28, 2018, 1:41am UTC](https://meta.discourse.org/t/available-locales-plugin/86346 "2018-04-28T01:41:29Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![eatcodetravel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eatcodetravel/32/94385_2.png) [@eatcodetravel](https://meta.discourse.org/u/eatcodetravel)
#### Post date: [April 28, 2018, 1:41am UTC](https://meta.discourse.org/t/available-locales-plugin/86346/1 "2018-04-28T01:41:29Z")

</div>

Repo: [Majal / discourse-available-locales · GitLab](https://gitlab.com/majalorg/discourse-available-locales)

This plugin allows you to limit the locales shown in the **Interface language** dropdown in the User settings.

 ![image](https://global.discourse-cdn.com/meta/original/3X/a/3/a3c869b224c37c4b4346e8b39b2fdeadfa54c598.png)

![image](https://global.discourse-cdn.com/meta/optimized/3X/1/a/1aa7a9cf7a0961d4b2c23b7116b15b3e14fe68b5_2_690x74.png)

**Admin settings**

- `available interface locales`: List of locales that will be available for users to select.

**Notes**

- This plugin will be enabled once you enable the **allow user locale** setting.

![image](https://global.discourse-cdn.com/meta/original/3X/7/5/751b19e4e77b87c20c4e07a95d8d5414af34e562.png)

- By default, all languages available in Discourse today (2018-04-27) are enabled.

---

<div class="post-metadata">

### Author: ![1c7](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/1c7/32/94822_2.png) [@1c7](https://meta.discourse.org/u/1c7)
#### Post date: [April 29, 2018, 3:57pm UTC](https://meta.discourse.org/t/available-locales-plugin/86346/2 "2018-04-29T15:57:27Z")

</div>

### Just tried this (2018-4-29) Work for me!

Thanks for building this!  
(I am just trying different plugin to get familiar with Discourse plugin ecosystem.)

### 0. Install

```plaintext
cd discourse/plugin
git clone https://gitlab.com/majalorg/discourse-available-locales

```

restart `rails s`

### 1. Set available language (as admin) (Chrome)

 ![image](https://global.discourse-cdn.com/meta/original/3X/c/b/cb086d8a19c7a153499e4abc9f9aed5b1a2c113e.png)

### 2. Use another browser to login as normal user (Firefox)

 ![image](https://global.discourse-cdn.com/meta/original/3X/6/2/62d1a84d91c34da96dde7dac19c7208eb8982b33.png)

Thanks!

---

<div class="post-metadata">

### Author: ![eatcodetravel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eatcodetravel/32/94385_2.png) [@eatcodetravel](https://meta.discourse.org/u/eatcodetravel)
#### Post date: [February 27, 2020, 5:24pm UTC](https://meta.discourse.org/t/available-locales-plugin/86346/3 "2020-02-27T17:24:28Z")

</div>

@angus developed a plugin that includes this functionality. You should give it a look instead of installing this plugin [Multilingual Plugin 🌐](https://meta.discourse.org/t/multilingual-plugin/142740)

---

<div class="post-metadata">

### Author: ![nexo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nexo/32/106384_2.png) [@nexo](https://meta.discourse.org/u/nexo)
#### Post date: [February 27, 2020, 6:13pm UTC](https://meta.discourse.org/t/available-locales-plugin/86346/4 "2020-02-27T18:13:57Z")

</div>

The difference here is that the feature is displayed within the user settings. I like that.

---

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [February 27, 2020, 8:33pm UTC](https://meta.discourse.org/t/available-locales-plugin/86346/5 "2020-02-27T20:33:32Z")

</div>

The multilingual plugin also lets you restrict the available locales in the user interface languages setting.

See further: [Pavilion](https://thepavilion.io/t/interface-languages/2550#interface-language-administration)

---

<div class="post-metadata">

### Author: ![eextra](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eextra/32/170266_2.png) [@eextra](https://meta.discourse.org/u/eextra)
#### Post date: [March 23, 2020, 7:25pm UTC](https://meta.discourse.org/t/available-locales-plugin/86346/6 "2020-03-23T19:25:33Z")

</div>

Will this work after this setting up: (so no locale for china anonymous users for example?)

 ![image](https://global.discourse-cdn.com/meta/original/3X/e/3/e3e1528c6dee748747deef4dad217a1bbbce27cf.png)

---

<div class="post-metadata">

### Author: ![eatcodetravel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eatcodetravel/32/94385_2.png) [@eatcodetravel](https://meta.discourse.org/u/eatcodetravel)
#### Post date: [March 24, 2020, 6:44pm UTC](https://meta.discourse.org/t/available-locales-plugin/86346/7 "2020-03-24T18:44:11Z")

</div>

I don’t think so, that feature wasn’t available when I developed this, maybe @angus plugin has support for this.
