TRY NEW VERSION

Try now New API BETA

Try out the new view and capabilities of the API documentation

START

onTranslate

onTranslate

The function called right after the plugin startup or later in case the plugin language is changed.

Parameters:

This event doesn't have any parameters.

Example

Copy code
window.Asc.plugin.onTranslate = function() {
    var label = document.getElementById("button_new");
    if (label)
        label.innerHTML = window.Asc.plugin.tr("New");
}