# 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:** 20

<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:** [3 במרץ,‏ 2020,‏ 4:53pm UTC](https://meta.discourse.org/t/change-iso-code-for-language-on-single-page/107736/20 "2020-03-03T16:53:46Z")

</div>

The [data-vocabulary.org](http://data-vocabulary.org) warning should be resolved in the latest version of discourse per

[https://github.com/discourse/discourse/commit/96b64df4d46627fbcaf3c40612750405ca058333](https://github.com/discourse/discourse/commit/96b64df4d46627fbcaf3c40612750405ca058333)

Your site has this update, so we just need to wait for googlebot to catch up. As you found, doing a live test will resolve the warning.

Unfortunately this restructuring of breadcrumbs broke the little language script we came up with. The breadcrumbs no longer have the `#breadcrumb-0` id, so we need something else. I think this should do it:

```plaintext
<script>
    document.addEventListener('DOMContentLoaded', function(){
    	if(document.querySelector("#breadcrumbs a[href*='/c/chinese']")){
    		document.documentElement.lang = "zh";
    	}
    });
</script>

```

Let me know if that resolves the issue with a live test

---

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