-
Notifications
You must be signed in to change notification settings - Fork 11
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
Conversation
Signed-off-by: Bruno Lesieur <[email protected]>
api/internals-*.md
files
en/api/internals-builder.md
Outdated
`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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"sont finis"
en/api/internals-generator.md
Outdated
`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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"génération"
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😂
en/api/internals-module-container.md
Outdated
|
||
```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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"prêts"
en/api/internals-module-container.md
Outdated
|
||
```js | ||
this.plugin('ready', async moduleContainer => { | ||
// Do this after all modules where ready | ||
// Faire ceci après que tous les modules soient prèts |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"prêts"
en/api/internals-module-container.md
Outdated
- `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). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"sont faits"
en/api/internals-module-container.md
Outdated
|
||
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"les modules résolus"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"l'enregistrement"
en/api/internals-nuxt.md
Outdated
`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`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"commencent"
en/api/internals-renderer.md
Outdated
|
||
<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. |
There was a problem hiding this comment.
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?
en/api/internals.md
Outdated
|
||
### Le cœur | ||
|
||
Ces classes sont les pilliers de Nuxt et devrait exister à l'exécution ou pour le build. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"piliers"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"devraient"
There was a problem hiding this comment.
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]>
Merci @rspt ! C'est super top ! |
There was a problem hiding this 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
en/api/internals-builder.md
Outdated
`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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When => Quand
en/api/internals-generator.md
Outdated
title: "API: The Generator Class" | ||
description: Nuxt Generator Class | ||
title: "API : La classe Generator" | ||
description: Le classe `Generator` de Nuxt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Le classe => *La classe
en/api/internals-generator.md
Outdated
---------------------|-----------------------------------------|-------------------------------------------------------------------------------- | ||
`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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When => Quand
en/api/internals-module-container.md
Outdated
|
||
<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`. |
There was a problem hiding this comment.
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
en/api/internals-module-container.md
Outdated
Plugin | Arguments | When | ||
---------------------|---------------------------|-------------------------------------------------------------- | ||
`ready` | moduleContainuer | All modules in `nuxt.config.js` has been initialized | ||
Plugin | Arguments | When |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When => Quand
en/api/internals-module-container.md
Outdated
|
||
### 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[]`. |
There was a problem hiding this comment.
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
en/api/internals-nuxt.md
Outdated
`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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When => Quand
en/api/internals-renderer.md
Outdated
---------------------|---------------------------|-------------------------------------------------------------------------------- | ||
`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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When => Quand
en/api/internals.md
Outdated
|
||
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. |
There was a problem hiding this comment.
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
en/api/internals-generator.md
Outdated
|
||
|
||
## Tapable plugins | ||
## Plugins |
There was a problem hiding this comment.
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]>
Encore une petite fournée avant la dernière !