load

[ Function ]

public static load(
    locale: string | null,
    callback: null | ((this: void, data: TcHmi.IResultObject) => void) = null)
): void;

Loads a new localization in the client.

load 1:

This is independent of the Time Format Locale. See Project properties

Parameter

Name

Type

Description

locale

string, null

The name of the localization to be loaded.

Example: 'de-DE', 'en-US

callback [ optional ]

TcHmi.IResultObject

Asynchronous callback function that is triggered when the language was switched.

Return value

Type

Description

void

No return value

load 2:

Available from 1.8

Sample - JavaScript

TcHmi.Locale.load('en-US', function (data) {
    if (data.error) {
        TcHmi.Log.infoEx('Loading en-US successfully.');
    }
});