Hi all
it’s already there and can be implemented in 5 easy steps:
- You can add translations for an existing email subscription type in your email settings. Translations will render based on the language settings of your contact’s web browser.
- Create a global module for pages and place the HubL Email Subscriptions tag in your global module, add fields for all parameters and connect them with the tag.
{% email_subscriptions "email_subscriptions"
label="Subscription Preferences",
header="{{ module.header }}",
resubscribe_button_text="{{ module.resubscribe_button_text }}",
unsubscribe_single_text="{{ module.unsubscribe_single_text }}",
subheader_text="{{ module.subheader_text }}",
unsubscribe_all_unsubbed_text="{{ module.unsubscribe_all_unsubbed_text }}",
button_text="{{ module.button_text }}",
unsubscribe_all_option="{{ module.unsubscribe_all_option }}",
unsubscribe_all_text="{{ module.unsubscribe_all_text }}".
%}
3. Create a HTML/HubL Email Subscription Preferences Template and add the module to the <body>
<!--
templateType: email_subscription_preferences_page
isAvailableForNewContent: true
-->
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>{{ content.html_title }}</title>
<meta name="description" content="{{ content.meta_description }}">
{{ standard_header_includes }}
</head>
<body>
{% module "module_16564974484613" path="<PATH_TO_YOUR_GLOBAL_MODULE", label="Email Preferences" %}
{{ standard_footer_includes }}
</body>
</html>
4. Edit your global module and add “Preferred language” smart rules for every language you want to cover. Enter the translations for every language. Translations will render based on the language settings of your contact’s web browser. Combined with step 1, your solution is almost ready.
5. Select your new template as “Subscription Preference page” template under Settings > Marketing > Email > Subscriptions.
https://app.hubspot.com/settings/<YOUR_PORTAL_ID>/marketing/email/subscriptions
Here again a screenshot for better understanding. The blue area is solved in step 1, the green area in steps 2 to 5.
I hope this helps!
Best
Arno
