config.dependencies.rubric_editor_api.label_bundle - Initialization - Author API

Author API Initialization

label_bundle

Overrides the default user interface labels displayed by the Rubric Editor.

You would want to use this so that you can customize or translate the text shown in the rubric editing interface, for example, the rubric type names, action buttons, and section headings.

Each entry is a key/value pair, where the key is a Rubric Editor label bundle key and the value is the text to display in its place. Only the keys you provide are overridden; any keys you omit keep their default values.

See Rubric Editor API internationalization for the full list of supported label bundle keys, and the setLabelBundle method for more information.

Examples

// Override a selection of Rubric Editor labels
var initializationOptions = {
    "config": {
        "dependencies": {
            "rubric_editor_api": {
                "label_bundle": {
                    "editor.type": "Rubric type",
                    "editor.type.enums.analytic": "Analytic",
                    "editor.type.enums.holistic": "Holistic",
                    "editor.type.enums.sr-categorize": "Categorize",
                    "editor.type.enums.sr-general": "General",
                    "editor.type.enums.sr-keypoints": "Keypoints",
                    "editor.type.enums.sr-xfromy": "X From Y"
                }
            }
        }
    }
};

Values

Attribute path config.dependencies.rubric_editor_api.label_bundle

Default {}

Type object

Caveats

The value must be an object of label key/value pairs. Supplying any other type, such as an array, will cause an initialization error.

Versioning

Version added: v2026.3.LTS (now live in developer)

Related articles

Was this article helpful?

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