-
Notifications
You must be signed in to change notification settings - Fork 2
Traduction de installation.md
#3
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
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
# Installation (En) <br><br> *Cette page est en cours de traduction française. Revenez une autre fois pour lire une traduction achevée ou [participez à la traduction française ici](https://github.com/vuejs-fr/vue-ssr-docs).* | ||
# Installation | ||
|
||
### Direct Download / CDN | ||
### Téléchargement direct / CDN | ||
|
||
[https://unpkg.com/vue-router/dist/vue-router.js](https://unpkg.com/vue-router/dist/vue-router.js) | ||
|
||
<!--email_off--> | ||
[Unpkg.com](https://unpkg.com) provides NPM-based CDN links. The above link will always point to the latest release on NPM. You can also use a specific version/tag via URLs like `https://unpkg.com/[email protected]/dist/vue-router.js`. | ||
[Unpkg.com](https://unpkg.com) met à disposition des liens CDN basés sur NPM. Le lien ci-dessus pointera toujours vers la dernière release publiée sur NPM. Vous pouvez également spécifier une certain-e version/tag via l'URL comme `https://unpkg.com/[email protected]/dist/vue-router.js`. | ||
<!--/email_off--> | ||
|
||
Include `vue-router` after Vue and it will install itself automatically: | ||
Inclure `vue-router` après Vue, et il s'installera automatiquement de lui-même : | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Je propose celle de Vuex qui est moins littérale mais plus fluide (pas de , pas d’auto référence)
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixé dans 1d922bd. |
||
|
||
``` html | ||
<script src="/path/to/vue.js"></script> | ||
|
@@ -21,7 +21,7 @@ Include `vue-router` after Vue and it will install itself automatically: | |
npm install vue-router | ||
``` | ||
|
||
When used with a module system, you must explicitly install the router via `Vue.use()`: | ||
Lorsqu'il est utilisé avec un système de module, vous devez explicitement installer le router via `Vue.use()` : | ||
|
||
``` js | ||
import Vue from 'vue' | ||
|
@@ -30,12 +30,11 @@ import VueRouter from 'vue-router' | |
Vue.use(VueRouter) | ||
``` | ||
|
||
You don't need to do this when using global script tags. | ||
Vous n'avez pas besoin de faire cela lors de l'utilisation des tags `<script>`. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Pour aligner Vuex et Vue Router
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixé dans 1d922bd. |
||
|
||
### Dev Build | ||
### Build de développement | ||
|
||
You will have to clone directly from GitHub and build `vue-router` yourself if | ||
you want to use the latest dev build. | ||
Vous aurez besoin de cloner directement `vue-router` depuis GitHub et le construire vous-même si vous souhaitez utiliser la dernière dev build. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Je propose pour aligner Vuex et Vue Roteur
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixé dans 1d922bd. |
||
|
||
``` bash | ||
git clone https://github.com/vuejs/vue-router.git node_modules/vue-router | ||
|
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.
Aligner cette traduction avec l'installation de Vuex (notamment pour version/tag) qui a été décomposé, je trouve ça plus courent en français :
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.
Fixé dans 1d922bd.