Skip to content

Cookie preferences

We use cookies for our own analytics, to see how our campaigns perform and, if you allow it, to load content from other services such as the Google site search. We never sell your data. Necessary cookies keep the site working and cannot be switched off. See our Cookie Policy for details and our Privacy Policy for how we handle personal data.

Security, load balancing and remembering your cookie choice.

Show us which pages people read, how they find the site and where they get stuck, so we can improve it (Google Analytics, Microsoft Clarity).

Show us which of our ad campaigns bring visitors to the site and remember the campaign or partner link you arrived from (Google Ads, LinkedIn, Meta, partner program). We do not use these cookies to build advertising profiles.

Load the site search from Google when you use it. Google sets its own cookies and shows ads in the search results.

© 2026 The ThingsBoard Authors
22.5k Try for free

ThingsBoard Cloud

Choose your data region

Your data stays in the region you choose, for residency and compliance. No credit card required.

Rather run it yourself? Install on your own servers

Custom Translation in Data Post-Processing

This recipe shows how to use custom translation keys in a data post-processing function of an Entities table widget. The i18n keys returned by the function are resolved to the user’s interface language.

  • A ThingsBoard instance with custom translation configured
  • A device sending temperature telemetry

Navigate to White labeling ⇾ Custom translation and add the following keys for the target language (e.g., German):

Term key English German Description
custom.my-dashboard.title My Dashboard Mein Dashboard Dashboard title
custom.my-widget.telemetry-key.temperature Temperature Temperatur Telemetry key label
custom.my-widget.telemetry-value.range Value range Wertebereich Column header
custom.my-widget.telemetry-value.low-temperature Low temperature Niedrigtemperatur Low temperature
custom.my-widget.telemetry-value.high-temperature High temperature Hochtemperatur High temperature
custom.my-widget.telemetry-value.normal-temperature Normal temperature Normaltemperatur Normal temperature
  1. Open the dashboard in edit mode and click Add widget.
  2. Select the Entities table widget from the Tables widgets bundle.
  3. Specify the device as the data source. Add three columns:
    • Name (default entity name column)
    • Temperature — telemetry key temperature, label: {i18n:custom.my-widget.telemetry-key.temperature}
    • Temperature range — telemetry key temperature, label: {i18n:custom.my-widget.telemetry-value.range}
  1. Open the configuration for the last column’s telemetry key.
  2. In the data post-processing function field, paste the following code:
if(value>=25){
return "{i18n:custom.my-widget.telemetry-value.high-temperature}";
}else if(value<=19){
return "{i18n:custom.my-widget.telemetry-value.low-temperature}";
}else{
return "{i18n:custom.my-widget.telemetry-value.normal-temperature}";
}
  1. Click Save, then Add the widget to the dashboard. Save the dashboard.

The “Temperature range” column value updates dynamically based on the incoming telemetry: