Skip to content
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

api/index.md 3/3 #88

Merged
merged 5 commits into from
Aug 10, 2017
Merged

Conversation

sylvainpolletvillard
Copy link
Member

Pfiou ça aura pris de longs mois mais j'ai enfin terminé la traduction de la plus longue section du site.

Bon courage aux relecteurs

Copy link
Member

@MachinisteWeb MachinisteWeb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rien de capital. Je crois même pas une seul faute repéré. Bon travail !!!


- **Restriction :** previous sibling element must have `v-if` or `v-else-if`.
- **Restriction :** l'élément précédent doit avoir une directive `v-if` or `v-else-if`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ou


- **Utilisation :**

Denote the "else block" for `v-if` or a `v-if`/`v-else-if` chain.
Dénote un bloc "else" pour `v-if` ou pour une chaîne `v-if`/`v-else-if`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

« else »


### v-else-if

> New in 2.1.0+
> Nouveauté de la 2.1.0
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2.1.0+
vuejs#1025


- **Utilisation :**

Denote the "else if block" for `v-if`. Can be chained.
Dénote un bloc "else if" pour `v-if`. Peut être enchaîné plusieurs fois.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

« else if »


``` html
<div v-for="item in items" :key="item.id">
{{ item.text }}
</div>
```

<p class="tip">When used together with v-if, v-for has a higher priority than v-if. See the <a href="../guide/list.html#v-for-with-v-if">list rendering guide</a> for details.</p>
<p class="tip">Quand utilisé conjointement avec v-if, v-for a une plus grande priorité que v-if. Consultez le <a href="../guide/list.html#v-for-with-v-if">guide de rendu de listes</a> pour plus de détails.</p>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je mettrais des ` autour de v-if / v-for etc et proposerai une PR à l'original. Je peux le faire si tu veux.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

c'est du HTML, il faut passer par des balises code. Je crois que c'est pour ça qu'il n'a pas pris la peine de le faire

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exact. Sur la page mergin.md ils prennent la peine de le faire. Tu me laisses le point, je vois ça avec l'original plus tard.

- **Events:**
- exposes the same events as `<transition>`.
- **Événements:**
- expose les mêmes événements que `<transition>`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

évènements

@@ -2178,93 +2177,92 @@ if (version === 2) {
</transition-group>
```

- **Voir aussi :** [Transitions: Entering, Leaving, and Lists](../guide/transitions.html)
- **Voir aussi :** [Transitions: entrantes, sortantes et de listes](../guide/transitions.html)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Transition :


- **Utilisation :**

When wrapped around a dynamic component, `<keep-alive>` caches the inactive component instances without destroying them. Similar to `<transition>`, `<keep-alive>` is an abstract component: it doesn't render a DOM element itself, and doesn't show up in the component parent chain.
Quand il entoure un composant dynamique, `<keep-alive>` met en cache les instances de composant inactives sans les détruire. Tout comme `<transition>`, `<keep-alive>` est un composant abstrait: le rendu ne donne pas d'élément supplémentaire dans le DOM, et il n'apparaît pas dans la chaîne de composants du parent.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

abstrait :


> In 2.2.0+ and above, `activated` and `deactivated` will fire for all nested components inside a `<keep-alive>` tree.
> À partir de la 2.2.0, `activated` et `deactivated` se déclencheront pour tous les composants imbriqués dans une arborescence `<keep-alive>`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Préférer « Dans la 2.2.0+ ».

PR l'original pour retirer "and above"

Copy link
Member Author

@sylvainpolletvillard sylvainpolletvillard Jul 26, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

je garde "A partir de", c'est beaucoup plus explicite

<keep-alive>
<comp-a v-if="a > 1"></comp-a>
<comp-b v-else></comp-b>
</keep-alive>

<!-- used together with <transition> -->
<!-- utilisé avec <transition> -->
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mettre transition entre ` (PR l'original)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code, pas formattage

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MachinisteWeb
Copy link
Member

Bon pour moi @sylvainpolletvillard ! Super boulot !

@forresst
Copy link

forresst commented Aug 4, 2017

J'essaye de relire cela ce week-end.

Copy link
Member

@Kocal Kocal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Félicitations pour ton travail, voici ma review


- **Détails :**

Updates the element's `textContent`. If you need to update the part of `textContent`, you should use `{% raw %}{{ Mustache }}{% endraw %}` interpolations.
Met à jour le contenu texte `textContent` de l'élément. Si vous n'avez besoin de mettre à jour qu'une partie de ce contenu, vous devriez utiliser les interpolations `{% raw %}{{ Mustache }}{% endraw %}`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Met à jour le contenu textuel (textContent)


- **Détails :**

Updates the element's `innerHTML`. **Note that the contents are inserted as plain HTML - they will not be compiled as Vue templates**. If you find yourself trying to compose templates using `v-html`, try to rethink the solution by using components instead.
Met à jour le HTML interne `innerHTML` de l'élément. **Notez que les contenus sont insérés en pur HTML - ils ne seront pas compilés en tant que templates Vue**. Si vous vous retrouvez à vouloir composer des templates avec `v-html`, essayez de repenser la solution en utilisant des composants à la place.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Met à jour le contenu HTML (innerHTML)


- **Utilisation :**

Render the element or template block multiple times based on the source data. The directive's value must use the special syntax `alias in expression` to provide an alias for the current element being iterated on:
Fait le rendu de l'élément ou du bloc template plusieurs fois selon les données source. La valeur de la directive doit utiliser la syntaxe spéciale `alias in expression` pour fournir un alias à l'élément courant dans l'itération:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

les données sources

ou

la donnée source


<!-- pass down parent props in common with a child component -->
<child-component v-bind="$props"></child-component>
<!-- transmettre les props parentes à un composant enfant -->
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

transmet

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

je mets les autres verbes précédent à l'indicatif également


``` html
<!-- vm.$refs.p will be the DOM node -->
<!-- vm.$refs.p sera le nœud du DOM -->
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Est-ce qu'ici on entoure vm.$refs.p de backquotes ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

il n'y a pas de formatage dans les blocs code donc ça ne sert à rien

<p ref="p">hello</p>

<!-- vm.$refs.child will be the child comp instance -->
<child-comp ref="child"></child-comp>
<!-- vm.$refs.enfant sera l'instance du composant enfant -->
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Est-ce qu'ici on entoure vm.$refs.enfant de backquotes ?

@@ -2143,32 +2142,32 @@ if (version === 2) {
...
methods: {
transitionComplete: function (el) {
// for passed 'el' that DOM element as the argument, something ...
// pour l'élément du DOM 'el' passé en argument, faire quelque-chose...
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Est-ce qu'ici on entoure el de backquotes ?

@sylvainpolletvillard
Copy link
Member Author

retours de @Kocal pris en compte. Je pense qu'on est bon pour merge

@MachinisteWeb MachinisteWeb merged commit 9febea5 into vuejs-fr:master Aug 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants