Skip to content

Translation of all api/internals-*.md files #30

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 4 commits into from
Nov 7, 2017
Merged

Conversation

MachinisteWeb
Copy link
Member

Encore une petite fournée avant la dernière !

@MachinisteWeb MachinisteWeb self-assigned this Nov 6, 2017
@MachinisteWeb MachinisteWeb changed the title Translation of all api/internals-*.md files Translation of all api/internals-*.md files Nov 6, 2017
`built` | builder | À la fin du premier build
`extendRoutes` | {routes, templateVars, r} | À la génération des routes
`generate` | {builder, templatesFiles, templateVars} | À la génération des fichiers template `.nuxt`
`done` | {builder, stats} | Quand les build webpack sont fini
Copy link

Choose a reason for hiding this comment

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

"sont finis"

`generate` | {generator, routes} | Just before start generating routes. routes are decorated with payloads
Plugin | Arguments | When
-----------------|-----------------------------|-------------------------------------------------------------------------------------------------
`generateRoutes` | {generator, generateRoutes} | Après la résolution des routes pour généreration afin de faire des changements personnalisés
Copy link

Choose a reason for hiding this comment

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

"génération"

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 était pas génial mon « généreration » :D

Copy link

Choose a reason for hiding this comment

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

😂


```js
nuxt.moduleContainer.plugin('ready', async moduleContainer => {
// Do this after all modules where ready
// Faire ceci après que tous les modules soient prèts
Copy link

Choose a reason for hiding this comment

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

"prêts"


```js
this.plugin('ready', async moduleContainer => {
// Do this after all modules where ready
// Faire ceci après que tous les modules soient prèts
Copy link

Choose a reason for hiding this comment

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

"prêts"

- `options`
- `fileName`

Le rendu des templates sont fait dans le projet `buildDir` (`.nuxt`) en utilisant [lodash template](https://lodash.com/docs/4.17.4#template).
Copy link

Choose a reason for hiding this comment

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

"sont faits"


Registers module. moduleOpts can be string or `[src, options]`.
If `requireOnce` is `true` and resolved module exports `meta` prevents registering same module twice.
Enregistre le module. `moduleOpts` peut être une chaine de caractères ou `[src, options]`. Si `requireOnce` est `true`, les modules résolues `meta` préviennent l'enregitrement du même module plus d'une fois.
Copy link

Choose a reason for hiding this comment

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

"les modules résolus"

Copy link

Choose a reason for hiding this comment

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

"l'enregistrement"

`ready` | nuxt | Après l'initialisation de tous les modules et avant l'initialisation du moteur de rendu
`error` | error args | Une erreur non gérée par un des modules Nuxt attrapée
`close` | - | L'instance de Nuxt est gracieusement fermée
`listen` | ({server, host, port}) | Les **mécanismes** serveur de Nuxt commence à écouter. (Avec `nuxt start` ou `nuxt dev`)
Copy link

Choose a reason for hiding this comment

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

"commencent"


<p style="width: 294px;position: fixed; top : 64px; right: 4px;" class="Alert Alert--orange"><strong>⚠Cette page est actuellement en cours de traduction française. Vous pouvez repasser plus tard ou <a href="https://github.com/vuejs-fr/nuxt" target="_blank">participer à la traduction</a> de celle-ci dès maintenant !</strong></p><p>This class is exporting a connect middleware which handles and serves all SSR and asset requests.</p>
Cette classe exporte un middleware exportée qui gère et sert tous les rendus côté serveur et les requêtes de ressources.
Copy link

Choose a reason for hiding this comment

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

Il y a deux fois exporter dans ta phrase; c'est normal?


### Le cœur

Ces classes sont les pilliers de Nuxt et devrait exister à l'exécution ou pour le build.
Copy link

Choose a reason for hiding this comment

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

"piliers"

Copy link

Choose a reason for hiding this comment

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

"devraient"

Copy link
Member Author

Choose a reason for hiding this comment

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

J'ai vraiment du mal avec les « ent ». Faut que je sois attentif la dessus.

Signed-off-by: Bruno Lesieur <[email protected]>
@MachinisteWeb
Copy link
Member Author

Merci @rspt ! C'est super top !

Copy link

@forresst forresst left a comment

Choose a reason for hiding this comment

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

Quelques erreurs et remarques

`done` | {builder, stats} | Webpack build was done
`compile` | {builder, compiler} | Before webpack compile (compiler is a MultiCompiler instance)
`compiled` | builder | Webpack build finished
Plugin | Arguments | When
Copy link

Choose a reason for hiding this comment

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

When => Quand

title: "API: The Generator Class"
description: Nuxt Generator Class
title: "API : La classe Generator"
description: Le classe `Generator` de Nuxt
Copy link

Choose a reason for hiding this comment

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

Le classe => *La classe

---------------------|-----------------------------------------|--------------------------------------------------------------------------------
`generateRoutes` | {generator, generateRoutes} | After resolving routes to generate so we have change to customize them
`generate` | {generator, routes} | Just before start generating routes. routes are decorated with payloads
Plugin | Arguments | When
Copy link

Choose a reason for hiding this comment

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

When => Quand


<p style="width: 294px;position: fixed; top : 64px; right: 4px;" class="Alert Alert--orange"><strong>⚠Cette page est actuellement en cours de traduction française. Vous pouvez repasser plus tard ou <a href="https://github.com/vuejs-fr/nuxt" target="_blank">participer à la traduction</a> de celle-ci dès maintenant !</strong></p><p>All [modules](/guide/modules) will be called within context of ModuleContainer instance.</p>
Tous les [modules](/guide/modules) seront appelé dans le contexte de l'instance de `ModuleContainer`.
Copy link

Choose a reason for hiding this comment

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

seront appelé =>seront appelés

Plugin | Arguments | When
---------------------|---------------------------|--------------------------------------------------------------
`ready` | moduleContainuer | All modules in `nuxt.config.js` has been initialized
Plugin | Arguments | When
Copy link

Choose a reason for hiding this comment

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

When => Quand


### addPlugin (template)

Registers a plugin using `addTemplate` and adds it to first of `plugins[]` option.
You can use `template.ssr: false` to disable plugin including in SSR bundle.
Enregistrer un plugin en utilisant `addTemplate` et l'ajouter en premier à la liste des options de `plugins[]`.
Copy link

Choose a reason for hiding this comment

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

Enregistrer un plugin en utilisant => Enregistre un plugin en utilisant

et l'ajouter en premier à la liste => et l'ajoute en premier à la liste

`error` | error args | An unhandled error by one of nuxt modules caught
`close` | - | Nuxt instance is gracefully closing
`listen` | ({server, host, port}) | Nuxt **Internal** server starts listening. (Using `nuxt start` or `nuxt dev`)
Plugin | Arguments | When
Copy link

Choose a reason for hiding this comment

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

When => Quand

---------------------|---------------------------|--------------------------------------------------------------------------------
`ready` | renderer | SSR Middleware and all resources are ready
`setupMiddleware` | connect instance (app) | Before nuxt adds it's middleware stack. We can use it to register custom server side middleware.
Plugin | Arguments | When
Copy link

Choose a reason for hiding this comment

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

When => Quand


These classes are the hearth of Nuxt and should exist on both runtime and build time.
Cette section va vous aider à vous familiariser avec les mécanismes de Nuxt et vous servira de référence pour mieux comprendre comment écrire votre propre module.
Copy link

Choose a reason for hiding this comment

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

va vous aider => vous aidera



## Tapable plugins
## Plugins
Copy link

Choose a reason for hiding this comment

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

Plugins => Plugins Tapable

Pourquoi ce titre devrait différer de tous les autres fichiers ?

Signed-off-by: Bruno Lesieur <[email protected]>
Signed-off-by: Bruno Lesieur <[email protected]>
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.

3 participants