# Probleem met tags op nieuwe discourse-instantie?

**URL:** <https://meta.discourse.org/t/problem-with-tags-on-new-discourse-instance/173890>\
**Category:** Bug\
**Created:** [21 december 2020 om 06:02 UTC](https://meta.discourse.org/t/problem-with-tags-on-new-discourse-instance/173890 "2020-12-21T06:02:23Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![anon20593648](https://avatars.discourse-cdn.com/v4/letter/a/58f4c7/32.png) [@anon20593648](https://meta.discourse.org/u/anon20593648)\
**Post date:** [23 december 2020 om 01:39 UTC](https://meta.discourse.org/t/problem-with-tags-on-new-discourse-instance/173890/4 "2020-12-23T01:39:54Z")

</div>

For future reference in case anyone finds this useful, I pulled out the very short snippet needed from the multilingual plugin into a separate plugin and it works fine for my use case:

```js
// assets/javascripts/discourse/initializers/custom-locale-initializer.js.es6

import { withPluginApi } from 'discourse/lib/plugin-api';
import { default as discourseComputed } from "discourse-common/utils/decorators";

export default {
  name: 'custom_locale',
  initialize(container) {
    const siteSettings = container.lookup("site-settings:main");

    if (!siteSettings.custom_locale_disable_others) return;
    
    withPluginApi('0.11.1', api => {
      api.modifyClass('controller:preferences/interface', {
        @discourseComputed()
        availableLocales() {
            return [
                { value: 'en', name: 'English' },
                { value: 'cust', name: 'My Custom Locale'},
            ]
        }
      });
    });
  }
}

```

Tags working again as expected, so I can confirm the problem is in the plugin. (Tried editing various references from `/tags` to `/tag` but was unsuccessful.)

---

_[View the full topic](https://meta.discourse.org/t/problem-with-tags-on-new-discourse-instance/173890)._
