# Translation not displayed on locale change, but html language changes nonetheless

**URL:** https://meta.discourse.org/t/translation-not-displayed-on-locale-change-but-html-language-changes-nonetheless/380395
**Category:** Support
**Tags:** content-localization
**Created:** [August 26, 2025, 4:14pm UTC](https://meta.discourse.org/t/translation-not-displayed-on-locale-change-but-html-language-changes-nonetheless/380395 "2025-08-26T16:14:14Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![monty25](https://avatars.discourse-cdn.com/v4/letter/m/ecccb3/32.png) [@monty25](https://meta.discourse.org/u/monty25)
#### Post date: [August 26, 2025, 4:14pm UTC](https://meta.discourse.org/t/translation-not-displayed-on-locale-change-but-html-language-changes-nonetheless/380395/1 "2025-08-26T16:14:14Z")

</div>

We have set up content localization on Discourse 3.5:

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

A topic has been translated from the default locale Dutch to English (UK) as visible at the red 3:

 ![image](https://global.discourse-cdn.com/meta/original/4X/f/6/a/f6a7489eb4d96de4025050a0a278ebe524937930.png)

When using a private browser window, the locale chooser appears, but changing it makes no change to the actual text:

The same output occurs when the enable `tl` parameter is added with value `en` or `en_gb`.

Also, no `hreflang` links are present (but that seems to be a known feature gap).

However, the first line of the HTML changes on locale change for Dutch from:

```html
<html lang="nl" class="desktop-view not-mobile-device text-size-normal anon">

```

to the following for English (UK):

```html
<html lang="en-GB" class="desktop-view not-mobile-device text-size-normal anon">

```

What could be the reason that the translated text is not displayed?

---

<div class="post-metadata">

### Author: ![nat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nat/32/235063_2.png) [@nat](https://meta.discourse.org/u/nat)
#### Post date: [August 30, 2025, 4:54am UTC](https://meta.discourse.org/t/translation-not-displayed-on-locale-change-but-html-language-changes-nonetheless/380395/2 "2025-08-30T04:54:15Z")

</div>

> [@monty25](#):
>
> What could be the reason that the translated text is not displayed?

Could you hit the normal edit button for the post, and check that the post’s original language is correct?

 ![Screenshot 2025-08-30 at 12.48.04 PM](https://global.discourse-cdn.com/meta/original/4X/5/c/0/5c07d40c90637402284cb088ffe0e48abbc3eaad.png)

* * *

> [@monty25](#):
>
> no `hreflang` links are present

We have a new experimental feature that’s behind a [hidden site setting](https://meta.discourse.org/t/hidden-site-settings-reference-guide/308774) – `content_localization_crawler_param` which can serve translated content to Google.

We’re still in testing phase, but I’ve seen some optimal results so far.

 ![performance](https://global.discourse-cdn.com/meta/original/4X/4/7/b/47b72a20071350035fd2a359b43e88135f11c233.png) ![indexed pages](https://global.discourse-cdn.com/meta/original/4X/f/1/8/f18d64e60c136308184d482c65b08f507d7b18b6.png)  
sneak preview

If you wish you could turn it on.

---

<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: [August 30, 2025, 5:55am UTC](https://meta.discourse.org/t/translation-not-displayed-on-locale-change-but-html-language-changes-nonetheless/380395/3 "2025-08-30T05:55:58Z")

</div>

> [@monty25](#):
>
> Discourse 3.5

So you are on the stable branch? I’m afraid the new setting Nat mentioned in the end is too new, so it is not available there.

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [September 22, 2025, 9:47pm UTC](https://meta.discourse.org/t/translation-not-displayed-on-locale-change-but-html-language-changes-nonetheless/380395/4 "2025-09-22T21:47:18Z")

</div>

@monty25 were you able to resolve your issue? As Moin points out, the translation work is fairly bleeding edge and if you want to use it you will want to be on latest, not stable.

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [October 6, 2025, 9:48pm UTC](https://meta.discourse.org/t/translation-not-displayed-on-locale-change-but-html-language-changes-nonetheless/380395/5 "2025-10-06T21:48:09Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
