Check 25.10 · Translating SEO elements

Translate CTAs and forms

Translate call-to-action buttons, labels, validation messages and form confirmation emails, on WordPress, Shopify, HubSpot, Laravel or Next.js.

Priority
Important
Difficulty
Intermediate
Estimated time
2 h to 2 days
Free, no account: your progress is saved in this browser.

Ask an AI to check this point on your site

Opens the assistant with a ready-made question: this check, its goal and your site URL.

For Gemini, Copilot or another assistant, copy the question. The link opens the chosen service directly: nothing goes through this site.

In short

Call-to-action buttons (CTAs) and forms are the texts that turn a visit into a contact, a sign-up or an order. They are easy to get wrong in translation because they are scattered: a label in the page, a placeholder in the form plugin, an error message in the browser or the framework, a confirmation email on yet another screen. Once this check is done, each version offers CTAs written for its market and forms entirely in its language, from display through to the email received after submission.

Why it matters

A half-translated form shows at the worst moment: a German visitor fills in a form in German, misses a field and gets “Veuillez renseigner ce champ” or a generic English message, then a confirmation email in French. That is often where the lead is lost. A CTA translated word for word causes a similar problem: “Découvrir” becomes a vague verb in another language, or does not match the expected register (formal or informal address, impersonal form).

These texts also matter to search engines. Button and link labels are part of the visible content from which Google determines the language of a page; buttons and fields left in French on a German page produce a mixed-language page. For AI agents, a form whose fields have a clear label in the language of the page and explicit error messages is easier to understand and fill in; see provide clear error messages (opens in a new tab).

What it improves

  • Conversion in each market: fewer drop-offs caused by a misunderstood label or an error in another language.
  • Data quality Phone, address and date formats suited to the country, so fewer invalid entries.
  • Accessibility Labels, hints and error messages that screen readers read in the language of the page.
  • Language consistency of the page, which avoids mixed-language pages.
  • Rankings No direct effect. The effect is indirect, through the experience and consistency of the page.

How to check

For each form and each language, do four passes in a browser set to a language other than that of the page (this is how browser errors come to light):

  1. Display: labels, placeholders, hints, list options, consent checkbox, link to the privacy policy in that language, submit button.
  2. Empty submission: every error message must be in the language of the page.
  3. Invalid input: email address without @, phone number too short, postal code in the wrong format.
  4. Successful submission: confirmation message, thank-you page, email received by the visitor, notification received by the team (stating the visitor's language).

For a quick list of a page's texts, paste this into the console:

[...document.querySelectorAll('button, input[type="submit"], a[class*="btn"], a[class*="button"], label, input[placeholder], textarea[placeholder], [aria-label], option')]
  .map((el) => (el.getAttribute('aria-label') || el.placeholder || el.value || el.textContent).trim())
  .filter((text, index, all) => text && all.indexOf(text) === index);

Paste the list into Google Sheets and flag texts to review with =DETECTLANGUAGE(A2). On two-word labels, detection is often wrong: review the list with a speaker of the language.

How to implement

Before you start

Inventory every text in a form, not just the ones you see on screen. Fictitious example of a quote request form translated into German:

Element fr de Where it is set
Entry CTA Demander un devis Angebot anfordern Page or block
Label Adresse e-mail E-Mail-Adresse Form
Placeholder [email protected] [email protected] Form
Hint Nous répondons sous 48 h ouvrées Wir antworten innerhalb von 2 Werktagen Form
Empty field error Indiquez votre adresse e-mail Bitte geben Sie Ihre E-Mail-Adresse ein Plugin, framework or browser
Consent J'accepte la politique de confidentialité Ich akzeptiere die Datenschutzerklärung Form, link to /de/datenschutz/
Button Envoyer ma demande Anfrage senden Form
Confirmation Merci, votre demande est envoyée Vielen Dank, Ihre Anfrage wurde gesendet Plugin or thank-you page
Email to the visitor Subject and body in French Subject and body in German Notification settings

Writing rules:

  • CTAs: start from the expected action, not from the source word. Keep the register of the version (the formal “Sie” in German for a B2B site, for example) and the same verb form across the whole site. Test the length: a translated button often overflows on mobile; see test for text overflow (opens in a new tab).
  • Fields adapted to the country, not just translated: order of first and last name, a “State” or “Province” field depending on the country, postal code format, dialling code. See adapt phone numbers (opens in a new tab) and adapt date and number formats (opens in a new tab).
  • Lists: countries and options sorted in the alphabetical order of the language, with their names in that language.
  • Consent statements: have them approved for each country; the link points to the privacy policy in that language.
  • Do not translate technical values: the tokens of the autocomplete attribute (given-name, email, postal-code, tel) and the values sent to the server stay identical in every language.
<form action="/de/angebot" method="post" lang="de">
  <label for="email">E-Mail-Adresse</label>
  <input id="email" name="email" type="email" autocomplete="email" required
         placeholder="[email protected]" aria-describedby="email-hint">
  <p id="email-hint">Wir antworten innerhalb von 2 Werktagen.</p>

  <label for="phone">Telefon (optional)</label>
  <input id="phone" name="phone" type="tel" autocomplete="tel" inputmode="tel" placeholder="+49 30 1234567">

  <button type="submit">Anfrage senden</button>
</form>

Browser validation messages. The messages shown for the required, type="email" or pattern attributes are generated by the browser, usually in the language of its interface, not that of the page. To control them, replace them with your own messages:

const messages = {
  fr: { valueMissing: 'Ce champ est obligatoire.', typeMismatch: 'Vérifiez le format saisi.' },
  de: { valueMissing: 'Bitte füllen Sie dieses Feld aus.', typeMismatch: 'Bitte überprüfen Sie das Format.' },
  en: { valueMissing: 'Please fill in this field.', typeMismatch: 'Please check the format.' },
};
const text = messages[document.documentElement.lang.slice(0, 2)] ?? messages.fr;

document.querySelectorAll('form input, form textarea, form select').forEach((field) => {
  field.addEventListener('invalid', () => {
    if (field.validity.valueMissing) {
      field.setCustomValidity(text.valueMissing);
    } else if (field.validity.typeMismatch || field.validity.patternMismatch) {
      field.setCustomValidity(text.typeMismatch);
    }
  });

  field.addEventListener('input', () => field.setCustomValidity(''));
});

The reset on input is essential: as long as a custom message is set, the field stays invalid and the form will not submit. Server-side validation must also return its messages in the language of the page.

CAPTCHAs: reCAPTCHA shows its widget in the detected language unless you pass the hl parameter (https://www.google.com/recaptcha/api.js?hl=de); Cloudflare Turnstile follows the browser language by default, and its language option (or the data-language attribute) lets you set it.

WordPress

Versions WordPress 6.8 to 7.1; Contact Form 7 6.x, WPML 4.x, Polylang 3.x, WooCommerce 10 and 11, November 2026.

  • Contact Form 7 with WPML: the WPML Multilingual for CF7 add-on lets you translate a single form, its field tags, the Messages tab and the email templates. Use the same shortcode on each version of the page.
  • Contact Form 7 with Polylang: create one form per language, with its own messages and emails, and insert each form's shortcode in the page of its language.
  • Gravity Forms and WPForms with WPML: the Gravity Forms Multilingual and WPForms Multilingual add-ons send forms to the WPML Translation Dashboard: fields, confirmations and notifications. Remaining strings are in WPML > String Translation.
  • WooCommerce: cart, checkout and email texts come from WooCommerce's language files, installed automatically with the site language. Order emails go out in the customer's language if your multilingual plugin supports it: check by placing a test order in each language.
  • Page buttons and CTAs: these are content; they are translated with the page. Theme CTAs (“Read more”, “Add to cart”) come from its language files: complete them with Loco Translate.

Shopify

Versions Shopify admin and Translate & Adapt app, all plans, November 2026.

The texts of the contact form, the newsletter sign-up and the theme buttons (“Add to cart”, “Send”) are theme strings: translate them in Translate & Adapt, in the theme content section. CTAs entered in sections (the text of a banner button) are translated in the same app, with the section content.

Once a language is published, checkout and notification emails are shown in the customer's language. Edited notifications are translated in Translate & Adapt; check each one, because customized templates are not always picked up automatically. For a form added by a third-party app, translation is done in the app itself.

PrestaShop

Versions PrestaShop 8 and 9.

The labels of the contact form, the checkout and the emails are translated in International > Translations: theme translations for displayed texts, installed module translations for module forms, email translations for email templates. Button texts entered in content modules have one field per language.

Magento

Versions Magento Open Source and Adobe Commerce 2.4.

Form labels and validation messages go through the theme's or modules' i18n/xx_XX.csv files and the installed language packs. Transactional email templates are created in Marketing > Communications > Email Templates, then assigned to each store view in Stores > Configuration > Sales > Sales Emails, with the scope set to the language's store view.

HubSpot

For forms created with the legacy editor, open the forms list (Marketing > Forms), hover over the form, click Actions, then “Create translation”. HubSpot automatically translates error messages and the labels of unedited common properties; help text, placeholder and default value must be translated by hand. The new forms editor handles translations differently: follow the HubSpot documentation for your editor.

Laravel

Versions Laravel 11 to 13.

Publish the language files, then create those of each language:

php artisan lang:publish

The command creates lang/en/validation.php. Copy it to lang/de/validation.php and translate the messages, or start from the community translations of the Laravel Lang project. Give fields readable names in the attributes key:

// lang/de/validation.php (excerpt)
return [
    'required' => 'Das Feld :attribute ist erforderlich.',
    'email' => ':attribute muss eine gültige E-Mail-Adresse sein.',

    'attributes' => [
        'email' => 'E-Mail-Adresse',
        'phone' => 'Telefonnummer',
    ],
];

Validation messages are then output in the current language, provided the language is set by a middleware before validation. Send emails in the visitor's language, even when they go out from a queue:

Mail::to($request->input('email'))
    ->locale(app()->getLocale())
    ->send(new QuoteRequestReceived($quote));

Also store the language with the request, so the team replies in the right language.

Next.js

Versions Next.js 15 and 16 (App Router), next-intl 4.

With next-intl, read labels and messages from the language's message files, including those of server-side validation:

// app/[locale]/devis/actions.ts
'use server';

import { getTranslations } from 'next-intl/server';

export async function submitQuote(_: unknown, formData: FormData) {
  const t = await getTranslations('QuoteForm');
  const email = String(formData.get('email') ?? '');

  if (!/^[^\s@]+@[^\s@]+$/.test(email)) {
    return { error: t('errors.email') };
  }

  // Save and send the email in the language of the page…
  return { success: t('success') };
}
{
  "QuoteForm": {
    "email": "E-Mail-Adresse",
    "submit": "Anfrage senden",
    "errors": { "email": "Bitte geben Sie eine gültige E-Mail-Adresse ein." },
    "success": "Vielen Dank, Ihre Anfrage wurde gesendet."
  }
}

The second block is an excerpt from messages/de.json. If you use a schema library such as Zod, pass it messages from t() rather than its default English messages.

Common mistakes

  • Browser error messages in the language of its interface, never tested from a browser set to another language.
  • Confirmation email in the default language, because the notification was set up only once.
  • Consent link to the French privacy policy from every version.
  • CTAs translated word for word, with a register that changes from one page to the next.
  • Buttons as images or CTAs embedded in a graphic banner, forgotten during translation.
  • Fields not adapted to the country: a five-digit postal code forced on Switzerland, a “Département” field for Germany.
  • Translated technical values: altered autocomplete tokens or option values, which break autofill or server-side processing.

Frequently asked questions

Why do my form's error messages stay in English?

The messages triggered by the HTML attributes required, type="email" or pattern are produced by the browser, usually in the language of its interface, not that of the page. A visitor whose browser is in English therefore sees them in English on a German page. Replace them with your own messages using setCustomValidity, or turn off native validation and display translated errors, on both the client and the server.

Should CTAs be translated word for word?

No, a CTA is rewritten from the expected action and the conventions of the market. A literal translation often produces a vague verb or an unsuitable register, for example informal address on a German B2B site. Keep the same form and tone across the whole version, check that the button fits on mobile, and test important variants with a native speaker.

Should confirmation emails be translated?

Yes, the email sent after a form or an order is part of the journey and must go out in the language of the page the visitor used. In most tools it is a setting separate from the form: WPML and form plugin notifications, Translate & Adapt on Shopify, Laravel's locale method. Test a real submission in each language, and store the language with the request so you can reply correctly.

Do translated forms affect SEO?

Not directly: neither the labels nor the messages of a form are ranking factors. They matter indirectly, because visible text is used to determine the language of a page, and a form left in another language produces a mixed-language page. The main effect is still conversion: a visitor who understands every field and every error is more likely to finish.

Updated on

Topic checklist (PDF)

And now?

In the “Translating SEO elements” topic

  1. Translate titles and meta descriptions
  2. Translate H1/H2/H3 headings
  3. Translate the main content
  4. Translate slugs
  5. Translate ALT text and captions
  6. Translate anchors, menus and footer
  7. Translate breadcrumbs and FAQs
  8. Translate text properties in structured data
  9. Translate Open Graph and set og:locale
  10. Translate CTAs and forms
  11. Translate error messages and 404 pages
  12. Translate cookie banners
  13. Translate downloadable documents
  14. Translate subtitles and transcripts
  15. Translate dynamic content and CMS plugins
  16. Check text embedded in images
  17. Detect untranslated strings