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.
This is independent of the Time Format Locale. See Project properties |
Parameter
Name | Type | Description |
---|---|---|
locale | The name of the localization to be loaded. Example: 'de-DE', 'en-US | |
callback [ optional ] | Asynchronous callback function that is triggered when the language was switched. |
Return value
Type | Description |
---|---|
void | No return value |
Available from 1.8 |
Sample - JavaScript
TcHmi.Locale.load('en-US', function (data) {
if (data.error) {
TcHmi.Log.infoEx('Loading en-US successfully.');
}
});