# Lang attribute doesn't change when changing locale on profile

**URL:** <https://meta.discourse.org/t/lang-attribute-doesnt-change-when-changing-locale-on-profile/52830>\
**Category:** Feature\
**Created:** [November 12, 2016, 4:12pm UTC](https://meta.discourse.org/t/lang-attribute-doesnt-change-when-changing-locale-on-profile/52830 "2016-11-12T16:12:07Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Aymane\_Shuichi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aymane_shuichi/32/63024_2.png) [@Aymane\_Shuichi](https://meta.discourse.org/u/Aymane_Shuichi)\
**Post date:** [November 12, 2016, 4:12pm UTC](https://meta.discourse.org/t/lang-attribute-doesnt-change-when-changing-locale-on-profile/52830/1 "2016-11-12T16:12:07Z")

</div>

Hi ,  
I have set the default locale to `fr` and I changed the language to Arabic on my profile.  
when I check the html while on Arabic page I get `lang="fr"` as attribute for html tag.

The reason why I want it to change is to display a correct font for Arabic using CSS

```
html {
font-family: "Roboto", sans-serif;
font-weight: 400;
}
html:lang(ar) {
   font-family: 'Noto Naskh Arabic', serif !important; 
}

```

---

_[View the full topic](https://meta.discourse.org/t/lang-attribute-doesnt-change-when-changing-locale-on-profile/52830)._
