The HTML editor uses a single, unified HTML structure for all languages. The language switcher in the editor is for previewing localizations, not for creating separate HTML versions for each language — pasting new HTML code for a different language will overwrite the existing code.
To create a multi-language email in the HTML editor, use the Localization feature with placeholders.
1. Use placeholders in your HTML
Replace each piece of translatable text with a placeholder. In the HTML code editor a localization placeholder has the form {{key|text|}} — the key, a pipe, the content type, and a closing pipe. A bare {{key}} is not substituted.
<h1>{{greeting|text|}}</h1>
<p>{{welcome_message|text|}}</p>2. Define translations in the Localization tab
- Go to the Localization tab within the email editor.
- Add a
defaultblock plus one block per locale code you support, using the same keys as your placeholders.
{
"default": {
"greeting": "Hello",
"welcome_message": "Welcome to our newsletter!"
},
"es": {
"greeting": "Hola",
"welcome_message": "\u00a1Bienvenido a nuestro bolet\u00edn!"
},
"fr": {
"greeting": "Bonjour",
"welcome_message": "Bienvenue sur notre newsletter !"
}
}When the email is sent, the system replaces each placeholder with the text for the recipient's language, falling back to the default block when the recipient's language is missing. Every key used in the HTML should exist in default so nothing renders empty.
Comments
0 comments
Please sign in to leave a comment.