Internationalization

This section shows you what to enter for the i18n configurations via the Dashboard settings pages for each embed.

We released the i18n support for our embeds on May 4th, 2020.

Current supported languages

Language / Locale

Support

Code

English US

Default

en

Chinese (Simplified)

Yes

zh

Danish

Yes

da

French

Yes

fr

German

Yes

de

Italian

Yes

it

Polish

Yes

pl

Spanish

Yes

es

More languages are coming soon! You can contribute and help us provide the embed in more languages by translating the JSON files into the language that you support as well! Just send us the translated files via the Intercom chat below.

How does it work?

Our embeds will automatically detect your end user's browser language preference to determine what language the embed will render in. If the language is not supported by our embed, a default language will be displayed. The default language is English US.

Dashboard

On the Servicebot dashboard, you will find the settings form for each embeds that looks like the following screenshot. In the following sections, we describe the with an example value for each settings field.

In this screenshot, the section where it is marked with a red box is the i18n settings described below.

Language / Locale

The default locale that you'd like the embed to render in.

Example Value:
da

Backend URL

A backend for the custom translation files that you'd like to provide.

Example Value:
https://storage.googleapis.com/your-i18n-custom/{{lng}}/{{ns}}.json"

Resources

An array of translation resources you'd like to provide, this can be used to override a few strings in the embed.

The value for this field must match the following structure, an array of object with the "lng", "ns', and "resource" keys.

The resource object must be a list of i18n keys available in the embed, you can find them in any of the JSON files.

Example Value:
[
{
"lng":"zh",
"ns":"custom",
"resource":{
"SectionTitle_Pricing":"欢迎,请选择一个计划开始!",
}
}
]