GetLocale

function GetLocale(): string | undefined

The function GetLocale returns the currently active language of the client (with region, if available). Refer also to the description page for the corresponding API function.

Parameter

Name

Type

Description

-

-

-

Return value

Type

Description

string | undefined

Currently active language (e.g. "de-DE").

NuGet package: Beckhoff.TwinCAT.HMI.Functions

GetLocale 1:

NuGet packages are available from version 1.12.

GetLocale 2:

Available from 1.8