# Change ISO code for language on single page

**URL:** <https://meta.discourse.org/t/change-iso-code-for-language-on-single-page/107736>\
**Category:** Product Support\
**Created:** [28 בינואר,‏ 2019,‏ 4:34pm UTC](https://meta.discourse.org/t/change-iso-code-for-language-on-single-page/107736 "2019-01-28T16:34:16Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [12 בפברואר,‏ 2019,‏ 11:43am UTC](https://meta.discourse.org/t/change-iso-code-for-language-on-single-page/107736/6 "2019-02-12T11:43:08Z")

</div>

Unfortunately this isn’t a built-in feature of Discourse. Theme components (javascript) wouldn’t work either, because the page language is set way before any javascript is loaded.

Having separate languages per-category would technically be possible using a plugin. This would work for crawlers like google, and would also trigger browser auto-translation features.

One issue with this is that Discourse is a ‘single page application’, and browsers only seem to check the `lang` attribute on the initial page load. That means that a user browsing the forum will be ‘stuck’ on the language of the first page they viewed. That may or may not be an issue depending on your use case.

---

_[View the full topic](https://meta.discourse.org/t/change-iso-code-for-language-on-single-page/107736)._
