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, you must use the Localization feature with placeholders. Follow these steps:
Use Placeholders in Your HTML: In your HTML code, replace the text you want to translate with placeholder keys wrapped in double curly braces. For example, instead of "Hello", use
{{greeting}}.<h1>{{greeting}}</h1> <p>{{welcome_message}}</p>Define Translations in the Localization Tab:
- Go to the Localization tab within the email editor.
- For each placeholder key (e.g.,
greeting), add the corresponding translation for each language you support.
Example JSON for the Localization tab:
{ "default": { "greeting": "Hello", "welcome_message": "Welcome to our newsletter!" }, "es": { "greeting": "Hola", "welcome_message": "¡Bienvenido a nuestro boletín!" }, "fr": { "greeting": "Bonjour", "welcome_message": "Bienvenue sur notre newsletter !" } }
When the email is sent, the system will automatically replace the placeholders with the correct text based on each recipient's language tag.
Comments
0 comments
Please sign in to leave a comment.