Skip to main content

Overview

Parameters:
  • translation-dictionary: A JSON object that maps keys (e.g., metric names, description, table columns, chart legends & label…etc) to their translations in multiple languages.
  • language: A string representing the language code (e.g., "en", "fr", "es") you want to use for the component’s content.
When both parameters are used, the component will display the content in the specified language, falling back to the key if a translation for the selected language is unavailable.

Usage Example