# How to Make a Multilingual Popup for Your Website

> Build one popup that shows each visitor their page's language: check your site's language tags, translate every line, keep codes as they are, and test it.

By Aleksan Aharonyan, November 17, 2026. Original: https://popupgenius.app/blog/multilingual-popup/

A multilingual popup is one popup that shows its text in the language of the page the visitor is reading, instead of one separate popup per language. You write it once, translate each line, and the popup picks the right translation from the page. For that to work, your site has to say which language each page is in, so that is where the setup starts.

## Key takeaways

- Check that every language version of your site declares its language in the page's code before you translate anything, because that is what the popup reads.
- Finish the popup's wording in your main language first, since changing the original text later can undo its translations.
- Translate every line the visitor sees, including the form placeholders, error messages and success message, but keep discount codes and prices exactly as they are.
- Test each language on its real page, and one page in a language you did not translate, before you publish.

## One translated popup or one popup per language

There are two ways to show a popup in several languages, and the choice decides how much work every later change costs.

**One popup with translations.** The design, triggers and targeting exist once. Only the text changes per language. A new button color or a new trigger applies everywhere at the same time, and analytics stay in one place. This is the right choice when the offer is the same in every language.

**One popup per language.** Each language gets its own popup, shown only on its own pages through a page rule. Every design change has to be made several times, and the copies drift apart. This is worth it only when the offer itself differs by language, for example a different lead magnet for each country.

Most sites want the first. The rest of this guide sets it up, and the last step shows how to add a page rule when one language needs its own offer.

## Step 1: check how your site marks each page's language

A page declares its language in its HTML tag, as an attribute such as `lang="fr"` or `lang="de-AT"`. Browsers, screen readers and search engines read it, and a translated popup can read it too. If it is wrong, the popup shows the wrong language however good the translation is.

To check, open a page in each language, view the page source, and look at the first `html` tag near the top. You want a different value on each language version.

- **WordPress** sets the attribute from the site language. Multilingual plugins usually change it per translated page, but check one page in each language rather than assuming.
- **Wix, Squarespace and Webflow** have their own ways of publishing a site in more than one language. Look at the source of each language version after you publish it.
- **Your own code** needs the attribute set by your templates for each language.

If two language versions show the same value, fix that first. Google's guidance on [managing multi-regional and multilingual sites](https://developers.google.com/search/docs/specialty/international/managing-multi-regional-sites) explains how language versions are usually organized, and the same structure is what makes a page rule per language possible later.

## Step 2: finish the popup in your main language

Write and design the popup completely in your main language before translating a word. Every translation is tied to a line of original text, and when you change that line, the translation usually has to be done again.

Settle the headline, the button labels, the form fields and the success message. If the popup has several steps, such as an email form followed by a thank-you, write all of them. A popup you plan to change next week is a popup you will translate twice.

If you are still deciding when the popup opens, the guide to [email popup timing](/blog/shopify-email-popup-timing/) covers triggers by page type, and the timing works the same in every language.

## Step 3: translate every line the visitor sees

A popup has more text than its headline. Translate all of it, or the visitor meets a sentence in your language halfway through the signup:

1. Headline, subheading and body text.
2. Buttons, including the decline link, such as "No thanks".
3. Form placeholders: email, name, phone.
4. Error messages, such as an invalid email address.
5. The success message and any button after it.
6. Small text: a countdown label, a teaser button, a footer line.

In [PopupGenius](https://app.popupgenius.app/account/signup), for on-brand upsell and email popups on your website, the Translations page lists every line of a popup next to a column for the chosen language, including form texts, error messages and the teaser text, and it offers about 180 languages on a website account. Translations are part of the paid plans. It is added to a site with one script tag before the closing body tag, and the free plan needs no card.

A line you leave empty shows the original text, so a half-translated popup still works. It just looks unfinished.

## Step 4: keep codes, prices and placeholders as they are

Some text in a popup must look exactly the same in every language, because the visitor has to type it or the system fills it in.

- **Discount codes.** A code is checked character by character at checkout. A translated code is a code that does not exist. Keep one code for every language unless you create a separate code for each.
- **Prices.** A price comes from your product, not from your copy. Write the sentence around it, not the number.
- **Placeholders.** Some tools fill values into the text, such as a saving or a time, using markers in curly braces. Keep those markers unchanged in the translation, or the value disappears.
- **Brand and product names.** Decide once whether they stay in your language, and apply that everywhere.

PopupGenius never offers prices and discount codes for translation, and it marks lines that contain placeholders with a reminder to keep them.

## Step 5: use machine translation as a first draft

Machine translation is a fast way to fill a popup's lines, but a popup is short marketing copy, where tone matters more than in a manual. Use it to get a draft, then have someone who reads the language check it.

Look for three problems in the draft. Button labels that came out too long for the button. A formal or informal "you" that does not match the rest of your site. And word-for-word phrases that read like a translation, which visitors notice at once.

In PopupGenius, "Auto-translate" fills the empty rows of one language with AI and leaves rows you already translated alone; it uses AI credits, while typing translations by hand does not. Because it fills only empty rows, you can correct a few lines by hand and run it again without losing your edits.

## Step 6: add a page rule if one language needs its own offer

When the offer itself differs by language, a page rule keeps each popup on its own pages. Many multilingual sites put the language in the address, such as `/fr/` or `/de/`, which makes the rule simple to write.

Use a rule that matches part of the address, such as "contains `/fr/`", rather than one that must match the whole address. That way one rule covers every French page. Give the main popup the opposite rule, every page except those containing `/fr/`, so the two never compete for the same page. Most popup tools show one popup per page, so overlapping rules mean one popup silently hides the other.

## Step 7: publish and test each language

Test on the real pages, with a fresh browser, after the translations are live. Many tools save changes to a published popup as a draft until you publish the update, and translations can be part of that draft.

1. Open a private window and visit a page in each translated language. Check every line, including the error message: enter a broken email address on purpose.
2. Visit a page in a regional variant if you have one, such as Canadian French. A regional page usually falls back to the main language's translation.
3. Visit a page in a language you did not translate, including your main language, and confirm it shows the original text.
4. If a page shows the wrong language, check its `lang` attribute first. A French page tagged as English shows the English text.

If you want to compare two versions of the translated copy, the [A/B testing checklist](/blog/shopify-ab-testing-checklist/) covers how long to run a test and what to compare.

## FAQ

### Does a multilingual popup detect the visitor's browser language?

It depends on the tool. A popup that follows the page's language shows the language of the page the visitor chose, which is usually what they want. Browser language is a common fallback when the page does not declare one, but a visitor reading your English page with a German browser should normally see English.

### Do I need a separate discount code for each language?

No. A code works the same whatever language the popup is in, so one code can serve every language. Create separate codes only if you want to tell the languages apart in your sales, or if the offer differs by country.

### What happens if I add a new language later?

The popup keeps showing the original text on pages in the new language until you translate it. Add the translation, publish the update, and test one page in that language. Nothing about the existing languages changes.
