How can we translate the text that is entered into the inputs when building a chart?

If your platform is available in multiple languages, you may want to translate the text that you enter when creating charts in the Embeddable builder. For example, you might have a chart title input with the text “Welcome”.

In this case you would write labels.welcomeText in the text field in the builder, then create this in the client-context preset file, and set the text “Welcome” there.

Then code your components so that you would first try to look for the text in the clientContext instead wherever there is a text field.

You can even do labels.welcomeText|Welcome where the part right of the pipe is the fallback.

You can read more about working with clientContext here.