Articles in this section
Category / Section

How to localize the widget title and change it dynamically using label parameters?

Published:

In this article, we will guide you through the process of dynamically changing widget titles based on language selection. This can be particularly useful for multi-language platforms where the user interface needs to adapt to the language preference of the user.

Preparing the Data Source

The first step involves preparing a data source for the widget names in various languages. This can be done using an Excel sheet.

  1. Create a column that defines different “Languages”.
  2. Create a separate column for each widget that needs to have its title changed dynamically.

data source model.png

Importing the Data Source

Once the data source is prepared, import the Excel sheet and create a data source with it.

Adding Label Parameter into the Widgets

After the data source is imported, you can configure the label parameters for the widget title by using the field name in the Name of the widget.

  1. Use the following format to configure the label parameter: {{:DataSource_Name.Column_Name}}. This syntax is used when more than one data source is present.
  2. Configure any filter widgets with the column “Languages”.

Sample Demo Dashboard.png

Previewing the Dashboard

After configuring the widgets, preview the dashboard. Initially, the widgets label parameters will show the results with ALL values as shown image in above.

Once you choose the filter value in the combo box, the widget label parameters will show the widget title based on the language that has been chosen.

Engligh Localize dashboard.png

Chinease localize dashboard.png

Conclusion

By following these steps, you can dynamically change the titles of your widgets based on the language selection. This can greatly enhance the user experience on multi-language platforms.

References

Was this article useful?
Like
Dislike
Help us improve this page
Please provide feedback or comments
SR
Written by Sethu Raman Athimoolam
Updated
Comments
Please  to leave a comment
Access denied
Access denied