GlideLocale - Scoped

GlideLocale provides information about display information for the local instance.

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

Scoped GlideLocale - get()

Returns the GlideLocale object.

Table 1. Parameters
Name Type Description
None
Table 2. Returns
Type Description
GlideLocale The GlideLocale object.
var locale = GlideLocale.get();

Scoped GlideLocale - getDecimalSeparator()

Returns the decimal separator.

Table 3. Parameters
Name Type Description
None
Table 4. Returns
Type Description
String The decimal separator.
var locale = GlideLocale.get();
var decimalSeparator = locale.getDecimalSeparator();
gs.info( "The decimal separator is " + decimalSeparator);

Output:

The decimal separator is .

Scoped GlideLocale - getGroupingSeparator()

Returns the grouping separator.

Table 5. Parameters
Name Type Description
None
Table 6. Returns
Type Description
String The grouping separator.
var locale = GlideLocale.get();var groupingSeparator = locale.getGroupingSeparator();
gs.info( "The grouping separator is " + groupingSeparator);

Output:

The grouping separator is ,