GlideLocale - Scoped

  • 릴리스 버전: Australia
  • 업데이트 날짜 2026년 03월 12일
  • 소요 시간: 1분
  • 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.

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

    GlideLocale - getDecimalSeparator()

    Returns the decimal separator.

    표 3. Parameters
    Name Type Description
    None
    표 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 .

    GlideLocale - getGroupingSeparator()

    Returns the grouping separator.

    표 5. Parameters
    Name Type Description
    None
    표 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 ,