Skip to content
ChartDeck ChartScript docs Account Open the terminal

i18n

Translations of the settings panel text (ChartDeck extra).

#Functions

#i18n.addfunction

A translation of the settings panel text: shown to users whose ChartDeck language is lang.

i18n.add(lang: const string, english: const string, translated: const string)
ParameterTypeDescription
langconst stringA ChartDeck language code (de, fr, ja ...).
englishconst stringThe text as written in the script.
translatedconst stringThe translation.

Example

ChartScriptFragmentOpen in editor
const len = input.int(20, "Length")
i18n.add("de", "Length", "Länge")

Since ChartScript 1

The ChartScript documentation is in English for now; translations will follow.