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": 'Abrir', "$journeys_button_get_no_app": 'Ver', } } ); }
Updated about 3 years ago
Additional Resources