Box language in the embed
The texts of embedded boxes appear in your visitors' language – chosen automatically from the browser or fixed, in eleven languages. Offers, shop and currency still follow the country.
A visitor from France with a French browser should read the boxes in French, not in German. That's why the boxes of the embed (without WordPress) translate their texts by themselves: labels, buttons, notes such as "Ad", the affiliate and Amazon notices, the price date, condition, packs, price history, accessories and comparison.
Which languages there are
German, English, French, Spanish, Italian, Dutch, Polish, Swedish, Turkish, Portuguese (Brazil) and Japanese. Not all boxes are fully translated into all languages: where a translation is missing, the text appears in English – for the time being this applies to some special boxes, for example the advisor, calculators and contract offers. The emails of the price alert and the "back in stock" notification exist in German and English; other languages get English.
Country and language are separate
The language only determines the texts. Which offers, which shop and which currency a visitor sees still depends on their country (see "Offers by visitor country"). A visitor in Germany with an English browser therefore sees English texts but the offers for Germany.
How to set the language
By default affilinode chooses the language itself. You can control it for each website:
- Open "Websites", choose the website and go to "Settings".
- Find the section "Box language".
- Leave "Set a language" on "Automatic (browser language)" so every visitor sees the boxes in their browser's language – or choose a fixed language so all visitors see the same one.
- With "Allowed languages" you limit the automatic choice to certain languages. Empty means: all. A visitor whose browser language isn't allowed gets the next allowed language of their browser.
- Save the setting.
The order of the choice
With "Automatic" affilinode checks in turn until it finds a supported and allowed language:
- An explicit choice in the code: `data-lang="fr"` on the embed's script tag. It applies regardless of the website's settings.
- The website's fixed language, if you have set one.
- The browser's languages in the order the visitor has set them.
- The page language (the page's `lang` attribute), as with forums and Ghost.
- The language of the visitor's country, if the website's country detection is on.
- The website's default language and finally English.
WordPress plugin
The WordPress plugin shows the texts in the language of the WordPress page, not the browser's. That's because pages are often delivered from a cache and aren't created individually for each visitor. More under "Settings of the WordPress plugin".
Frequently asked questions
- **Why does a visitor see prices in euros although the texts are English?** The country determines offers and currency, the language only the texts.
- **How do I force a language on a single page?** Set `data-lang` in the embed's script tag on that page.
- **A box appears in English although the language is right?** That box isn't translated into the language yet; the text falls back to English.