Campaign Localization
You can localize your campaigns for different markets.
For example, if your website has an announcement only for Danish and American users, you can achieve this by launching the campaign in Danish and English with ease and efficiency without having to design a brand new campaign for these two regions. You can use the same campaign design and translate it explicitly for Danish and American users.
Pre-requisites
Section titled “Pre-requisites”You must define locales under the Localization section. Otherwise, the localization dropdown will not be visible.
Localizing Content
Section titled “Localizing Content”Let’s suppose you defined these three locales: en, dk, and en-dk.
-
Switch to a specific locale code on the campaign’s Design page. You can select the desired locale from the dropdown Current Locale given at the top of the campaign preview screen.

-
Select the design component from the left side that you want to edit/translate, and enable its Localize toggle in the right panel. Now, you can enter the translated text in the editor. For example, in the image shared below, for the Danish locale, a headline text is provided in the same language.

-
Now, when the campaign is published, the translated campaign will be displayed for the Danish locale for the URL
https://demo.fluentos.com/da-dk
Localizable Properties
Section titled “Localizable Properties”You edit the following design properties when localizing for different languages.
- Text: Translation and formatting are allowed. You can also add a new text component to the design. Turn on the Localize toggle to customize.
- Images: You can change the images for different versions and add a new image to the design. To customize, turn on the Localize toggle.
- Step dimensions: The width and height of the step can be changed. Different locales can have different word lengths, such as French and Dutch, compared to English. You need to turn on the Localize toggle to customize for a specific locale version.
- Input Text: Placeholder text for input fields can be translated. Enable the Localize toggle to do so.
- Input Validation Message: You can also localize the validation message. It is shown when a required field is left empty, or when a visitor types an email or a date that is not valid. If you leave it empty, a date field shows its entry format instead and an email field shows an example address. Other field types only get a red outline when the message is empty.
- Button Label Text: The label that appears on the button as its name can also be localized.
- Button URL: The button URL can also be localized for a specific locale.
Input fields also have a Label style setting, which decides how the placeholder text is shown. It is set once per field and uses the translated placeholder in every locale.
- None (default): the placeholder sits inside the field and disappears as soon as the visitor starts typing.
- Tag: when the visitor clicks into the field, the placeholder moves up onto the field’s top border as a small tag and stays there, so visitors can still see what the field is for after filling it in.
- Inside: the placeholder moves to the top of the field in a smaller size and stays there while the visitor types.
Examples
Section titled “Examples”Please refer to the following two images, which are snapshots of the campaign designs for the default and French locales of the same campaign.
It can be noticed that in the English language text in the default version takes two lines, but the same text takes three lines when translated to French in the second image below. Therefore, the design step with the French locale has the text size 28 px as compared to that in the default version (34 px).
Default: The following image demonstrates the campaign design with English text size.

French: The following image demonstrates the campaign design with French text size.

The next two images are the localized version (Danish) of the same campaign, with the image, text, input field, and button localized.
Input: The image below demonstrates how input text and its validation message can be localized.

Button: In the image below, the button and its URL are localized.

Placeholders for the visitor’s language and country
Section titled “Placeholders for the visitor’s language and country”Instead of writing one link or text per language, you can let the visitor’s browser fill in the language or the country:
| Placeholder | Becomes | Example |
|---|---|---|
{{locale}} |
the language code of the market the page matches, such as da or en-gb; default when the page matches none of your markets |
https://shop.com/{{locale}}/sale |
{{locale:en}} |
the same, but en instead of default when the page matches none of your markets; use this in texts and links so visitors never see default |
https://shop.com/{{locale:en}}/sale |
{{country}} |
the visitor’s country as a two-letter code, such as DK; empty when it is not known |
https://shop.com/sale?country={{country}} |
{{country:DK}} |
the visitor’s country, or DK when it is not known (for example behind a privacy network), so a link never ends up with an empty part |
https://shop.com/{{country:DK}}/sale |
{{dataHub:KEY}} |
a value your website pushed to the DataHub | Hi {{dataHub:firstName}} |
They work in Text components (also inside links in the text), Button text and Link URL, the labels of checkboxes and choices, and pre-filled field values. The custom scripts of buttons and campaign callbacks understand them too. The texts inside games and countdowns (Spin the Wheel, Scratch Card, Pick a Box, Countdown) do not: there the braces are shown as written. Write them exactly as shown, without spaces inside the braces.
In the builder preview, {{locale}} and {{locale:en}} show the language you are editing; in the default language {{locale:en}} shows its fallback, en, and {{locale}} stays as written. {{country:DK}} shows its fallback, DK. {{country}} without a fallback stays as written, because the builder cannot know where a visitor will be.