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

<div class="post-metadata">

**Author:** ![Robert\_Fay](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/robert_fay/32/86825_2.png) [@Robert\_Fay](https://meta.discourse.org/u/Robert_Fay)\
**Post date:** [5 באפריל,‏ 2021,‏ 3:36pm UTC](https://meta.discourse.org/t/change-iso-code-for-language-on-single-page/107736/24 "2021-04-05T15:36:32Z")

</div>

Hello @david  
I was going through our site with my SEO team and it appears that these may no longer be working.

Example Post in our German Category.

> **[Alternative für das Bauteil FR05-S1-R-0-105](https://forum.digikey.com/t/alternative-fur-das-bauteil-fr05-s1-r-0-105/12177)**
>
> Alternative für das Bauteil FR05-S1-R-0-105 Eine direkte Alternative für das Bauteil FR05-S1-R-0-105 / 2115-FR05-S1-R-0-105CT-ND von Fractus Antennas ( Discontinued at Digi-Key ) kann aus derselben EZConnect™ Serie diese RF-Antenne sein: ...

When I look at the crawled page on the Google Search Console it is showing English.

 ![image](https://global.discourse-cdn.com/meta/original/3X/f/9/f979ba95daad058d1b5d808d3e317d9ba931b7ff.png)

Here is the code I am currently using.

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

Any help or direction would be appreciated.  
-Robert

---

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