---
sourceDocument: Référence de l’API Xanadu
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/fr-FR/xanadu/api-reference

 Release :

    - xanadu

ft:locale :

    - fr-FR

ft:publication_title :

    - Référence de l’API Xanadu

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# GlideLocale : inclus dans le champ d'application

# GlideLocale : inclus dans le champ d'application {#ariaid-title1}

* Rversion finale: Xanadu
* 
* Mis à jour 1 août 2024
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute de lecture

L'API GlideLocale fournit des informations sur les informations d'affichage de l'instance locale.

Il n'existe pas de constructeur pour un objet GlideLocale. Utilisez la méthode get() pour obtenir un objet GlideLocale.

## GlideLocale : get() {#ariaid-title2}

Renvoie l'objet GlideLocale.
{#r_ScopedGlideLocaleGet__table_qxl_hft_sr__entry__3}

| Nom | Type | Description |
|-|-|-|
| Aucun |   |   |
[Tableau 1. Paramètres]

{#r_ScopedGlideLocaleGet__table_qxl_hft_sr} {#r_ScopedGlideLocaleGet__table_rxl_hft_sr__entry__2}

| Type | Description |
|-|-|
| GlideLocale | L'objet GlideLocale. |
[Tableau 2. Renvoie]

{#r_ScopedGlideLocaleGet__table_rxl_hft_sr}  

    var locale = GlideLocale.get();

## GlideLocale : getDecimalSeparator() {#ariaid-title3}

Renvoie le séparateur décimal.
{#r_SGL-GetDecimalSeparator__table_snb_3gt_sr__entry__3}

| Nom | Type | Description |
|-|-|-|
| Aucun |   |   |
[Tableau 3. Paramètres]

{#r_SGL-GetDecimalSeparator__table_snb_3gt_sr} {#r_SGL-GetDecimalSeparator__table_tnb_3gt_sr__entry__2}

| Type | Description |
|-|-|
| Chaîne | Le séparateur décimal. |
[Tableau 4. Renvoie]

{#r_SGL-GetDecimalSeparator__table_tnb_3gt_sr}  

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

Sortie :

    The decimal separator is .

## GlideLocale : getGroupingSeparator() {#ariaid-title4}

Renvoie le séparateur de regroupement.
{#r_SGL-GetGroupingSeparator__table_jtf_5ft_sr__entry__3}

| Nom | Type | Description |
|-|-|-|
| Aucun |   |   |
[Tableau 5. Paramètres]

{#r_SGL-GetGroupingSeparator__table_jtf_5ft_sr} {#r_SGL-GetGroupingSeparator__table_ktf_5ft_sr__entry__2}

| Type | Description |
|-|-|
| Chaîne | Séparateur de regroupement. |
[Tableau 6. Renvoie]

{#r_SGL-GetGroupingSeparator__table_ktf_5ft_sr}  

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

Sortie :

    The grouping separator is ,


