setLabelBundle - Methods - Feedback Aide API

Feedback Aide API Methods

setLabelBundle()

Overrides the default English (US) text labels of the Feedback Aide interface.

You would want to call this method to apply your own localized language content, for example.

If there are any existing interface elements already rendered, the text content of those elements will change to reflect the newly provided labels.

See Feedback Aide Internationalization for more information.

Examples

// An example for localizing some labels to Japanese
await feedbackApp.setLabelBundle({
    "labels": {
        "save": "保存",
        "stimulus_show_less": "少なく表示",
        "stimulus_show_more": "もっと見る"
    }
});

Arguments

  • options object

    Options for overriding labels in the interface.

    The following properties are supported.

Return value

Type Promise

When the promise resolves, it will indicate that the label bundle has been set successfully.

Was this article helpful?

Did you arrive here by accident? If so, learn more about Learnosity.