# Multilingual Plugin 🌐

**URL:** https://meta.discourse.org/t/multilingual-plugin/142740
**Category:** Plugin
**Tags:** pavilion, broken
**Created:** [February 27, 2020, 5:06am UTC](https://meta.discourse.org/t/multilingual-plugin/142740 "2020-02-27T05:06:24Z")
**Posts on this page:** 20
**Page:** 7

<div class="post-metadata">

### Author: ![Honeyxilia](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/honeyxilia/32/523830_2.png) [@Honeyxilia](https://meta.discourse.org/u/Honeyxilia)
#### Post date: [February 9, 2024, 8:21am UTC](https://meta.discourse.org/t/multilingual-plugin/142740/125 "2024-02-09T08:21:43Z")

</div>

I’ve opened a PR that (mostly) fixes this bug !  
[https://github.com/paviliondev/discourse-multilingual/pull/74](https://github.com/paviliondev/discourse-multilingual/pull/74)

it works on category names, descriptions, and subcategories when the option `show_subcategory_list` is active on a category !  
The only issue left is subcategories when `show_subcategory_list` is off 💜

---

<div class="post-metadata">

### Author: ![thoka](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thoka/32/115652_2.png) [@thoka](https://meta.discourse.org/u/thoka)
#### Post date: [July 20, 2024, 6:50am UTC](https://meta.discourse.org/t/multilingual-plugin/142740/126 "2024-07-20T06:50:52Z")

</div>

If I want to translate categories, category-descriptions and tags in my forum to 10 different languages, I have to create and upload 3 x 10 = 30 separate files for configuration and updates.

I’m thinking about having all translations in one file with following structure:

```yaml
categories:
  slug: 
    _de: German name
    _en: English name 
    .description:
       _de: German description
       _en: English description
tags:
  tag:
     ...

```

This would have several benefits:

- All translations could be updated at once
- Translators see context during translation
- Streamline translation tasks utilizing Large Language Models

Has anyone tried this before?

Are there any downsides I do not see?

Regarding a first implementation, I will try to write a plugin that creates and updates all needed entries in `Multilingual::CustomTranslation`.

---

<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: [July 23, 2024, 10:49am UTC](https://meta.discourse.org/t/multilingual-plugin/142740/127 "2024-07-23T10:49:15Z")

</div>

This plugin is in need of an upgrade. I want to gauge whether it is worth it, and what is needed. If you’re interested in multilingual features please vote:

_Poll ([view on site](https://meta.discourse.org/t/multilingual-plugin/142740/127))_

---

<div class="post-metadata">

### Author: ![UlBre](https://avatars.discourse-cdn.com/v4/letter/u/f17d59/32.png) [@UlBre](https://meta.discourse.org/u/UlBre)
#### Post date: [August 7, 2024, 9:29pm UTC](https://meta.discourse.org/t/multilingual-plugin/142740/130 "2024-08-07T21:29:08Z")

</div>

> [@angus](#):
>
> I want better multilingual functionality in Discourse but don’t use this plugin (please explain below)

My answer “I want better multilingual functionality in Discourse but don’t use this plugin (please explain below)” is because we are just evaluating for good a multilanguage-option. It would be great to find your tool to be the one.

As you asked for what ist needed I put my post I wrote for general question für multilanguage support here:

We do have a website with one domain and two languages (german, english). The content ist divided by [domain.org/de/[nameofsite]](http://domain.org/de/%5Bnameofsite%5D) and [domain.org/en/[nameofsite]](http://domain.org/en/%5Bnameofsite%5D).  
Wo do have a discourse-forum in german language at the subdomain [germankeyword]-forum.domain.org  
Now we want to add an english forum version.  
Unfortunately the english keyword, which aptly describes the topic, and which we would want to use for the english forum ([englishkeyword]-forum.domain.org) differs from the german keyword. The german keyword doesn’t work in english and the english keyword doesn’t work in german.

Question:  
Is ist possible to run a (one) discourse-forum with different subdomains for different languages while using only one account management?  
Or do we have to build a completely new english forum with its own subdomain and its own account management?

With the term “one account management” i do mean only one database for users and only one login for both languages.  
Ist there any possibility to avoid that users, who want to use both languages, have to register twice?

Or do we strictly need to restrict us to one domain if we want to offer the same logins for different languages oft the same forum?

If we do need one domain and one forum, ist there a possibility to show the language of a post in the linkname oft the post?

Just like  
[https://meta.discourse.org/t/multilingual-plugin/\*en/\*142740/125](https://meta.discourse.org/t/multilingual-plugin/*en/*142740/125)  
for english posts and  
[https://meta.discourse.org/t/multilingual-plugin/\*de/\*142740/125](https://meta.discourse.org/t/multilingual-plugin/*de/*142740/125)  
for german ones?

Sorry if my questions were too stupid…

---

<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: [August 8, 2024, 12:46am UTC](https://meta.discourse.org/t/multilingual-plugin/142740/132 "2024-08-08T00:46:48Z")

</div>

> [@UlBre](#):
>
> Is ist possible to run a (one) discourse-forum with different subdomains for different languages while using only one account management?

In short, no, that’s not possible.

> [@UlBre](#):
>
> Or do we have to build a completely new english forum with its own subdomain and its own account management?

Part of the goal of this plugin is to allow different native speakers to exist on the same forum and for their preferred language to be naturally surfaced to them. That was the original intent of the plugin.

> [@UlBre](#):
>
> Ist there any possibility to avoid that users, who want to use both languages, have to register twice?

Yes, you’d have them on the same forum. If you really have to have two separate forums you’d have to use an identity provider, e.g. auth0 or okta, which then provides authentication for both forums.

> [@UlBre](#):
>
> If we do need one domain and one forum, ist there a possibility to show the language of a post in the linkname oft the post?
> 
> Just like  
> [https://meta.discourse.org/t/multilingual-plugin/\*en/\*142740/125](https://meta.discourse.org/t/multilingual-plugin/*en/*142740/125)  
> for english posts and  
> [https://meta.discourse.org/t/multilingual-plugin/\*de/\*142740/125](https://meta.discourse.org/t/multilingual-plugin/*de/*142740/125)  
> for german ones?

This isn’t currently a feature of the plugin however it’d be possible to achieve this with some additional work. To fully achieve your vision additional work would be needed either way. You can [send me a private message on coop.pavilion.tech](https://coop.pavilion.tech/new-message?username=angus).

---

<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: [August 8, 2024, 1:04am UTC](https://meta.discourse.org/t/multilingual-plugin/142740/133 "2024-08-08T01:04:00Z")

</div>

Given the results of this poll I’m going to work on the next major version of this plugin starting in September. If you have any specific requests for features, now’s the time to make them. The next version of the plugin will also have a paid business subscription available with support and other benefits. The plugin will remain 100% open source.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [August 8, 2024, 8:33am UTC](https://meta.discourse.org/t/multilingual-plugin/142740/135 "2024-08-08T08:33:41Z")

</div>

> [@UlBre](#):
>
> Question:  
> Is ist possible to run a (one) discourse-forum with different subdomains for different languages while using only one account management

You could have two instances and use [discourse connect](https://meta.discourse.org/t/13045?silent=true) to make one of them the site that handles authentication.

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [August 8, 2024, 11:17am UTC](https://meta.discourse.org/t/multilingual-plugin/142740/136 "2024-08-08T11:17:09Z")

</div>

As a part of very small and difficult language family I need AI-based translations for my finnish and estonian users. Translation services are horrible bad outside main languages.

Translations into English are a bit better, though.

---

<div class="post-metadata">

### Author: ![das-g](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/das-g/32/441608_2.png) [@das-g](https://meta.discourse.org/u/das-g)
#### Post date: [August 16, 2024, 4:32pm UTC](https://meta.discourse.org/t/multilingual-plugin/142740/138 "2024-08-16T16:32:36Z")

</div>

I’m trying to use the `multilingual guest language switcher footer visible` setting, to make the community’s main languages quickly accessible as interface languages for guests. Here is what I observed:

1. The bar with the shortlist of interface languages is only visible when when `multilingual guest language switcher` is set to `footer`, but **not when it’s set to `header`**.

2. The setting allows to re-order the languages selected for the shortlist in the bar:

---

<div class="post-metadata">

### Author: ![das-g](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/das-g/32/441608_2.png) [@das-g](https://meta.discourse.org/u/das-g)
#### Post date: [August 16, 2024, 4:39pm UTC](https://meta.discourse.org/t/multilingual-plugin/142740/139 "2024-08-16T16:39:36Z")

</div>

Oh, and when `multilingual guest language switcher` is set to `header`, the menu with the list of languages is not scrollable (nor limited by the height of the browser window), so some languages aren’t selectable, because they happen to end up below the lower edge of the browser. (Workaround in Firefox: Zoom out with Ctrl+Scrollwheel, so that the whole menu fits into the Browser window.)

This is with version 0.2.9 ([ba63f9a](https://github.com/paviliondev/discourse-multilingual/commit/ba63f9a7d3f1d862b107e905a03211b0dc3e4baf)) of the “Multilingual”-Plugin.

---

<div class="post-metadata">

### Author: ![das-g](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/das-g/32/441608_2.png) [@das-g](https://meta.discourse.org/u/das-g)
#### Post date: [August 16, 2024, 5:26pm UTC](https://meta.discourse.org/t/multilingual-plugin/142740/140 "2024-08-16T17:26:29Z")

</div>

A previous admin of our instance seems to have already uploaded some `category_name.<language code>.yml` at `<discourse base URL>/admin/multilingual/translations`.

 ![grafik](https://global.discourse-cdn.com/meta/original/4X/d/4/1/d41540957fd0eff70100a3fdac209d2d9acdbd2e.png)

~~However they don’t seem to work.~~ Is there a way to view or download their content, so I can modify them and upload again?

##### Edit:

They do work now. (I don’t know what changed.) I’d still be interested in downloading them (or accessing them on the server, if they’re on the file system there), in case I need to modify them at some point.

---

<div class="post-metadata">

### Author: ![evenlo](https://avatars.discourse-cdn.com/v4/letter/e/4bbf92/32.png) [@evenlo](https://meta.discourse.org/u/evenlo)
#### Post date: [September 4, 2024, 9:56am UTC](https://meta.discourse.org/t/multilingual-plugin/142740/142 "2024-09-04T09:56:34Z")

</div>

Hi I’ve installed `discourse-multilingual` in two sites.  
There is an error with require is not defined in i18n.js:

 ![image](https://global.discourse-cdn.com/meta/original/4X/d/5/9/d596896f143d35f10297278f549f82824fbdc9b5.png)

When I disabled `discourse-multilingual`, the error did not occur. Could you please let me know what might be causing this?

Thank you.

---

<div class="post-metadata">

### Author: ![jesus2099](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jesus2099/32/119720_2.png) [@jesus2099](https://meta.discourse.org/u/jesus2099)
#### Post date: [November 13, 2024, 7:23pm UTC](https://meta.discourse.org/t/multilingual-plugin/142740/143 "2024-11-13T19:23:39Z")

</div>

> [@angus](#):
>
> I use the plugin and want better/different functionality or UX.

But I want to:

> [@jesus2099](#):
>
> have `en` = **English** , instead of _English **(US)**_

---

<div class="post-metadata">

### Author: ![jesus2099](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jesus2099/32/119720_2.png) [@jesus2099](https://meta.discourse.org/u/jesus2099)
#### Post date: [November 18, 2024, 9:45am UTC](https://meta.discourse.org/t/multilingual-plugin/142740/144 "2024-11-18T09:45:15Z")

</div>

> [@jesus2099](#):
>
> How could [we](https://community.metabrainz.org/t/topic-languages/668024/3?u=jesus2099) have `en` = **English** , instead of _English **(US)**_?

I came across a second bug [on this topic](https://community.metabrainz.org/t/artist-credit-on-this-single/724976?u=jesus2099).

I have replaced [简体中文](https://community.metabrainz.org/tag/zh_cn) with [한국어](https://community.metabrainz.org/tag/ko).  
A pencil icon did appear, notifying of a change.  
But if you look at edit history entry, the topic language change is not shown.  
The Before and After are identical, even in Raw mode.

---

<div class="post-metadata">

### Author: ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)
#### Post date: [November 18, 2024, 9:52am UTC](https://meta.discourse.org/t/multilingual-plugin/142740/145 "2024-11-18T09:52:37Z")

</div>

I think that was also the problem in

> [@Issue with Customize About Page Feature Mixing with Old js.about.contact\_info Text](https://meta.discourse.org/t/issue-with-customize-about-page-feature-mixing-with-old-js-about-contact-info-text/334450/18):
>
> Something is severely broken with your site @TheBaby5 — the list of available locales on your site is null and it’s causing a whole lot of problems. Are you running a supported install? Do you have any non-official plugins?

---

<div class="post-metadata">

### Author: ![Sheena](https://avatars.discourse-cdn.com/v4/letter/s/8e8cbc/32.png) [@Sheena](https://meta.discourse.org/u/Sheena)
#### Post date: [February 8, 2025, 7:28pm UTC](https://meta.discourse.org/t/multilingual-plugin/142740/146 "2025-02-08T19:28:05Z")

</div>

Hello there!

Sorry if this is a strange question, but is there anywhere I can see the plugin in action? I’ve read the documentation and gone through this thread, but most of the linked example sites don’t seem to work or have changed. For example: [Pavilion](https://thepavilion.io/categories) and [http://try.thepavilion.io/](http://try.thepavilion.io/) Because of this, I can’t check out the mentioned examples for the plugin, the locale switcher, etc.

If there’s currently no way to test it, would someone be kind enough to answer a few questions? 🙂

- Can users choose their preferred language/s during sign-up, so the forum’s content is automatically filtered based on their selection?
- Is it possible to change the “LanguageSwitch” button to a globe icon or something else? Right now, it appears to be a Japanese character, but since no one on my forum uses that language, it might confuse users or cause them to ignore it.
- I understand that categories and descriptions can be translated (if I got that right), but does this also work for subcategories of subcategories? Additionally, could it apply to elements like links in the brand header (plugin)? For example, could the word “Products” be translated and redirect users to either the Spanish or English version, depending on their selected language? I’m asking since this is a very popular plugin and was wondering if it’s supported by the multilingual plugin.

Sorry for all the questions! I did my best to figure everything out by looking at the screenshots and documentation.

---

<div class="post-metadata">

### Author: ![Zas666](https://avatars.discourse-cdn.com/v4/letter/z/258eb7/32.png) [@Zas666](https://meta.discourse.org/u/Zas666)
#### Post date: [February 25, 2025, 12:43am UTC](https://meta.discourse.org/t/multilingual-plugin/142740/147 "2025-02-25T00:43:05Z")

</div>

It seems this plugin doesn’t play well with Discourse 3.5.0beta1, I had to disable it to get the forum back. I found nothing in logs but:

Deprecation notice: add\_to\_serializer should not be used to directly override include\_\*? methods. Use the include\_condition keyword argument instead  
At /var/www/discourse/plugins/discourse-multilingual/plugin.rb:314:in `block in activate!`

---

<div class="post-metadata">

### Author: ![thoka](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/thoka/32/115652_2.png) [@thoka](https://meta.discourse.org/u/thoka)
#### Post date: [February 25, 2025, 9:56am UTC](https://meta.discourse.org/t/multilingual-plugin/142740/148 "2025-02-25T09:56:55Z")

</div>

I get an Error 500 / Oops with current discourse:

```plaintext
ArgumentError (wrong number of arguments (given 2, expected 1))
app/controllers/extra_locales_controller.rb:44:in `url'

Backtrace

plugins/discourse-multilingual/extensions/extra_locales_controller.rb:21:in `bundle_js_hash'
app/controllers/extra_locales_controller.rb:44:in `url'
plugins/discourse-multilingual/lib/multilingual/locale_loader.rb:30:in `preload_tag_translations'
plugins/discourse-multilingual/plugin.rb:77:in `block (2 levels) in activate!'

```

My locale is set to `de_DE.UTF-8`.

Btw: “Report a bug” above links to the currently unknown domain `discourse.pluginmanager.org`.

---

<div class="post-metadata">

### Author: ![TRgala\_Murat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/trgala_murat/32/484588_2.png) [@TRgala\_Murat](https://meta.discourse.org/u/TRgala_Murat)
#### Post date: [February 25, 2025, 10:50am UTC](https://meta.discourse.org/t/multilingual-plugin/142740/149 "2025-02-25T10:50:41Z")

</div>

This plugin is definitely crashing my site right now.

---

<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 25, 2025, 12:54pm UTC](https://meta.discourse.org/t/multilingual-plugin/142740/152 "2025-02-25T12:54:26Z")

</div>

The plugin has been updated so it doesn’t break on the latest version of Discourse.

[Previous page](https://meta.discourse.org/t/multilingual-plugin/142740.md?page=6)

[Next page](https://meta.discourse.org/t/multilingual-plugin/142740.md?page=8)
