Customize your site to support multiple languages
Say you have two versions of your website, one in English and one in German. How do you use the same widget on both sites, but specify the appropriate language for each? Now you can just by adding a little extra configuration to your Drift snippet...
Notice this little bit at the end that we added manually...
Make sure you grab the latest snippet for your Drift account from this page to use this new config method.
Note:
Any auto-translate bot skills will not translate. In order to translate these you must upgrade to the Enterprise pricing tier.
If you just want to change the language of your widget on all sites, there's no custom code necessary. Head on over to this doc to see how.
Supported language codes
- da ➡ Danish
- de ➡ German
- de-DE ➡ German
- en ➡ English
- es ➡ Spanish
- et ➡ Estonian
- fi ➡ Finnish
- fr ➡ French
- hi ➡ Hindi
- hr ➡ Croatian
- hu ➡ Hungarian
- is ➡ Icelandic
- it ➡ Italian
- ko ➡ Korean
- nb ➡ Norwegian
- nl ➡ Dutch
- pl ➡ Polish
- pt ➡ Portuguese
- pt-PT ➡ Portuguese (Portugal)
- pt-BR ➡ Portuguese (Brazil)
- ro ➡ Romanian
- ru ➡ Russian
- sl ➡ Slovenian
- sr ➡ Serbian
- sv ➡ Swedish
- th ➡ Thai
- vi ➡ Vietnamese
- zh ➡ Chinese
Use different languages for different web pages
You might have a website that services two different countries. If you've made this distinction with URL paths rather than sites, we can specify the language Drift is loaded in. For example, if we had a German version of Drift's blog on `www.drift.com/de/blog and an English version on www.drift.com/en/blog, we can specify by writing:
Notice this custom bit:
Welcome and Away Message Configuration
When using a language separate from your account default configuration, you will need to update the Welcome Message and Default Greeting content as well. Here is the configuration option to set that up:
More details on the difference between the Welcome Message Playbook and the Default Greeting are here.
Playbooks Configuration
Lastly, you can setup Playbooks with different languages to apply to the different pages of your site. These will be a manual process where you have to translate the message yourself and use our display conditions to show the various playbooks on the appropriate host URLs or URL paths.
Comments
0 comments
Article is closed for comments.