Skip to content

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

Merged
merged 2 commits into from
Oct 26, 2017
Merged

Traduction de api/nuxt-* #28

merged 2 commits into from
Oct 26, 2017

Conversation

MachinisteWeb
Copy link
Member

4 nouveaux fichiers à revoir :)

Signed-off-by: Bruno Lesieur <[email protected]>

<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>
Copy link

Choose a reason for hiding this comment

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

"est faite"


<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).
Copy link

Choose a reason for hiding this comment

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

"être utilisée"

@@ -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
Copy link

Choose a reason for hiding this comment

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

"sera toujours"

```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
Copy link

Choose a reason for hiding this comment

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

"Nous instancions" non?

}
```

<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>
Copy link

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]>
@MachinisteWeb MachinisteWeb merged commit 086b13b into working Oct 26, 2017
@MachinisteWeb MachinisteWeb deleted the nuxt branch October 26, 2017 07:41
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.

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.

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.

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' }

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>

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

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