Translate the Mailchimp Embed Code
by Intuit• Updated 2 months ago
Typically, the Mailchimp embedded form code is used as is. After you create your embedded signup form, copy the embed code and paste it into your website. To translate parts of the embedded form, you'll need to manually edit the code.
This is an advanced feature and is recommended for users familiar with custom coding. Our Support team won't be able to troubleshoot issues with your custom code, so we suggest you contact your developer or hire a Mailchimp Expert if you need assistance.
In this article, you'll learn how to translate the embedded form code.
Translate the embed code
English is the default language for field labels, the subscribe button, and the form's title. However, any fields you translate in the Form Builder appear in the embed code.
Form title
To translate the form title for your embedded form, follow these steps.
- Click Audience, then click Signup forms.
- Scroll to the Embedded form tile, then click Embedded form.
- Enter the name of your form, then click the Audience drop-down and choose the one you want to work with.
- Click Begin.
- Click Settings.
- Enter your translated title in the Form Title field.
A preview of your new form title shows as you make changes. If you want to hide the title from your form, toggle the slider off.
Form field labels and help text
To translate the form field labels and help text for your embedded form, follow these steps.
- Click Audience, then click Signup forms.
- Scroll to the Embedded form tile, then click Embedded form.
- Enter the name of your form, then click the Audience drop-down and choose the one you want to work with.
- Click Begin.
- Click Form Fields.
Click the form field you want to translate.
To edit a form field, it must be enabled. Toggle on a form field with the slider on the Form Fields tab, or with the Enabled slider in a specific form field.
In the Display name field, type your translated form field label.
This will change the form field name that displays on your embedded form. When you change a form field’s display name, the corresponding audience field value doesn’t change. To translate your audience fields, edit them manually in your audience settings.
In the Help text field, type your translated help text.
Translate the subscribe button
To translate your embedded form’s subscribe button, you'll need to copy and paste the embedded form code to your website’s HTML, then make changes manually.
Add embedded form code to your website
To copy and paste your embedded form code, follow these steps.
- Click Audience, then click Audience dashboard.
- Click the Manage Audience drop-down and choose Signup forms.
- Scroll to the Embedded form tile, then click Embedded form.
- Enter the name of your form, then click the Audience drop-down and choose the one you want to work with.
- Click Begin.
- Click Continue.
- Click Copy Code.
- Paste the code into your website’s HTML where you want the embedded form to appear.
Edit your embedded form code
To edit your embedded form code, search or browse your code for this HTML.
<input type="submit" value="Subscribe" name="subscribe" "id="mc-
embedded-subscribe" class="button"></div>
Then, replace "Subscribe" in the value element with the equivalent label in the translation language. For example:
<input type="submit" value="Suscribirse" name="subscribe" "id="mc-
embedded-subscribe" class="button"></div>
Excellent! You’ve translated your embedded form’s subscribe button.
Translate form error and success messages
The embedded form uses a validation plugin to present error and success messages when someone fills out your form. The translations for the error and success messages are statically generated when the embedded form is created. These default messages appear in the embed code only when your default language is set to a language other than English. The static messages can be translated manually within the form code.
We have translations available in the following languages (see the full list of localization files):
- Arabic (ar)
- Bulgarian (bg)
- Basque (eu)
- Catalan (ca)
- Chinese (cn)
- Czech (cn)
- Danish (da)
- Dutch (nl)
- Greek (el)
- Persian (fa)
- Finnish (fi)
- French (fr)
- Georgian (ge)
- German (de)
- Hebrew (he)
- Hungarian (hu)
- Italian (it)
- Japanese (ja)
- Kazakh (kk)
- Latvian (lv)
- Lithuanian (lt)
- Norwegian (no)
- Polish (pl)
- Portuguese- Brazil (ptbr)
- Portuguese- Portugal (ptpt)
- Romanian (ro)
- Russian (ru)
- Serbian (sr)
- Slovak (sk)
- Slovenian (sl)
- Spanish (es)
- Swedish (se)
- Taiwanese (tw)
- Thai (th)
- Turkish (tr)
- Ukrainian (ua)
- Vietnamese (vi)
When a subscribe attempt is passed along to our servers, additional messages are shown based on the default language you set in the Form Builder.
The additional messages also auto-translate based on the language settings of the contact’s browser.
Translate error messages
Translate non-English error messages
If your default language is set to a language other than English, follow these steps to translate error messages.
- Copy and paste your embedded form code to your website’s HTML.
- Locate the following line in your embedded form code:
- Replace any text values within quotation marks with your custom translations.
Translate English error messages
If your default language is set to English, follow these steps to translate the error messages.
- Copy and paste your embedded form code to your website.
- Download this file and copy the code.
- Paste the copied code before the < /script > tag at the end of your embedded form code.
- Replace the error messages within quotation marks with your custom translations.
Subscribers who fill out your embedded form may see HTML5 validation messages produced by their web browsers before the form data is passed along to Mailchimp's servers.
Translate the success message
- Click Audience, then click Audience dashboard.
- If you have more than one audience, click the Current audience drop-down and choose the one you want to work with.
- Click the Manage Audience drop-down and choose Signup forms.
- Scroll to the Form builder tile, then click Manage forms.
- Click the Forms and response emails drop-down, then select Confirmation thank you page.
- Click the Translate it tab.
- Translate any desired fields.
- Click Save Translation Settings.
All set! New contacts who sign up to join your audience will see your translated embedded form.
Sign in now for personalized help
See articles customized for your product and join our large community of QuickBooks users.
More like this
- Manage International Subscribers in Mailchimpby QuickBooks•Updated September 04, 2024
- Add an Email Campaign Archive to Your Websiteby QuickBooks•Updated September 04, 2024
- Determine Webpage Signup Locationby QuickBooks•Updated September 04, 2024
- Translate Content in an Emailby QuickBooks•Updated September 04, 2024