# Display Language Switcher using Code

**URL:** <https://community.hubspot.com/t/display-language-switcher-using-code/91947>\
**Category:** CMS Development\
**Tags:** local-development, html\
**Created:** [October 17, 2023, 8:26am UTC](https://community.hubspot.com/t/display-language-switcher-using-code/91947 "2023-10-17T08:26:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ankurjpixel](https://avatars.discourse-cdn.com/v4/letter/a/8e7dd6/32.png) [@ankurjpixel](https://community.hubspot.com/u/ankurjpixel)\
**Post date:** [October 17, 2023, 8:26am UTC](https://community.hubspot.com/t/display-language-switcher-using-code/91947/1 "2023-10-17T08:26:26Z")

</div>

Hi Team,

I am using the code as mentioned in the given document [link](https://developers.hubspot.com/docs/cms/features/multi-language-content),  
But it is not displaying the language switcher on website,  
where if i use module to display it, it is working fine.

Please suggest what is wrong here.

 ![LanguageCode-HubSpot.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/3X/d/4/d45c8e5bf2d287c61f10410875213ec94032295a.jpeg)  
Code i am using in header.html file

Regards

Ankur Jain

---

<div class="post-metadata">

**Author:** ![TDwebdev](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/tdwebdev/32/78032_2.png) [@TDwebdev](https://community.hubspot.com/u/TDwebdev)\
**Post date:** [October 17, 2023, 1:36pm UTC](https://community.hubspot.com/t/display-language-switcher-using-code/91947/2 "2023-10-17T13:36:26Z")

</div>

Hi Ankur,

Is the page that you see translated?

If the current page is not translated, then you won’t see the language switcher.

---

<div class="post-metadata">

**Author:** ![ankurjpixel](https://avatars.discourse-cdn.com/v4/letter/a/8e7dd6/32.png) [@ankurjpixel](https://community.hubspot.com/u/ankurjpixel)\
**Post date:** [October 18, 2023, 6:37am UTC](https://community.hubspot.com/t/display-language-switcher-using-code/91947/3 "2023-10-18T06:37:40Z")

</div>

Hi @TDwebdev

yes page is translated, and language switcher is displaying using the module, but i am trying to display it using code inside header.html

screenshot of the language switcher displaying using drag/drop module:

 ![ankurjpixel_0-1697611031837.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/3X/6/9/696026fe8abc9ef28c41d809681fa68d3fe0321e.jpeg)

Regrads

Ankur Jain
