-
Notifications
You must be signed in to change notification settings - Fork 11
Traduction de api/nuxt-*
#28
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]>
en/api/nuxt-render-and-get-window.md
Outdated
|
||
<p class="Alert Alert--info">This method is made for [test purposes](guide/development-tools#end-to-end-testing).</p> | ||
<p class="Alert Alert--info">Cette méthode est faites pour les [tests](guide/development-tools#tests-de-bout-en-bout).</p> |
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.
"est faite"
en/api/nuxt-render-route.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 method should be used mostly for [test purposes](/guide/development-tools#end-to-end-testing) as well with [nuxt.renderAndGetWindow](/api/nuxt-render-and-get-window).</p> | ||
Cette méthode devrait être utilisé en particulier pour les [tests](guide/development-tools#tests-de-bout-en-bout) aussi bien que [`nuxt.renderAndGetWindow`](/api/nuxt-render-and-get-window). |
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.
"être utilisée"
en/api/nuxt-render-route.md
Outdated
@@ -33,12 +34,12 @@ new Builder(nuxt) | |||
.build() | |||
.then(() => nuxt.renderRoute('/')) | |||
.then(({ html, error, redirected }) => { | |||
// html will be always a string | |||
// `html` sera toujour une chaine de caractères |
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.
"sera toujours"
en/api/nuxt-render.md
Outdated
```js | ||
const { Nuxt, Builder } = require('nuxt') | ||
|
||
const app = require('express')() | ||
const isProd = (process.env.NODE_ENV === 'production') | ||
const port = process.env.PORT || 3000 | ||
|
||
// We instantiate nuxt.js with the options | ||
// Nous instantion Nuxt.js avec les options |
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.
"Nous instancions" non?
en/api/nuxt-render.md
Outdated
} | ||
``` | ||
|
||
<p class="Alert">It's recommended to call **nuxt.render** at the end of your middlewares since it will handle the rendering of your web application and won't call next()</p> | ||
<p class="Alert">Il est recommandé d'appeler `nuxt.render` à la fin de votre middlewares ainsi il ferra le rendu de votre application web et n'appelera pas `next()`.</p> |
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 fera le rendu de votre application web et n'appellera"
Signed-off-by: Bruno Lesieur <[email protected]>
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.
Désolé, pas dispo la semaine dernière, mais j'ai vu quelques erreurs
@@ -1,28 +1,30 @@ | |||
--- | |||
title: "API: nuxt.renderAndGetWindow(url, options)" | |||
description: Get the window from a given url of a nuxt.js application. | |||
description: Obtient la `window` à une URL donnée d'une application Nuxt.js. |
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.
Obtient la window
à depuis une URL donnée d'une application Nuxt.js.
|
||
> Get the window from a given url of a nuxt.js application. | ||
> Obtient la `window` à une URL donnée d'une application Nuxt.js. |
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.
Obtient la window
à depuis une URL donnée d'une application Nuxt.js.
// error not null when the error layout is displayed, the error format is: | ||
// { statusCode: 500, message: 'My error message' } | ||
// `error` sera non `null` quand le layout d'erreur est affiché, le format d'erreur est : | ||
// { statusCode: 500, message: 'Mon message d'erreur' } |
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.
{ statusCode: 500, message: 'Mon message d'erreur' } => { statusCode: 500, message: 'Mon message d erreur' }
Bien que ce soit un commentaire, j’enlèverai l'apostrophe entre le "d" et "erreur", je sais je suis tatillons quelquefois 😄 (sinon il y a une erreur de syntaxe javascript)
} | ||
``` | ||
|
||
<p class="Alert">It's recommended to call **nuxt.render** at the end of your middlewares since it will handle the rendering of your web application and won't call next()</p> | ||
<p class="Alert">Il est recommandé d'appeler `nuxt.render` à la fin de votre middlewares ainsi il fera le rendu de votre application web et n'appellera pas `next()`.</p> |
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.
à la fin de votre middlewares => à la fin de vos middlewares
4 nouveaux fichiers à revoir :)