Skip to content

Commit ff9c4ef

Browse files
committed
HomePage translation
1 parent ee1d0b6 commit ff9c4ef

14 files changed

+40
-40
lines changed

content/home/examples/a-component-using-external-plugins.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ class MarkdownEditor extends React.Component {
22
constructor(props) {
33
super(props);
44
this.handleChange = this.handleChange.bind(this);
5-
this.state = { value: 'Hello, **world**!' };
5+
this.state = { value: 'Bonjour, **monde**!' };
66
}
77

88
handleChange(e) {
@@ -17,16 +17,16 @@ class MarkdownEditor extends React.Component {
1717
render() {
1818
return (
1919
<div className="MarkdownEditor">
20-
<h3>Input</h3>
20+
<h3>Entrée</h3>
2121
<label htmlFor="markdown-content">
22-
Enter some markdown
22+
Saisissez du markdown
2323
</label>
2424
<textarea
2525
id="markdown-content"
2626
onChange={this.handleChange}
2727
defaultValue={this.state.value}
2828
/>
29-
<h3>Output</h3>
29+
<h3>Sortie</h3>
3030
<div
3131
className="content"
3232
dangerouslySetInnerHTML={this.getRawMarkup()}
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: A Component Using External Plugins
2+
title: Un composant avec des plugins tiers
33
order: 3
44
domid: markdown-example
55
---
66

7-
React allows you to interface with other libraries and frameworks. This example uses **remarkable**, an external Markdown library, to convert the `<textarea>`'s value in real time.
7+
React est flexible et fournis divers moyens d'utiliser d'autres bibliothèques ou frameworks. Cet exemple utilise **remarkable**, une bibliothèque tiers pour gérer le format Markdown, qui permet de convertir le contenue de la balise `<textarea>` en temps réel.

content/home/examples/a-simple-component.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ class HelloMessage extends React.Component {
22
render() {
33
return (
44
<div>
5-
Hello {this.props.name}
5+
Salut {this.props.name}
66
</div>
77
);
88
}
99
}
1010

1111
ReactDOM.render(
12-
<HelloMessage name="Taylor" />,
12+
<HelloMessage name="Thierry" />,
1313
document.getElementById('hello-example')
14-
);
14+
);
+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
2-
title: A Simple Component
2+
title: Un composant simple
33
order: 0
44
domid: hello-example
55
---
66

7-
React components implement a `render()` method that takes input data and returns what to display. This example uses an XML-like syntax called JSX. Input data that is passed into the component can be accessed by `render()` via `this.props`.
7+
Les composants React implémentent une méthode `render()` qui prend des données en entrée et retourne ce qui doit être affiché. Cet exemple utilise une syntaxe qui ressemble à du XML et que l'on appelle JSX. Les données passées au composant sont accessibles dans `render()` via `this.props`.
88

9-
**JSX is optional and not required to use React.** Try the [Babel REPL](babel://es5-syntax-example) to see the raw JavaScript code produced by the JSX compilation step.
9+
**JSX est optionnel et certainement pas un pré-requis pour utiliser React.** Essayez [Babel REPL](babel://es5-syntax-example) pour examiner le code JavaScript brut produit lors de la compilation du format JSX.

content/home/examples/a-stateful-component.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Timer extends React.Component {
2121
render() {
2222
return (
2323
<div>
24-
Seconds: {this.state.seconds}
24+
Secondes: {this.state.seconds}
2525
</div>
2626
);
2727
}
@@ -30,4 +30,4 @@ class Timer extends React.Component {
3030
ReactDOM.render(
3131
<Timer />,
3232
document.getElementById('timer-example')
33-
);
33+
);
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: A Stateful Component
2+
title: Un composant dynamique
33
order: 1
44
domid: timer-example
55
---
66

7-
In addition to taking input data (accessed via `this.props`), a component can maintain internal state data (accessed via `this.state`). When a component's state data changes, the rendered markup will be updated by re-invoking `render()`.
7+
En plus de pouvoir recevoir des données (auxquelles on peut accéder via `this.props`), un composant peut maintenir un état et des données associées (auxquelles on peut accéder via `this.state`). Lorsque l'état d'un composant change, son affichage est mis à jour en appelant `render()` une nouvelle fois.

content/home/examples/an-application.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,19 @@ class TodoApp extends React.Component {
99
render() {
1010
return (
1111
<div>
12-
<h3>TODO</h3>
12+
<h3>A faire</h3>
1313
<TodoList items={this.state.items} />
1414
<form onSubmit={this.handleSubmit}>
1515
<label htmlFor="new-todo">
16-
What needs to be done?
16+
Que faut-il faire ?
1717
</label>
1818
<input
1919
id="new-todo"
2020
onChange={this.handleChange}
2121
value={this.state.text}
2222
/>
2323
<button>
24-
Add #{this.state.items.length + 1}
24+
Ajouter #{this.state.items.length + 1}
2525
</button>
2626
</form>
2727
</div>
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: An Application
2+
title: Une application
33
order: 2
44
domid: todos-example
55
---
66

7-
Using `props` and `state`, we can put together a small Todo application. This example uses `state` to track the current list of items as well as the text that the user has entered. Although event handlers appear to be rendered inline, they will be collected and implemented using event delegation.
7+
En utilisant `props`et `state` on peut créer une petite application de gestion des taches. Cet exemple utilise `state` pour maintenir la liste des taches et le texte que l'utilisateur y a associé. Bien que les gestionnaires d'évènements soient définies directement dans le gabarit, ils seront collectés et gérés en utilisant les principes de délégation des évènements.
+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
2-
title: Component-Based
2+
title: A base de composants
33
order: 1
44
---
55

6-
Build encapsulated components that manage their own state, then compose them to make complex UIs.
6+
Créez des composants autonomes qui maintiennent leur propre état, puis assemblez les pour créer des interfaces graphiques complexes.
77

8-
Since component logic is written in JavaScript instead of templates, you can easily pass rich data through your app and keep state out of the DOM.
8+
Dans la mesure où les composants sont gérés via JavaScript plutôt que sous la forme de gabarits, vous pouvez facilement utiliser des données complexes avec vos applications et préserver leur état sans toucher au <abbr lang="en" title="Document Object Model">DOM</abbr>.

content/home/marketing/declarative.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
2-
title: Declarative
2+
title: Déclarative
33
order: 0
44
---
55

6-
React makes it painless to create interactive UIs. Design simple views for each state in your application, and React will efficiently update and render just the right components when your data changes.
6+
React rend la création d'interfaces graphiques plaisante. Définissez simplement les vues des différents états de vos applications et React s'occupera de mettre à jour et de rendre les composants qui en on besoin en fonction de vos données.
77

8-
Declarative views make your code more predictable and easier to debug.
8+
Le vues déclaratives rendent votre code plus prédictif et plus facile a corriger.
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
2-
title: Learn Once, Write Anywhere
2+
title: Apprendre une fois pour toutes
33
order: 2
44
---
55

6-
We don't make assumptions about the rest of your technology stack, so you can develop new features in React without rewriting existing code.
6+
Nous ne présumons rien sur les divers technologies que vous utilisez. De cette manière vous pouvez developper de nouvelles fonctionnalités avec React sans réécrire votre code existant.
77

8-
React can also render on the server using Node and power mobile apps using [React Native](https://facebook.github.io/react-native/).
8+
React peut aussi être utilisé coté serveur avec Node ou être utilisé pour créer des applications mobiles grâce à [React Native](https://facebook.github.io/react-native/).

gatsby-config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88

99
module.exports = {
1010
siteMetadata: {
11-
title: 'React: A JavaScript library for building user interfaces',
11+
title: 'React: Une bibliothèque JavaScript pour créer des interfaces graphiques',
1212
siteUrl: 'https://reactjs.org',
1313
rssFeedTitle: 'React',
14-
rssFeedDescription: 'A JavaScript library for building user interfaces',
14+
rssFeedDescription: 'Une bibliothèque JavaScript pour créer des interfaces graphiques',
1515
},
1616
mapping: {
1717
'MarkdownRemark.frontmatter.author': 'AuthorYaml',

src/components/TitleAndMetaTags/TitleAndMetaTags.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import Helmet from 'react-helmet';
99
import React from 'react';
1010

11-
const defaultDescription = 'A JavaScript library for building user interfaces';
11+
const defaultDescription = 'Une bibliothèque JavaScript pour créer des interfaces graphiques';
1212

1313
type Props = {
1414
title: string,

src/pages/index.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class Home extends Component {
5151
return (
5252
<Layout location={location}>
5353
<TitleAndMetaTags
54-
title="React &ndash; A JavaScript library for building user interfaces"
54+
title="React &ndash; Une bibliothèque JavaScript pour créer des interfaces graphiques"
5555
ogUrl={createOgUrl('index.html')}
5656
/>
5757
<div css={{width: '100%'}}>
@@ -134,7 +134,7 @@ class Home extends Component {
134134
fontSize: 30,
135135
},
136136
}}>
137-
A JavaScript library for building user interfaces
137+
Une bibliothèque JavaScript pour créer des interfaces graphiques
138138
</p>
139139
<Flex
140140
valign="center"
@@ -149,12 +149,12 @@ class Home extends Component {
149149
<ButtonLink
150150
to="/docs/getting-started.html"
151151
type="primary">
152-
Get Started
152+
Bien démarrer
153153
</ButtonLink>
154154
</CtaItem>
155155
<CtaItem>
156156
<ButtonLink to="/tutorial/tutorial.html" type="secondary">
157-
Take the Tutorial
157+
Suivre le tutoriel
158158
</ButtonLink>
159159
</CtaItem>
160160
</Flex>
@@ -286,12 +286,12 @@ class Home extends Component {
286286
<Flex valign="center">
287287
<CtaItem>
288288
<ButtonLink to="/docs/getting-started.html" type="primary">
289-
Get Started
289+
Bien démarrer
290290
</ButtonLink>
291291
</CtaItem>
292292
<CtaItem>
293293
<ButtonLink to="/tutorial/tutorial.html" type="secondary">
294-
Take the Tutorial
294+
Suivre le tutoriel
295295
</ButtonLink>
296296
</CtaItem>
297297
</Flex>
@@ -312,7 +312,7 @@ Home.propTypes = {
312312

313313
function renderExamplePlaceholder(containerId) {
314314
ReactDOM.render(
315-
<h4>Loading code example...</h4>,
315+
<h4>Chargement de l'exemple de code...</h4>,
316316
document.getElementById(containerId),
317317
);
318318
}

0 commit comments

Comments
 (0)