Can I localize the text of my Journeys?

Client-side

You can easily customize the Journey text dynamically client-side using setBranchViewData and by reading the browser's language.

javascript var lang_code; if (navigator.languages && navigator.languages.length>0) { lang_code = navigator.languages[0]; } else if (navigator.language) { lang_code = navigator.language; } // Change Journeys text if language is Spanish (ES) if (lang_code == 'es') { branch.setBranchViewData( { data: { "$journeys_title": 'Mi App', "$journeys_description": 'Mi descripción', "$journeys_button_get_has_app": 'Avrir', "$journeys_button_get_no_app": 'Ver', } } ); }

Updated 3 months ago



Can I localize the text of my Journeys?


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.