Gleap supports multiple languages. Add a language under Settings → Project → Languages and edit the widget’s built-in text under Settings → Project → Static translations. Use the SDK method below to select the language for the current user.
Gleap uses the lang attribute of your page's <html> tag, or the browser language if it isn't set. If that language isn't one of your project's languages, the widget falls back to your project's primary language. In some situations you might want to overwrite it with a custom language. This can be achieved with the following method.
Overwrite the default language
JavaScript
// 2 digit ISO code
Gleap.setLanguage("es");
// 5 digit ISO code with lang - country
Gleap.setLanguage("en-US");Please use the
setLanguage method only before the initialization of the Gleap SDK (before calling Gleap.initialize()) OR when users perform a language change in your application. Note that setting the language reloads the whole widget, which might lead to unwanted behaviour, so it's recommended to stick to the two use-cases above.
