Skip to content

Commit

Permalink
📝 docs(gitbook): fix datetime / number localization example codes
Browse files Browse the repository at this point in the history
close #181
  • Loading branch information
kazupon committed Jun 20, 2017
1 parent 7955462 commit b929bd5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions gitbook/en/datetime.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,12 @@ As the Above, You can define the datetime format with named (e.g. `short`, `long
After that like the locale messages, You need to specify the `dateTimeFormats` option of `VueI18n` constructor:

```javascript
new Vue({
i18n,
const i18n = new VueI18n({
dateTimeFormats
})

new Vue({
i18n
}).$mount('#app')
```

Expand Down
7 changes: 5 additions & 2 deletions gitbook/en/number.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,12 @@ As the Above, You can define the number format with named (e.g. `currency`, etc)
After that like the locale messages, You need to specify the `numberFormats` option of `VueI18n` constructor:

```javascript
new Vue({
i18n,
const i18n = new VueI18n({
numberFormats
})

new Vue({
i18n
}).$mount('#app')
```

Expand Down

0 comments on commit b929bd5

Please sign in to comment.