Skip to content
Account Settings

Edit a domain’s language settings

Last updated: July 13, 2021

Applies to:

Marketing Hub  Professional, Enterprise
CMS Hub  Professional, Enterprise
Legacy Marketing Hub Basic

In your domain settings, you can set a primary language for each subdomain and domain hosted in HubSpot. This helps search engines identify the language of that domain's content and include that content in the correct group of search results. 

This will also determine the language for system pages using the same domain such as your email subscription preference page.  For example, if you set a domain to Spanish, the email subscription page for that domain will automatically be translated to Spanish.

Set the primary language for your domain

You can set the primary language for a domain during the domain connection process, or after it's been connected. Learn more about setting the primary language while connecting a new domain.

Please note: for a blog, the language in your blog settings will override the primary language chosen in this setting. Learn how to update your blog's primary language.

To set the primary language for a connected domain:

  • In your HubSpot account, click the settings icon settings in the main navigation bar.
  • In the left sidebar menu, navigate to Website > Domains & URLs.
  • Click the Language Settings tab.
  • In the Primary language column, click the Choose primary language dropdown menu next to your domain and select a language.
  • To include the two-letter abbreviation for your domain's primary language in page URLs, click to toggle the Use Prefix in Slug switch on. This will affect the URL of all pages on this domain. 

set-primary-language-for-domains

  • In the bottom left, click Save.

Please note: if you set your domain's primary language incorrectly, please contact HubSpot Support. It can take up to three business days to reset the primary domain language setting.

Manage language specific redirects

By default, any links on the translated version of a page will redirect to a version of the destination page in the same language. This will not apply to links in menu modules and will only occur if an appropriate translation is available. You can change this default behavior in domain settings:  

  • In your HubSpot account, click the settings icon settings in the main navigation bar.
  • In the left sidebar menu, navigate to Website > Domains & URLs.
  • Click the Language Settings tab.
  • Click to toggle the Enable Language Specific Redirects switch off. With this setting turned off, links will load the version of the page specified in the link, regardless of whether it matches the language of the original page. 

Please note: you can turn off this feature for an HTML element and its children by adding "hs-skip-lang-url-rewrite" as a class for that element. Learn more about applying a custom class to a module group.