Skip to content

Translate JSON in french language #25

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 26, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions 1-js/05-data-types/11-json/1-serialize-object/task.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ importance: 5

---

# Turn the object into JSON and back
# Transforme l'objet en JSON et revenez en arrière

Turn the `user` into JSON and then read it back into another variable.
Transformez `l’utilisateur` en JSON puis relisez-le dans une autre variable.

```js
let user = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ alert( JSON.stringify(meetup, function replacer(key, value) {
*/
```

Here we also need to test `key==""` to exclude the first call where it is normal that `value` is `meetup`.
Ici, nous devons également tester la `key==""` pour exclure le premier appel où il est normal que la `valeur` soit `meetup`.

8 changes: 4 additions & 4 deletions 1-js/05-data-types/11-json/2-serialize-event-circular/task.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ importance: 5

---

# Exclude backreferences
# Exclure les backreferences

In simple cases of circular references, we can exclude an offending property from serialization by its name.
Dans les cas simples de références circulaires, nous pouvons exclure une propriété incriminée de la sérialisation par son nom.

But sometimes there are many backreferences. And names may be used both in circular references and normal properties.
Mais parfois, il y a beaucoup de backreferences. Et les noms peuvent être utilisés à la fois dans les références circulaires et dans les propriétés normales.

Write `replacer` function to stringify everything, but remove properties that reference `meetup`:
Écrivez la fonction de `remplacement` pour tout stringify, mais supprimez les propriétés qui font référence à `meetup`:

```js run
let room = {
Expand Down
Loading