GetLocale
Returns the current locale ID.
Syntax
expression.GetLocale();
expression
- A variable that represents a Api class.
Parameters
This method doesn't have any parameters.
Returns
number
Example
This example shows how to get the current locale ID.
- Code
- Result
let worksheet = Api.GetActiveSheet();
Api.SetLocale("en-CA");
let locale = Api.GetLocale();
worksheet.GetRange("A1").SetValue("Locale: " + locale);