WebViewer leverages the i18next library for languages and internationalization support.
Out of the box, WebViewer supports 30 languages including the following:
These will come with WebViewer automatically when you download the package. To always find the available languages supported by WebViewer, you can visit the GitHub project.
It is possible to add additional languages to your WebViewer in a few easy steps. Most of the on-screen text values are stored as JSON language files which you can edit in any text editor. Follow the steps below to start:
To change languages in WebViewer, simply set the defaultLanguage option in your constructor to the language code that you want. This is without the translation- prefix. WebViewer will then instantiate in the language that was set.
After instantiation, you can change the language programmatically by calling setLanguage on the instance and passing the corresponding language code from the file name. This method overrides defaultLanguage and caches the selection, ensuring the chosen language persists even after a browser refresh.
Did you find this helpful?
Trial setup questions?
Ask experts on DiscordNeed other help?
Contact SupportPricing or product questions?
Contact Sales