The GlideLocale API provides information about display information for the local instance.

There is no constructor for a GlideLocale object. Use the get() method to obtain a GlideLocale object.

GlideLocale - get()

Returns the GlideLocale object.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
GlideLocale The GlideLocale object.

Example

var locale = GlideLocale.get();

GlideLocale - getDecimalSeparator()

Returns the decimal separator.

Table 3. Parameters
Name Type Description
None
Table 4. Returns
Type Description
String The decimal separator.

Example

var locale = GlideLocale.get();
var decimalSeparator = locale.getDecimalSeparator();
gs.info( "The decimal separator is " + decimalSeparator);

Output:

The decimal separator is .

GlideLocale - getGroupingSeparator()

Returns the grouping separator.

Table 5. Parameters
Name Type Description
None
Table 6. Returns
Type Description
String The grouping separator.

Example

var locale = GlideLocale.get();var groupingSeparator = locale.getGroupingSeparator();
gs.info( "The grouping separator is " + groupingSeparator);

Output:

The grouping separator is ,