-
Notifications
You must be signed in to change notification settings - Fork 164
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #575 from reactjs/copy/warnings
Translations of the warning pages
- Loading branch information
Showing
5 changed files
with
68 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
--- | ||
title: Invalid ARIA Prop Warning | ||
title: Avertissement de prop ARIA invalide | ||
--- | ||
|
||
This warning will fire if you attempt to render a DOM element with an `aria-*` prop that does not exist in the Web Accessibility Initiative (WAI) Accessible Rich Internet Application (ARIA) [specification](https://www.w3.org/TR/wai-aria-1.1/#states_and_properties). | ||
Cet avertissement est déclenché lorsque vous tentez d'afficher un élément DOM avec une prop `aria-*` qui n'existe pas dans la [spécification](https://www.w3.org/TR/wai-aria-1.1/#states_and_properties) *Web Accessibility Initiative* (WAI) *Accessible Rich Internet Application* (ARIA). | ||
|
||
1. If you feel that you are using a valid prop, check the spelling carefully. `aria-labelledby` and `aria-activedescendant` are often misspelled. | ||
1. Si vous pensez utiliser une prop valide, vérifiez attentivement l'orthographe. `aria-labelledby` et `aria-activedescendant` sont souvent mal orthographiées. | ||
|
||
2. If you wrote `aria-role`, you may have meant `role`. | ||
2. Si vous avez écrit `aria-role`, vous pensiez probablement à `role`. | ||
|
||
3. Otherwise, if you're on the latest version of React DOM and verified that you're using a valid property name listed in the ARIA specification, please [report a bug](https://github.com/facebook/react/issues/new/choose). | ||
3. Pour les autres cas, si vous êtes sur la dernière version de React DOM et avez vérifié que vous utilisiez bien un nom de propriété valide listé dans la spécification ARIA, merci de nous [signaler le bug](https://github.com/facebook/react/issues/new/choose). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
title: Special Props Warning | ||
title: Avertissement de props à traitement spécial | ||
--- | ||
|
||
Most props on a JSX element are passed on to the component, however, there are two special props (`ref` and `key`) which are used by React, and are thus not forwarded to the component. | ||
La plupart des props d'un élément JSX sont passées au composant ; ceci dit, deux props ont un traitement spécial par React (`key` et `ref`), et ne sont donc pas passées au composant. | ||
|
||
For instance, you can't read `props.key` from a component. If you need to access the same value within the child component, you should pass it as a different prop (ex: `<ListItemWrapper key={result.id} id={result.id} />` and read `props.id`). While this may seem redundant, it's important to separate app logic from hints to React. | ||
Vous ne pouvez pas par exemple lire `props.key` depuis un composant. Si vous avez besoni d'accéder à la même valeur au sein d'un composant enfant, vous devriez la passer via une prop distincte (par exemple `<ListItemWrapper key={result.id} id={result.id} />` puis lire `props.id`). Ça peut sembler redondant, mais c'est nécessaire pour séparer la logique applicative des informations à destination du moteur de React. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"title": "React Docs", | ||
"title": "Docs React", | ||
"path": "/", | ||
"routes": [ | ||
{ | ||
|