Category / Section
How do I change the language on my embedded dashboard?
Published:
In Bold BI, there is support for changing the language of the embedded dashboard using the localeSettings.appLocale API member. This API member gets a locale as a value that will be passed to the dashboard to change the language of the dashboard.
Steps to change the language in the embedded dashboard:
1. Before setting the language to the dashboard at the embed level, you should have or generate the corresponding language localization file in your Bold BI Server installed location. Please refer here to generate a new locale file. Then, change the language using the appLocale API at the embed level.
2. Once the localization file is generated, add the appLocale API in the localeSettings API member in the embedded application's BoldBI.create() method, as in the following code snippet.
var dashboard = BoldBI.create({
localeSettings:{
appLocale: "fr-FR"
}
});
dashboard.loadDashboard();
Here, fr-FR indicates the French (France) language. By default, its value is set as en-US, which indicates English (United States).
3. The following images show the data language difference when switching the localeSettings.appLocale value between default value and fr-FR.
Dashboard language applied based on fr-FR locale
Additional reference: