Localize Dashboard UI

Edit in →

Localization capabilities allow you to adapt the dashboard UI to suit the linguistic preferences of your users. A multilingual dashboard presents information in the user's native language and thus helps you reach wider audiences. To localize a dashboard, you need to translate texts within its controls and charts. This example demonstrates how to create a localized dashboard in React, Vue.js, Angular, jQuery, and Vanilla JS applications.

Localize Dashboard Controls

SurveyJS Dashboard UI is localized to 10+ languages out of the box and allows you to easily add custom UI translations for missing languages. To apply a locale, assign its identifier to the locale property of a VisualizationPanel instance:

import { VisualizationPanel } from "survey-analytics";

const vizPanel = new VisualizationPanel(
  surveyQuestions,
  surveyResults,
  vizPanelOptions
);
// Apply French locale
vizPanel.locale = "fr";

A dashboard can inherit the current locale for the survey being visualized, provided that the survey JSON schema specifies the locale property. To enable this functionality in your dashboard, pass the SurveyModel instance to the survey property of an IVisualizationPanelOptions in the VisualizationPanel constructor, as shown in the code below. This approach is used in the demo you are viewing.

import { Model } from "survey-core";
import { VisualizationPanel } from "survey-analytics";

const surveyJson = {
  "locale": "fr",
  // ...
};
const survey = new Model(surveyJson);
const vizPanel = new VisualizationPanel(
  survey.getAllQuestions(),
  surveyResults,
  {
    survey: survey
  }
);

Localize Charts

You can translate chart titles, series point labels, and other textual chart elements. To localize charts, specify required translations in the survey JSON schema. Refer to the json.js file listing for a code example. If a survey JSON schema contains translations to more than one language, the dashboard will automatically display a dropdown that allows users to switch between the languages. For more information on how to localize a survey, refer to the following demo:

Survey Localization

Your cookie settings

We use cookies to make your browsing experience more convenient and personal. Some cookies are essential, while others help us analyse traffic. Your personal data and cookies may be used for ad personalization. By clicking “Accept All”, you consent to the use of all cookies as described in our Terms of Use and Privacy Statement. You can manage your preferences in “Cookie settings.”

Your renewal subscription expires soon.

Since the license is perpetual, you will still have permanent access to the product versions released within the first 12 month of the original purchase date.

If you wish to continue receiving technical support from our Help Desk specialists and maintain access to the latest product updates, make sure to renew your subscription by clicking the "Renew" button below.

Your renewal subscription has expired.

Since the license is perpetual, you will still have permanent access to the product versions released within the first 12 month of the original purchase date.

If you wish to continue receiving technical support from our Help Desk specialists and maintain access to the latest product updates, make sure to renew your subscription by clicking the "Renew" button below.