# Module inside module

**URL:** <https://community.hubspot.com/t/module-inside-module/104987>\
**Category:** CMS Development\
**Tags:** design-manager, html, professional\
**Created:** [April 17, 2024, 8:58am UTC](https://community.hubspot.com/t/module-inside-module/104987 "2024-04-17T08:58:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![EricaFontimedia](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/ericafontimedia/32/9140_2.png) [@EricaFontimedia](https://community.hubspot.com/u/EricaFontimedia)\
**Post date:** [April 17, 2024, 8:58am UTC](https://community.hubspot.com/t/module-inside-module/104987/1 "2024-04-17T08:58:56Z")

</div>

Hi everybody!

I have a small (I hope!) problem.

I’m working on a blog that is becoming multilangual and I need to add the HubSpot’s language switcher.

I’ve already used it in the past so I’m used to it.

The problem is that in this peculiar case, the header is a module, so if i try to insert another module inside it, an error appears.

Can you suggest me the fastest workaround to this problem?

Do I have to recreate the header like an HTML file or is there another way?

Thank a lot for your help! 🙂

---

<div class="post-metadata">

**Author:** ![jnix284](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jnix284/32/29_2.png) [@jnix284](https://community.hubspot.com/u/jnix284)\
**Post date:** [April 17, 2024, 11:43am UTC](https://community.hubspot.com/t/module-inside-module/104987/2 "2024-04-17T11:43:20Z")

</div>

@EricaFontimedia the language switcher doesn’t have to be it’s own module, you can add the code needed directly to the existing header module.

This would require a developer, I recommend reaching out in the [HubSpot Developer Slack](https://developers.hubspot.com/slack) #jobs channel if you don’t have someone on your team proficient with hubL.

---

<div class="post-metadata">

**Author:** ![EricaFontimedia](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/ericafontimedia/32/9140_2.png) [@EricaFontimedia](https://community.hubspot.com/u/EricaFontimedia)\
**Post date:** [April 17, 2024, 12:37pm UTC](https://community.hubspot.com/t/module-inside-module/104987/3 "2024-04-17T12:37:44Z")

</div>

Hi Jennifer,

I have the code and it is a module:

```lia-code-sample
<div class="language-switcher">
 <div class="header__language-switcher--label">
 {% module 'language-switcher' path='@hubspot/language_switcher',
 label='Language switcher',
 display_mode='localized'
 %}
 <div class="header__language-switcher--label-current"> {{ locale_name(locale) }}</div>
 </div>
 </div>

```

---

<div class="post-metadata">

**Author:** ![EricaFontimedia](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/ericafontimedia/32/9140_2.png) [@EricaFontimedia](https://community.hubspot.com/u/EricaFontimedia)\
**Post date:** [April 22, 2024, 12:11pm UTC](https://community.hubspot.com/t/module-inside-module/104987/4 "2024-04-22T12:11:40Z")

</div>

Hi everybody, is there somebody that could help me to solve this problem?

Thanks again!

---

<div class="post-metadata">

**Author:** ![jnix284](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jnix284/32/29_2.png) [@jnix284](https://community.hubspot.com/u/jnix284)\
**Post date:** [April 23, 2024, 10:55am UTC](https://community.hubspot.com/t/module-inside-module/104987/5 "2024-04-23T10:55:41Z")

</div>

Hi @EricaFontimedia here’s what you’ll need to do:

1 - rebuild the header as a global partial

2 - create a module for the nav

3 - use the default ls(@hubspot/language-switcher
