config.labelBundle - Initialization - Items API

Items API Initialization

labelBundle

Specify overrides for labels and text content shown in the assessment player.

You would want to specify this option so that you can override the default English labels and allows you to internationalize the assessment player content. For example, renaming a button in the assessment player or translating all interface text to Japanese.

See Internationalizing and Localizing the Assessment Experience for more information.

Important Supported with rendering_type: "assess" only.

Examples

// Override the default "play" and "pause" text used in the assessment player
var initializationOptions = {
    "labelBundle": {
        "play": "Play media",
        "pause": "Pause media",
        // ...
    }
};

// French labels for "save" and "submit" text used in the assessment player
var initializationOptions = {
    "labelBundle": {
        "save": "Enregistrer",
        "submit": "Soumettre",
        // ...
    }
};

Values

Attribute path config.labelBundle

Type object

Related articles

Was this article helpful?

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