diff options
author | Sanchez Eric <eric.cmsfr@gmail.com> | 2021-06-15 20:19:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-15 20:19:56 +0200 |
commit | be09117e29a989d13b6f18639886e9a064bfc854 (patch) | |
tree | ebd47af9bbeeed44070fe7367ce622e1aa0801ef /files/fr/web/javascript/reference/global_objects | |
parent | bd08bf1e4887e1f3900e2b18f434cb0b05977972 (diff) | |
download | translated-content-be09117e29a989d13b6f18639886e9a064bfc854.tar.gz translated-content-be09117e29a989d13b6f18639886e9a064bfc854.tar.bz2 translated-content-be09117e29a989d13b6f18639886e9a064bfc854.zip |
Update index.html (#1208)
Fix of the variable name Xmas95 to noel95 to match the example above
Diffstat (limited to 'files/fr/web/javascript/reference/global_objects')
-rw-r--r-- | files/fr/web/javascript/reference/global_objects/date/getmonth/index.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/files/fr/web/javascript/reference/global_objects/date/getmonth/index.html b/files/fr/web/javascript/reference/global_objects/date/getmonth/index.html index ebc4889bbd..b328f30058 100644 --- a/files/fr/web/javascript/reference/global_objects/date/getmonth/index.html +++ b/files/fr/web/javascript/reference/global_objects/date/getmonth/index.html @@ -42,9 +42,9 @@ console.log(mois); //11 <p><strong>Note :</strong> Si besoin, on pourra récupérer le nom complet du mois (<code>"Janvier"</code> par exemple) en utilisant <code><a href="/fr/docs/Web/JavaScript/Reference/Objets_globaux/DateTimeFormat">Intl.DateTimeFormat()</a></code> avec un paramètre <code>options</code>. En utilisant cette méthode, il est plus simple d'internationaliser le site ou l'application :</p> <pre class="brush: js">var options = { month: 'long'}; -console.log(new Intl.DateTimeFormat('en-US', options).format(Xmas95)); +console.log(new Intl.DateTimeFormat('en-US', options).format(noel95)); // December -console.log(new Intl.DateTimeFormat('de-DE', options).format(Xmas95)); +console.log(new Intl.DateTimeFormat('de-DE', options).format(noel95)); // Dezember </pre> </div> |