GetCurrentLanguage

Return the current language. This will be one of the strings returned by GetLanguages, or an empty string if the language is set to the default language.

Function

string GetCurrentLanguage()

Return Value

The current language, or an empty string for the default language.

Remarks

Every client starts on the default language to start with. That is, until you call this with a non-default language, this will return an empty string.

Example

Print the current language to the JavaScript console.

let language = SYM3.GetCurrentLanguage();
if (language !== "")
    console.log(`Current language is ${language}`);
else
    console.log("The language is currently set to default.");