How to Set up a Multilingual Iterable Preference Center

A Multilingual Iterable Preference Center requires custom code and setup by Digioh.

The process is as follows:

1. Create a page in the platform for each language. For instance, if you have 10 languages, you will need 10 pages. Each page’s URL path should match the corresponding language value in Iterable. So if the language is “en-US” the path must be “/en-US”

2. Fully integrate each page with Iterable by following our standard setup instructions

3. Send the Digioh team a list of all language/locale values and the page it should be mapped to (for example language=en should go to “English” page). The Digioh team will write the routing code in the Master Custom JS section.

Here is an example of what the Master Custom JS code may look like for language routing (this can vary based on your implementation).

let locale = getUrlParam("language");
let email = getUrlParam("email");

if(locale && locale.length) {
    locale = decodeURIComponent(locale);
    
    if(window.location.pathname.indexOf(locale) == -1) {
        window.location.href = `https://pref.yourdomain.com/${locale}?email=${email}`;
    }
}
We will help you set this up, so if you wish to add multilingual functionality to your preference center, please let us know!