# Multi-Language Subscription Preferences Page

**URL:** <https://community.hubspot.com/t/multi-language-subscription-preferences-page/45283>\
**Category:** CMS Development\
**Tags:** enterprise\
**Created:** [October 13, 2021, 12:26pm UTC](https://community.hubspot.com/t/multi-language-subscription-preferences-page/45283 "2021-10-13T12:26:34Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![MFischer](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mfischer/32/54841_2.png) [@MFischer](https://community.hubspot.com/u/MFischer)\
**Post date:** [October 13, 2021, 12:26pm UTC](https://community.hubspot.com/t/multi-language-subscription-preferences-page/45283/1 "2021-10-13T12:26:34Z")

</div>

Hi there,

I am currently trying to create a multilingual Subscription Preferences Page.

We already have set up all the translations for email subscription types like shown here: [Create marketing emails in multiple languages](https://knowledge.hubspot.com/contacts/create-translations-for-your-email-subscription-types)

After we did that, we see a dropdown menu at the top of the email preferences page to select a translation language.

The page URL has a parameter “languagePreference” which contains the language code. This language, if available, is also selected directly in the DropDown.

Now I want to display further content based on this language. To do this, however, I need to be able to read out the parameter value.

The Hubl variable request.query does not return the given url, so no languagePreference parameter available. If I do that with javascript location.search I get the right URL containing the parameter languagePreference. But since I can’t use Javasript variables in Hubl, I need to find the right Hubl variable to retriev the languagePreference value.

URL: [https://hs-9311353.s.hubspotemail.net/hs/manage-preferences/unsubscribe-test?languagePreference=fr&d=Vnbsj968WnggVHjsLt3F7y5MW2m6Xl84fDXwLN1Jxwhl2dMmMVQtHCH7z5SD4N67kM-DDpDvNW6Wky3M4VRRX2W5XkmTB7h0k4fV1yf0N30gQZDW8G-21746K-MxW7bdV\_H8lylWK22T3&v=3&utm\_source=hs\_email&utm\_medium=email&utm\_content=2&\_hsenc=p2ANqtz-8JdAusyxlAVs4sRfBR8WnN73eLFUiW2Nly26-QLVanxCDoUtQt7fgQeSUM5se3\_TARjf2UQCZGdwmJLJjHlKKJIebkiw&\_hsmi=2](https://hs-9311353.s.hubspotemail.net/hs/manage-preferences/unsubscribe-test?languagePreference=fr&d=Vnbsj968WnggVHjsLt3F7y5MW2m6Xl84fDXwLN1Jxwhl2dMmMVQtHCH7z5SD4N67kM-DDpDvNW6Wky3M4VRRX2W5XkmTB7h0k4fV1yf0N30gQZDW8G-21746K-MxW7bdV_H8lylWK22T3&v=3&utm_source=hs_email&utm_medium=email&utm_content=2&_hsenc=p2ANqtz-8JdAusyxlAVs4sRfBR8WnN73eLFUiW2Nly26-QLVanxCDoUtQt7fgQeSUM5se3_TARjf2UQCZGdwmJLJjHlKKJIebkiw&_hsmi=2)

request.query result: portalId=9311353&email=fischer%40nextage.ch

In the page source code I see a javascript function replaceLangPrefWith handels the language dropdown. I need to know which Hubl variable is used to set the default language: var currentLangPref = “? HUBL VARIABLE ?”;

It would be super if someone could help me here!

---

<div class="post-metadata">

**Author:** ![dennisedson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dennisedson/32/28044_2.png) [@dennisedson](https://community.hubspot.com/u/dennisedson)\
**Post date:** [October 14, 2021, 5:32pm UTC](https://community.hubspot.com/t/multi-language-subscription-preferences-page/45283/2 "2021-10-14T17:32:14Z")

</div>

@Anton , @Teun

Have either of you worked with this issue before?

---

<div class="post-metadata">

**Author:** ![Anton](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/anton/32/103167_2.png) [@Anton](https://community.hubspot.com/u/Anton)\
**Post date:** [October 18, 2021, 1:08pm UTC](https://community.hubspot.com/t/multi-language-subscription-preferences-page/45283/3 "2021-10-18T13:08:15Z")

</div>

Hi @MFischer,

the language is set in the crm right?

If so you could set it up like this. In this example I’ll give the crm property the name “language”.

`currentLangPref = "?contact.language?";`

best,

Anton

---

<div class="post-metadata">

**Author:** ![MFischer](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mfischer/32/54841_2.png) [@MFischer](https://community.hubspot.com/u/MFischer)\
**Post date:** [October 18, 2021, 1:35pm UTC](https://community.hubspot.com/t/multi-language-subscription-preferences-page/45283/4 "2021-10-18T13:35:08Z")

</div>

Hi @Anton

The language of each contact is set within the crm: contact.hs\_language. This value I get easily.

But the languagePreference parameter is set by the language of the email.

Now, it is theoretically possible for a French speaker to receive an English newsletter. Not nice but possible.

The dropdown and thus the subscriptions are displayed in the language of the newsletter. But since I can’t query this language, the rest of the page would be in French (contact.hs\_language). Also, I don’t see any way to change the default language of the dropdown without refreshing the page.

It would be easiest if I could display the entire content of the page in the language from the languagePreference parameter. But for that I have to be able to read this parameter first.

Thanks anyway,  
Michèle

---

<div class="post-metadata">

**Author:** ![fiberpunk](https://avatars.discourse-cdn.com/v4/letter/f/a87d85/32.png) [@fiberpunk](https://community.hubspot.com/u/fiberpunk)\
**Post date:** [January 4, 2023, 12:39pm UTC](https://community.hubspot.com/t/multi-language-subscription-preferences-page/45283/5 "2023-01-04T12:39:39Z")

</div>

Hi Michèle,

Looks like I am in the same situation as you, were you ever able to resolve this?

Cheers,

Christoph

---

<div class="post-metadata">

**Author:** ![MFischer](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mfischer/32/54841_2.png) [@MFischer](https://community.hubspot.com/u/MFischer)\
**Post date:** [January 26, 2023, 10:38am UTC](https://community.hubspot.com/t/multi-language-subscription-preferences-page/45283/6 "2023-01-26T10:38:49Z")

</div>

Hi @fiberpunk

Unfortunately no.  
I have just tested the suggested solution here: [https://community.hubspot.com/t5/HubSpot-Ideas/Multi-language-support-for-email-subscription-pages/idi-p/23410/page/5#comments](https://community.hubspot.com/t5/HubSpot-Ideas/Multi-language-support-for-email-subscription-pages/idi-p/23410/page/5#comments)

That doesn’t work as well.

The url parameter languagePreference desides in which language the subscription types are displayed. This parameter is set by the language of the email.

I tried to use a smartrule based of Preferred language which is based on the browser language. That works but mixes languages for example if the user recieved the emai in german but has browser set to englisch. → no solution for me

Next I tried to use Query parameter as smart rule. But that didn’t work as well because the parameter languagePreference is not available.

I don’t understand why HubSpot doesn’t finally offer a solution here. Multilingualism is not important in the USA at best, but it is very important for Europe, for example.

---

<div class="post-metadata">

**Author:** ![fiberpunk](https://avatars.discourse-cdn.com/v4/letter/f/a87d85/32.png) [@fiberpunk](https://community.hubspot.com/u/fiberpunk)\
**Post date:** [January 30, 2023, 10:19pm UTC](https://community.hubspot.com/t/multi-language-subscription-preferences-page/45283/7 "2023-01-30T22:19:49Z")

</div>

Thanks anyway @MFischer! Here´s hoping that somedays there will be a working/clean solution for this …

---

<div class="post-metadata">

**Author:** ![Teun](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/teun/32/28739_2.png) [@Teun](https://community.hubspot.com/u/Teun)\
**Post date:** [October 16, 2021, 7:24pm UTC](https://community.hubspot.com/t/multi-language-subscription-preferences-page/45283/8 "2021-10-16T19:24:45Z")

</div>

I have not sadly! I do know that system pages do not return all the page variables that normal pages have available. Same goes for request.query..

---

<div class="post-metadata">

**Author:** ![lstepany](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lstepany/32/54675_2.png) [@lstepany](https://community.hubspot.com/u/lstepany)\
**Post date:** [September 13, 2023, 12:41pm UTC](https://community.hubspot.com/t/multi-language-subscription-preferences-page/45283/9 "2023-09-13T12:41:05Z")

</div>

Hi @MFischer ! I have similar problem to solve, and I am rally quriouse how would you change the lang for further content in hubl that you cannot do in JS?

 ![lstepany_0-1694608809297.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/7/d/7d1aa4dc16466d156f1556258f7e1cc46bb05305.png)

Do you mean to change the contact’s preferred lang right? (that is hs\_language).

---

<div class="post-metadata">

**Author:** ![JaroB](https://avatars.discourse-cdn.com/v4/letter/j/e19adc/32.png) [@JaroB](https://community.hubspot.com/u/JaroB)\
**Post date:** [August 1, 2024, 12:49pm UTC](https://community.hubspot.com/t/multi-language-subscription-preferences-page/45283/10 "2024-08-01T12:49:55Z")

</div>

Hi everyone, I need to remove the language switcher from the preference page. Can anyone please advise on how to do that? Thank you.

---

<div class="post-metadata">

**Author:** ![Anton](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/anton/32/103167_2.png) [@Anton](https://community.hubspot.com/u/Anton)\
**Post date:** [August 1, 2024, 12:55pm UTC](https://community.hubspot.com/t/multi-language-subscription-preferences-page/45283/11 "2024-08-01T12:55:11Z")

</div>

Hey @JaroB,  
You can inspect the element while previewing the pref-center to get the right class and hide it and adding some CSS to your main CSS file or the template specific one(if you’re using one)like

```lia-code-sample
select.CLASS-OF-TRANSLATIONS-DROPDOWN{
 display:none
}

```

best,

Anton

---

<div class="post-metadata">

**Author:** ![JaroB](https://avatars.discourse-cdn.com/v4/letter/j/e19adc/32.png) [@JaroB](https://community.hubspot.com/u/JaroB)\
**Post date:** [August 1, 2024, 1:05pm UTC](https://community.hubspot.com/t/multi-language-subscription-preferences-page/45283/12 "2024-08-01T13:05:59Z")

</div>

Hi @Anton ,

I added the following CSS code:

```auto
<style>
select.language-switcher {
 display: none;
}
</style>

```

Unfortunately, the language switcher is still visible.

Any futher ideas? 🙂

Jaro

---

<div class="post-metadata">

**Author:** ![lstepany](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lstepany/32/54675_2.png) [@lstepany](https://community.hubspot.com/u/lstepany)\
**Post date:** [August 1, 2024, 1:19pm UTC](https://community.hubspot.com/t/multi-language-subscription-preferences-page/45283/13 "2024-08-01T13:19:36Z")

</div>

\<style\> .language-switcher { display: none; } \</style\>

---

<div class="post-metadata">

**Author:** ![JaroB](https://avatars.discourse-cdn.com/v4/letter/j/e19adc/32.png) [@JaroB](https://community.hubspot.com/u/JaroB)\
**Post date:** [August 2, 2024, 6:53am UTC](https://community.hubspot.com/t/multi-language-subscription-preferences-page/45283/14 "2024-08-02T06:53:54Z")

</div>

Hi @lstepany ,

first of all, I’m glad that you’re trying to help me, and I appreciate it. I’ve copied the command you provided everywhere I could, but I still see the language switcher on the page. Please take a look at the screenshots.

Maybe I’m doing something wrong; I hope you can advise me.

Thank you,  
Jaro

 ![hs1.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/9/2/92335e396076cfcbdbb1e28173c74e55dbd0cfa5.png)  
preferences page config - design module  
 ![hs2.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/4/44bad7a84f496fc278eaa2c72c5d04088f08c760.png)  
preferences page config - design module  
 ![hs3.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/c/e/ce89a4c196c9d014e9bf0955bd622aed03c8dd24.png)  
config sub module - design manager  
 ![hs4.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/2/a/2af000dcb3925e4cf523b53f4e31bb1d5ab3a56a.png)  
Preferences update page

---

<div class="post-metadata">

**Author:** ![lstepany](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/lstepany/32/54675_2.png) [@lstepany](https://community.hubspot.com/u/lstepany)\
**Post date:** [August 2, 2024, 6:59am UTC](https://community.hubspot.com/t/multi-language-subscription-preferences-page/45283/15 "2024-08-02T06:59:03Z")

</div>

@joro can you inspect and check in the browser what is the css selector of your lang switcher?

---

<div class="post-metadata">

**Author:** ![Anton](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/anton/32/103167_2.png) [@Anton](https://community.hubspot.com/u/Anton)\
**Post date:** [August 2, 2024, 8:42am UTC](https://community.hubspot.com/t/multi-language-subscription-preferences-page/45283/16 "2024-08-02T08:42:04Z")

</div>

Hey @JaroB,

here’s the correct code to disable the language dropdown

```lia-code-sample
form .localization-language{
display:none;
}

```

best,

Anton

---

<div class="post-metadata">

**Author:** ![JaroB](https://avatars.discourse-cdn.com/v4/letter/j/e19adc/32.png) [@JaroB](https://community.hubspot.com/u/JaroB)\
**Post date:** [August 2, 2024, 9:09am UTC](https://community.hubspot.com/t/multi-language-subscription-preferences-page/45283/17 "2024-08-02T09:09:28Z")

</div>

Hi @Anton ,

thnak you for advice, it works.

Have a nice day,

Best regards

Jaro

---

<div class="post-metadata">

**Author:** ![mcasper78](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/mcasper78/32/78471_2.png) [@mcasper78](https://community.hubspot.com/u/mcasper78)\
**Post date:** [September 7, 2025, 10:59pm UTC](https://community.hubspot.com/t/multi-language-subscription-preferences-page/45283/18 "2025-09-07T22:59:22Z")

</div>

Disappointing that this thread is marked solved. It isn’t. We’re running an Enterprise multi-brand account for a household cpg brand and this many years later, there’s still no way for HubL to detect the page language from the url.

---

<div class="post-metadata">

**Author:** ![chighsmith](https://avatars.discourse-cdn.com/v4/letter/c/77aa72/32.png) [@chighsmith](https://community.hubspot.com/u/chighsmith)\
**Post date:** [September 8, 2025, 2:35pm UTC](https://community.hubspot.com/t/multi-language-subscription-preferences-page/45283/19 "2025-09-08T14:35:36Z")

</div>

Hi @mcasper78,  
Thank you for posting to the Community!  
We understand your frustration and appreciate you raising this ongoing concern.  
If this functionality is important to your team, please consider posting your feedback in the [Ideas Forum](https://community.hubspot.com/t5/HubSpot-Ideas/idb-p/HubSpot_Ideas). Submitting your use case there ensures it’s visible to the Hubspot Product team, who regularly review ideas for future platform improvements.

Thank you for sharing your experience and let me know if you have any other questions 🙂  
Cassie, Community Manager
