Last updated: June 28, 2023
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.
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.
To set the primary language for a connected domain:
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.
By default, any links on the translated version of a page will redirect to a version of the destination page in the same language. Language specific redirects do not apply to links in menu modules and will only occur if an appropriate translation is available.
HubSpot does not use geoIP or a browser's set language to determine which variation of a page should render. For example, if the user's browser is set to french, this does not mean that your pages will automatically display in french. However, if a visitor is looking at a page in french, then clicks on a link to another page that has a translated french version, the visitor will be routed to the translated page.
You can change this default behavior in domain settings:
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.