txt.me chatbox supports multiple locales and shows its content depending on the language presets the visitor has in its browser. You can set up the translation on your widget’s settings page. Here we have a small manual on adding and editing language presets for the widgets.
When initializing a chatbox
Using JS SDK
When creating a new chatbox, it is possible to pass an array of parameters including visitor’s data.
Use the following code as an example. Replace the 00000000000000000000000000000000 with your widget’s id.
In the following example, we will set the ‘es’ locale, which is the code for Spanish(Español):
If you have the Spanish translation ready for your widgets, the chatbox will show all the texts in Spanish.