Skip to content

Commit

Permalink
Prepare release v0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgv committed Nov 26, 2017
1 parent 2801410 commit 51d88a9
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 20 deletions.
39 changes: 20 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,19 +81,21 @@ module.exports = {
}
],
defaultLocale: 'en',
fallbackLocale: 'en',
messages: {
fr: {
home: 'Accueil',
about: 'À propos',
category: 'Catégorie'
vueI18n: {
messages: {
fr: {
home: 'Accueil',
about: 'À propos',
category: 'Catégorie'
},
en: {
home: 'Homepage',
about: 'About us',
category: 'Category'
}
},
en: {
home: 'Homepage',
about: 'About us',
category: 'Category'
}
},
fallbackLocale: 'en',
}
routes: {
about: {
fr: '/a-propos',
Expand Down Expand Up @@ -184,10 +186,9 @@ In the app, you'll need to preserve the language option when showing links. To d

## Options

| Option | Type | Description |
|------------------|--------|----------------------------------------------------------------------------------------------------------------------|
| `locales` | Array | A list of objects that describes the locales available in your app, each object should contain at least a `code` key |
| `defaultLocale` | String | The app's default locale, URLs for this language won't be prefixed with the locale code |
| `fallbackLocale` | String | Fallback locale used by vue-i18n when no message is available in the current language |
| `messages` | Object | Translated message to use with vue-i18n |
| `routes` | Object | Custom routing configuration, if routes are omitted, Nuxt's default routes are used |
| Option | Type | Description |
|-----------------|--------|-------------------------------------------------------------------------------------------------------------------------------------------------|
| `locales` | Array | A list of objects that describes the locales available in your app, each object should contain at least a `code` key |
| `defaultLocale` | String | The app's default locale, URLs for this language won't be prefixed with the locale code |
| `vueI18n` | Object | Configuration options for vue-i18n, refer to [the doc](http://kazupon.github.io/vue-i18n/en/api.html#constructor-options) for supported options |
| `routes` | Object | Custom routing configuration, if routes are omitted, Nuxt's default routes are used |
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nuxt-i18n",
"version": "0.0.1",
"version": "0.1.0",
"description": "i18n for Nuxt",
"main": "lib/module.js",
"license": "MIT",
Expand Down

0 comments on commit 51d88a9

Please sign in to comment.