ThingsBoard Custom Translations feature allows you to upload alternative to existing language translations and extend the translation to specific GUI elements on the dashboards.
See video tutorial below for step-by-step instruction how to use this feature.
Using Locale files
- Explain “Language” selector;
- Explain “Download locale file” button (all available translations);
- how to overwrite one of the translations;
- example of the JSON with “real” values.
Custom menu labels
Custom dashboard title
Custom widget title
Custom widget legend
Dynamic widget label
Using Custom translations
- How to change dashboard title
- How to change dashboard widget title
- How to change dashboard widget legend
- example of the JSON
How to use Custom Translations in Widgets
Custom Translation can be used in widgets: in the post-processing function, as a value, or in the title.
- Step 1. Specify new custom translation. In our case this is "widget.test".
- Step 2. Reference custom translation in the data post-processing function. Note the required syntax: {i18n:widget.test}.
- Step 3. Reference custom translation in the HTML Value Card. Note the required syntax: {i18n:widget.test}.
- Step 4. Reference custom translation in the title of “Navigation Card”. Note the required syntax: {i18n:widget.test}.
Limitations of the Custom Translations in Widgets
-
Getting started guides - Esses guias fornecem uma visão geral rápida dos principais recursos do RETINA. Projetado para ser concluído em 15-30 minutos.