Skip to content

Commit

Permalink
docs(README): update installation section
Browse files Browse the repository at this point in the history
  • Loading branch information
kazupon committed Nov 26, 2015
1 parent ada2673 commit bb42f2c
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Internationalization plugin of Vue.js


# Requirements
- works with Vue.js ^`0.12.0`
- works with Vue.js `0.12.0`+


# Installation
Expand All @@ -28,6 +28,17 @@ $ npm install vue-i18n
$ bower install vue-i18n
```

When used in CommonJS, you must explicitly install the router via Vue.use():

```javascript
var Vue = require('vue')
var i18n = require('vue-validator')

Vue.use(i18n, { ... })
```

You don't need to do this when using the standalone build because it installs itself automatically.

# Usage

```javascript
Expand Down

0 comments on commit bb42f2c

Please sign in to comment.