Welcome to the
WalkMe Help Center
Please log in to continue
Please log in to continue
The auto-toggle method is the recommended way to implement WalkMe Multi-Language on your website or platform. This method involves WalkMe detecting a language variable on your website to determine which language WalkMe text should appear in.
The following steps take you through implementing auto-toggle.
On external websites, you should implement the JavaScript function walkme_get_language on your website, and this function will return the Language Custom Identifier(s) you specified in the admin.walkme.com during the initial language setup.
In order to implement the walkme_get_language function, you must first have a language variable at the window level that detects the end-user's language. Ask your IT team for the following:
<script type="text/javascript">
window.walkme_get_language = function (){
if (window.langCode)
{
if (window.langCode == 'EN') {
return '';
}
else if (window.langCode == 'FR') {
return 'FR';
}
else {
return ''
}
}
}
</script>
window.langCode), to the language variable name your IT team created
window.langvar as our IT team's variable name throughout this example<script type="text/javascript">
window.walkme_get_language = function (){
if (window.langvar)if (window.langCode == 'EN') {
return '';
}
change it to this:
if (window.langvar == 'EN') {
return '';
else if (window.langvar == 'FR') {
return 'FR';
}
else {
return ''
}
Your final result should look like this:
<script type="text/javascript">
window.walkme_get_language = function (){
if (window.langvar)
{
if (window.langvar == 'EN') {
return '';
}
else if (window.langvar == 'FR') {
return 'FR';
}
else {
return ''
}
}
}
</script>
In order to function correctly, Multi-Language code must be placed in the head tag of every page on which WalkMe will appear.