From 0baf127e4e10b7c483e6292f24cdc92b958e645d Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Sun, 19 Feb 2017 18:54:38 +0900
Subject: [PATCH 001/129] ja initialized as a copy of en
---
ja/api/components-nuxt-child.md | 48 +++++
ja/api/components-nuxt-link.md | 23 ++
ja/api/components-nuxt.md | 22 ++
ja/api/configuration-build.md | 248 +++++++++++++++++++++
ja/api/configuration-cache.md | 33 +++
ja/api/configuration-css.md | 32 +++
ja/api/configuration-dev.md | 62 ++++++
ja/api/configuration-env.md | 41 ++++
ja/api/configuration-generate.md | 125 +++++++++++
ja/api/configuration-head.md | 27 +++
ja/api/configuration-loading.md | 109 ++++++++++
ja/api/configuration-plugins.md | 32 +++
ja/api/configuration-rootdir.md | 17 ++
ja/api/configuration-router.md | 149 +++++++++++++
ja/api/configuration-srcdir.md | 32 +++
ja/api/configuration-transition.md | 36 ++++
ja/api/index.md | 41 ++++
ja/api/menu.json | 95 ++++++++
ja/api/nuxt-render-and-get-window.md | 35 +++
ja/api/nuxt-render-route.md | 43 ++++
ja/api/nuxt-render.md | 45 ++++
ja/api/nuxt.md | 38 ++++
ja/api/pages-fetch.md | 49 +++++
ja/api/pages-head.md | 40 ++++
ja/api/pages-layout.md | 24 +++
ja/api/pages-middleware.md | 38 ++++
ja/api/pages-scrolltotop.md | 26 +++
ja/api/pages-transition.md | 105 +++++++++
ja/api/pages-validate.md | 30 +++
ja/examples/async-data.md | 6 +
ja/examples/auth-routes.md | 210 ++++++++++++++++++
ja/examples/cached-components.md | 6 +
ja/examples/custom-loading.md | 7 +
ja/examples/custom-routes.md | 7 +
ja/examples/global-css.md | 7 +
ja/examples/hello-world.md | 9 +
ja/examples/i18n.md | 7 +
ja/examples/layouts.md | 8 +
ja/examples/menu.json | 33 +++
ja/examples/middleware.md | 7 +
ja/examples/nested-routes.md | 7 +
ja/examples/plugins.md | 7 +
ja/examples/routes-transitions.md | 8 +
ja/examples/seo-html-head.md | 7 +
ja/examples/testing.md | 6 +
ja/examples/vuex-store.md | 7 +
ja/faq/async-data-components.md | 14 ++
ja/faq/css-flash.md | 12 ++
ja/faq/duplicated-meta-tags.md | 42 ++++
ja/faq/extend-webpack.md | 18 ++
ja/faq/external-resources.md | 46 ++++
ja/faq/github-pages.md | 44 ++++
ja/faq/google-analytics.md | 60 ++++++
ja/faq/heroku-deployment.md | 40 ++++
ja/faq/host-port.md | 26 +++
ja/faq/jsx.md | 43 ++++
ja/faq/menu.json | 33 +++
ja/faq/now-deployment.md | 25 +++
ja/faq/postcss-plugins.md | 20 ++
ja/faq/pre-processors.md | 31 +++
ja/faq/surge-deployment.md | 33 +++
ja/faq/webpack-plugins.md | 24 +++
ja/faq/window-document-undefined.md | 23 ++
ja/guide/assets.md | 98 +++++++++
ja/guide/async-data.md | 114 ++++++++++
ja/guide/commands.md | 84 ++++++++
ja/guide/configuration.md | 84 ++++++++
ja/guide/contribution-guide.md | 19 ++
ja/guide/development-tools.md | 154 +++++++++++++
ja/guide/directory-structure.md | 94 ++++++++
ja/guide/index.md | 102 +++++++++
ja/guide/installation.md | 92 ++++++++
ja/guide/menu.json | 107 +++++++++
ja/guide/plugins.md | 98 +++++++++
ja/guide/routing.md | 311 +++++++++++++++++++++++++++
ja/guide/views.md | 165 ++++++++++++++
ja/guide/vuex-store.md | 189 ++++++++++++++++
ja/lang.json | 50 +++++
78 files changed, 4289 insertions(+)
create mode 100644 ja/api/components-nuxt-child.md
create mode 100644 ja/api/components-nuxt-link.md
create mode 100644 ja/api/components-nuxt.md
create mode 100644 ja/api/configuration-build.md
create mode 100644 ja/api/configuration-cache.md
create mode 100644 ja/api/configuration-css.md
create mode 100644 ja/api/configuration-dev.md
create mode 100644 ja/api/configuration-env.md
create mode 100644 ja/api/configuration-generate.md
create mode 100644 ja/api/configuration-head.md
create mode 100644 ja/api/configuration-loading.md
create mode 100644 ja/api/configuration-plugins.md
create mode 100644 ja/api/configuration-rootdir.md
create mode 100644 ja/api/configuration-router.md
create mode 100644 ja/api/configuration-srcdir.md
create mode 100644 ja/api/configuration-transition.md
create mode 100644 ja/api/index.md
create mode 100644 ja/api/menu.json
create mode 100644 ja/api/nuxt-render-and-get-window.md
create mode 100644 ja/api/nuxt-render-route.md
create mode 100644 ja/api/nuxt-render.md
create mode 100644 ja/api/nuxt.md
create mode 100644 ja/api/pages-fetch.md
create mode 100644 ja/api/pages-head.md
create mode 100644 ja/api/pages-layout.md
create mode 100644 ja/api/pages-middleware.md
create mode 100644 ja/api/pages-scrolltotop.md
create mode 100644 ja/api/pages-transition.md
create mode 100644 ja/api/pages-validate.md
create mode 100644 ja/examples/async-data.md
create mode 100644 ja/examples/auth-routes.md
create mode 100644 ja/examples/cached-components.md
create mode 100644 ja/examples/custom-loading.md
create mode 100644 ja/examples/custom-routes.md
create mode 100644 ja/examples/global-css.md
create mode 100644 ja/examples/hello-world.md
create mode 100644 ja/examples/i18n.md
create mode 100644 ja/examples/layouts.md
create mode 100644 ja/examples/menu.json
create mode 100644 ja/examples/middleware.md
create mode 100644 ja/examples/nested-routes.md
create mode 100644 ja/examples/plugins.md
create mode 100644 ja/examples/routes-transitions.md
create mode 100644 ja/examples/seo-html-head.md
create mode 100644 ja/examples/testing.md
create mode 100644 ja/examples/vuex-store.md
create mode 100644 ja/faq/async-data-components.md
create mode 100644 ja/faq/css-flash.md
create mode 100644 ja/faq/duplicated-meta-tags.md
create mode 100644 ja/faq/extend-webpack.md
create mode 100644 ja/faq/external-resources.md
create mode 100644 ja/faq/github-pages.md
create mode 100644 ja/faq/google-analytics.md
create mode 100644 ja/faq/heroku-deployment.md
create mode 100644 ja/faq/host-port.md
create mode 100644 ja/faq/jsx.md
create mode 100644 ja/faq/menu.json
create mode 100644 ja/faq/now-deployment.md
create mode 100644 ja/faq/postcss-plugins.md
create mode 100644 ja/faq/pre-processors.md
create mode 100644 ja/faq/surge-deployment.md
create mode 100644 ja/faq/webpack-plugins.md
create mode 100644 ja/faq/window-document-undefined.md
create mode 100644 ja/guide/assets.md
create mode 100644 ja/guide/async-data.md
create mode 100644 ja/guide/commands.md
create mode 100644 ja/guide/configuration.md
create mode 100644 ja/guide/contribution-guide.md
create mode 100644 ja/guide/development-tools.md
create mode 100644 ja/guide/directory-structure.md
create mode 100644 ja/guide/index.md
create mode 100644 ja/guide/installation.md
create mode 100644 ja/guide/menu.json
create mode 100644 ja/guide/plugins.md
create mode 100644 ja/guide/routing.md
create mode 100644 ja/guide/views.md
create mode 100644 ja/guide/vuex-store.md
create mode 100644 ja/lang.json
diff --git a/ja/api/components-nuxt-child.md b/ja/api/components-nuxt-child.md
new file mode 100644
index 000000000..5cdb900d9
--- /dev/null
+++ b/ja/api/components-nuxt-child.md
@@ -0,0 +1,48 @@
+---
+title: "API: The Component"
+description: Display the current page
+---
+
+# The <nuxt-child> Component
+
+> This component is used for displaying the children components in a [nested route](/guide/routing#nested-routes).
+
+Example:
+
+```bash
+-| pages/
+---| parent/
+------| child.vue
+---| parent.vue
+```
+
+This file tree will generate these routes:
+```js
+[
+ {
+ path: '/parent',
+ component: '~pages/parent.vue',
+ name: 'parent',
+ children: [
+ {
+ path: 'child',
+ component: '~pages/parent/child.vue',
+ name: 'parent-child'
+ }
+ ]
+ }
+]
+```
+
+To display the `child.vue` component, I have to insert ` ` inside `pages/parent.vue`:
+
+```html
+
+
+
I am the parent view
+
+
+
+```
+
+To see an example, take a look at the [nested-routes example](/examples/nested-routes).
diff --git a/ja/api/components-nuxt-link.md b/ja/api/components-nuxt-link.md
new file mode 100644
index 000000000..910a18504
--- /dev/null
+++ b/ja/api/components-nuxt-link.md
@@ -0,0 +1,23 @@
+---
+title: "API: The Component"
+description: Link the pages between them with nuxt-link.
+---
+
+# The <nuxt-link> Component
+
+> This component is used to link the page components between them.
+
+At the moment, `` is the same as [``](https://router.vuejs.org/en/api/router-link.html), so we recommend you to see how to use it on the [vue-router documentation](https://router.vuejs.org/en/api/router-link.html).
+
+Example (`pages/index.vue`):
+
+```html
+
+
+
Home page
+ About
+
+
+```
+
+In the future, we will add features to the nuxt-link component, like pre-fetching on the background for improving the responsiveness of nuxt.js applications.
diff --git a/ja/api/components-nuxt.md b/ja/api/components-nuxt.md
new file mode 100644
index 000000000..7f1f0a7aa
--- /dev/null
+++ b/ja/api/components-nuxt.md
@@ -0,0 +1,22 @@
+---
+title: "API: The Component"
+description: Display the page components inside a layout.
+---
+
+# The <nuxt> Component
+
+> This component is used only in [layouts](/guide/views#layouts) to display the page components.
+
+Example (`layouts/default.vue`):
+
+```html
+
+
+
My nav bar
+
+
My footer
+
+
+```
+
+To see an example, take a look at the [layouts example](/examples/layouts).
diff --git a/ja/api/configuration-build.md b/ja/api/configuration-build.md
new file mode 100644
index 000000000..a80297d1f
--- /dev/null
+++ b/ja/api/configuration-build.md
@@ -0,0 +1,248 @@
+---
+title: "API: The build Property"
+description: Nuxt.js lets you customize the webpack configuration for building your web application as you want.
+---
+
+# The build Property
+
+> Nuxt.js lets you customize the webpack configuration for building your web application as you want.
+
+## analyze
+
+> Nuxt.js use [webpack-bundle-analyzer](https://github.com/th0r/webpack-bundle-analyzer) to let you visualize your bundles and how to optimize them.
+
+- Type: `Boolean` or `Object`
+- Default: `false`
+
+If an object, see available properties [here](https://github.com/th0r/webpack-bundle-analyzer#as-plugin).
+
+Example (`nuxt.config.js`):
+```js
+module.exports = {
+ build: {
+ analyze: true
+ // or
+ analyze: {
+ analyzerMode: 'static'
+ }
+ }
+}
+```
+
+**INFO:** You can use the command `nuxt build --analyzer` or `nuxt build -a` to build your application and launch the bundle analyzer on [http://localhost:8888](http://localhost:8888)
+
+## babel
+
+- Type: `Object`
+
+> Customize babel configuration for JS and Vue files.
+
+Default:
+```js
+{
+ plugins: [
+ 'transform-async-to-generator',
+ 'transform-runtime'
+ ],
+ presets: [
+ ['es2015', { modules: false }],
+ 'stage-2'
+ ]
+}
+```
+
+Example (`nuxt.config.js`):
+```js
+module.exports = {
+ build: {
+ babel: {
+ presets: ['es2015', 'stage-0']
+ }
+ }
+}
+```
+
+## extend
+
+- Type: `Function`
+
+> Extend the webpack configuration manually for the client & server bundles.
+
+The extend is called twice, one time for the server bundle, and one time for the client bundle. The arguments of the method are:
+1. Webpack config object
+2. Object with the folowing keys (all boolean): `dev`, `isClient`, `isServer`
+
+Example (`nuxt.config.js`):
+```js
+module.exports = {
+ build: {
+ extend (config, { isClient }) {
+ // Extend only webpack config for client-bundle
+ if (isClient) {
+ config.devtool = 'eval-source-map'
+ }
+ }
+ }
+}
+```
+
+If you want to see more about our default webpack configuration, take a look at our [webpack directory](https://github.com/nuxt/nuxt.js/tree/master/lib/webpack).
+
+## filenames
+
+- Type: `Object`
+
+> Customize bundle filenames
+
+Default:
+```js
+{
+ css: 'style.css',
+ vendor: 'vendor.bundle.js',
+ app: 'nuxt.bundle.js'
+}
+```
+
+Example (`nuxt.config.js`):
+```js
+module.exports = {
+ build: {
+ filenames: {
+ css: 'app.css',
+ vendor: 'vendor.js',
+ app: 'app.js'
+ }
+ }
+}
+```
+
+## loaders
+
+- Type: `Array`
+ - Items: `Object`
+
+> Cusomize webpack loaders
+
+Default:
+```js
+[
+ {
+ test: /\.(png|jpe?g|gif|svg)$/,
+ loader: 'url-loader',
+ query: {
+ limit: 1000, // 1KO
+ name: 'img/[name].[hash:7].[ext]'
+ }
+ },
+ {
+ test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/,
+ loader: 'url-loader',
+ query: {
+ limit: 1000, // 1 KO
+ name: 'fonts/[name].[hash:7].[ext]'
+ }
+ }
+]
+```
+
+Example (`nuxt.config.js`):
+```js
+module.exports = {
+ build: {
+ loaders: [
+ {
+ test: /\.(png|jpe?g|gif|svg)$/,
+ loader: 'url-loader',
+ query: {
+ limit: 10000, // 10KO
+ name: 'img/[name].[hash].[ext]'
+ }
+ }
+ ]
+ }
+}
+```
+
+When the loaders are defined in the `nuxt.config.js`, the default loaders will be overwritten.
+
+## plugins
+
+- Type: `Array`
+- Default: `[]`
+
+> Add Webpack plugins
+
+Example (`nuxt.config.js`):
+```js
+const webpack = require('webpack')
+
+module.exports = {
+ build: {
+ plugins: [
+ new webpack.DefinePlugin({
+ 'process.VERSION': require('./package.json').version
+ })
+ ]
+ }
+}
+```
+
+## postcss
+
+- **Type:** `Array`
+
+> Customize [postcss](https://github.com/postcss/postcss) options
+
+Default:
+```js
+[
+ require('autoprefixer')({
+ browsers: ['last 3 versions']
+ })
+]
+```
+
+Example (`nuxt.config.js`):
+```js
+module.exports = {
+ build: {
+ postcss: [
+ require('postcss-nested')(),
+ require('postcss-responsive-type')(),
+ require('postcss-hexrgba')(),
+ require('autoprefixer')({
+ browsers: ['last 3 versions']
+ })
+ ]
+ }
+}
+```
+
+## vendor
+
+> Nuxt.js lets you add modules inside the `vendor.bundle.js` file generated to reduce the size of the app bundle. It's really useful when using external modules (like `axios` for example)
+
+- **Type:** `Array`
+ - **Items:** `String`
+
+To add a module/file inside the vendor bundle, add the `build.vendor` key inside `nuxt.config.js`:
+
+```js
+module.exports = {
+ build: {
+ vendor: ['axios']
+ }
+}
+```
+
+You can also give a path to a file, like a custom lib you created:
+```js
+module.exports = {
+ build: {
+ vendor: [
+ 'axios',
+ '~plugins/my-lib.js'
+ ]
+ }
+}
+```
diff --git a/ja/api/configuration-cache.md b/ja/api/configuration-cache.md
new file mode 100644
index 000000000..5db7a1db0
--- /dev/null
+++ b/ja/api/configuration-cache.md
@@ -0,0 +1,33 @@
+---
+title: "API: The cache Property"
+description: Nuxt.js use lru-cache to allow cached components for better render performances
+---
+
+# The cache Property
+
+> Nuxt.js use [lru-cache](https://github.com/isaacs/node-lru-cache) to allow cached components for better render performances
+
+## Usage
+
+- **Type:** `Boolean` or `Object` (Default: `false`)
+
+If an object, see [lru-cache options](https://github.com/isaacs/node-lru-cache#options).
+
+Use the `cache` key in your `nuxt.config.js`:
+```js
+module.exports = {
+ cache: true
+ // or
+ cache: {
+ max: 1000,
+ maxAge: 900000
+ }
+}
+```
+
+If `cache` is set to `true` the default keys given are:
+
+| key | Optional? | Type | Default | definition |
+|------|------------|-----|---------|------------|
+| `max` | Optional | Integer | 1000 | The maximum size of the cached components, when the 1001 is added, the first one added will be removed from the cache to let space for the new one. |
+| `maxAge` | Optional | Integer | 900000 | Maximum age in ms, default to 15 minutes. |
diff --git a/ja/api/configuration-css.md b/ja/api/configuration-css.md
new file mode 100644
index 000000000..8abd539fc
--- /dev/null
+++ b/ja/api/configuration-css.md
@@ -0,0 +1,32 @@
+---
+title: "API: The css Property"
+description: Nuxt.js lets you define the CSS files/modules/libraries you want to set globally (included in every pages).
+---
+
+# The css Property
+
+> Nuxt.js lets you define the CSS files/modules/libraries you want to set globally (included in every pages).
+
+- **Type:** `Array`
+ - **Items:** `String` or `Object`
+
+If the item is an object, the properties are:
+- src: `String` (path of the file)
+- lang: `String` ([pre-processor used](/guide/pages#using-pre-processors))
+
+In `nuxt.config.js`, add the CSS resources:
+
+```js
+module.exports = {
+ css: [
+ // Load a node.js module
+ 'hover.css/css/hover-min.css',
+ // node.js module but we specify the pre-processor
+ { src: 'bulma', lang: 'sass' },
+ // Css file in the project
+ '~assets/css/main.css'
+ ]
+}
+```
+
+**In production**, all CSS will be minified and extracted in a file named `styles.css` and added in the `
` of the page.
diff --git a/ja/api/configuration-dev.md b/ja/api/configuration-dev.md
new file mode 100644
index 000000000..a913984a0
--- /dev/null
+++ b/ja/api/configuration-dev.md
@@ -0,0 +1,62 @@
+---
+title: "API: The dev Property"
+description: Define the development or production mode.
+---
+
+# The dev Property
+
+- Type: `Boolean`
+- Default: `true`
+
+> Define the development or production mode of nuxt.js
+
+This property is overwritten by [nuxt commands](/guide/commands):
+- `dev` is forced to `true` with `nuxt`
+- `dev` is force to `false` with `nuxt build`, `nuxt start` and `nuxt generate`
+
+This property should be used when using [nuxt.js programmatically](/api/nuxt):
+
+Example:
+
+`nuxt.config.js`
+```js
+module.exports = {
+ dev: (process.env.NODE_ENV !== 'production')
+}
+```
+
+`server.js`
+```js
+const Nuxt = require('nuxt')
+const app = require('express')()
+const port = process.env.PORT || 3000
+
+// We instantiate Nuxt.js with the options
+let config = require('./nuxt.config.js')
+const nuxt = new Nuxt(config)
+app.use(nuxt.render)
+
+// Build only in dev mode
+if (config.dev) {
+ nuxt.build()
+ .catch((error) => {
+ console.error(error)
+ process.exit(1)
+ })
+}
+
+// Listen the server
+app.listen(port, '0.0.0.0')
+console.log('Server listening on localhost:' + port)
+```
+
+Then in your `package.json`:
+```json
+{
+ "scripts": {
+ "dev": "node server.js",
+ "build": "nuxt build",
+ "start": "NODE_ENV=production node server.js"
+ }
+}
+```
diff --git a/ja/api/configuration-env.md b/ja/api/configuration-env.md
new file mode 100644
index 000000000..12765e988
--- /dev/null
+++ b/ja/api/configuration-env.md
@@ -0,0 +1,41 @@
+---
+title: "API: The env Property"
+description: Share environment variables between client and server.
+---
+
+# The env Property
+
+- Type: `Object`
+
+> Nuxt.js lets you create environment variables that will be shared for the client and server-side.
+
+Example (`nuxt.config.js`):
+
+```js
+module.exports = {
+ env: {
+ baseUrl: process.env.BASE_URL || 'http://localhost:3000'
+ }
+}
+```
+
+This lets me create a `baseUrl` property that will be equal to the `BASE_URL` environment variable if defined, otherwise, equal to `http://localhost:3000`.
+
+Then, I can access my `baseUrl` variable with 2 ways:
+1. Via `process.env.baseUrl`
+2. Via `context.baseUrl`, see [context api](/api#context)
+
+You can use the `env` property for giving public token for example.
+
+For the example above, we can use it to configure [axios](https://github.com/mzabriskie/axios).
+
+`plugins/axios.js`:
+```js
+import axios from 'axios'
+
+export default axios.create({
+ baseURL: process.env.baseUrl
+})
+```
+
+Then, in your pages, you can import axios like this: `import axios from '~plugins/axios'`
diff --git a/ja/api/configuration-generate.md b/ja/api/configuration-generate.md
new file mode 100644
index 000000000..1e3886819
--- /dev/null
+++ b/ja/api/configuration-generate.md
@@ -0,0 +1,125 @@
+---
+title: "API: The generate Property"
+description: Configure the generation of your universal web application to a static web application.
+---
+
+# The generate Property
+
+- Type: `Object`
+
+> Configure the generation of your universal web application to a static web application.
+
+When launching `nuxt generate` or calling `nuxt.generate()`, nuxt.js will use the configuration defined in the `generate` property.
+
+## dir
+
+- Type: 'Sring'
+- Default: `'dist'`
+
+Directory name created by `nuxt generate`.
+
+## routeParams
+
+- Type: `Object`
+ - Key: `String` (route path)
+ - Value: `Array` or `Function`
+
+When using [dynamic routes](/guide/routing#dynamic-routes), you need to define a mapping of params for each dynamic route to generate.
+
+Example:
+
+```bash
+-| pages/
+---| index.vue
+---| users/
+-----| _id.vue
+```
+
+The routes generated by nuxt.js are `/` and `/users/:id`.
+
+If you try to launch `nuxt generate`, the terminal will exit with an error:
+
+```bash
+Could not generate the dynamic route /users/:id, please add the mapping params in nuxt.config.js (generate.routeParams).
+```
+
+We add the mapping for `/users/:id` in `nuxt.config.js`:
+```js
+module.exports = {
+ generate: {
+ routeParams: {
+ '/users/:id': [
+ { id: 1 },
+ { id: 2 },
+ { id: 3 }
+ ]
+ }
+ }
+}
+```
+
+Then when we launch `nuxt generate`:
+```bash
+[nuxt] Generating...
+[...]
+nuxt:render Rendering url / +154ms
+nuxt:render Rendering url /users/1 +12ms
+nuxt:render Rendering url /users/2 +33ms
+nuxt:render Rendering url /users/3 +7ms
+nuxt:generate Generate file: /index.html +21ms
+nuxt:generate Generate file: /users/1/index.html +31ms
+nuxt:generate Generate file: /users/2/index.html +15ms
+nuxt:generate Generate file: /users/3/index.html +23ms
+nuxt:generate HTML Files generated in 7.6s +6ms
+[nuxt] Generate done
+```
+
+Great, but what if we have **dynamic params**?
+1. Use a `Function` which returns a `Promise`
+2. Use a `Function` with a callback(err, params)
+
+### Function which returns a Promise
+
+`nuxt.config.js`
+```js
+import axios from 'axios'
+
+module.exports = {
+ generate: {
+ routeParams: {
+ '/users/:id': function () {
+ return axios.get('https://my-api/users')
+ .then((res) => {
+ return res.data.map((user) => {
+ return { id: user.id }
+ })
+ })
+ }
+ }
+ }
+}
+```
+
+## Function with a callback
+
+`nuxt.config.js`
+```js
+import axios from 'axios'
+
+module.exports = {
+ generate: {
+ routeParams: {
+ '/users/:id': function (callback) {
+ axios.get('https://my-api/users')
+ .then((res) => {
+ var params = res.data.map((user) => {
+ return { id: user.id }
+ })
+ callback(null, params)
+ })
+ .catch(callback)
+ }
+ }
+ }
+}
+```
diff --git a/ja/api/configuration-head.md b/ja/api/configuration-head.md
new file mode 100644
index 000000000..3c8e71286
--- /dev/null
+++ b/ja/api/configuration-head.md
@@ -0,0 +1,27 @@
+---
+title: "API: The head Property"
+description: Nuxt.js let you define all default meta for your application inside nuxt.config.js.
+---
+
+# The head Property
+
+> Nuxt.js let you define all default meta for your application inside `nuxt.config.js`, use the same `head` property:
+
+- **Type:** `Object`
+
+```js
+module.exports = {
+ head: {
+ titleTemplate: '%s - Nuxt.js',
+ meta: [
+ { charset: 'utf-8' },
+ { name: 'viewport', content: 'width=device-width, initial-scale=1' },
+ { hid: 'description', name: 'description', content: 'Meta description' }
+ ]
+ }
+}
+```
+
+To know the list of options you can give to `head`, take a look at [vue-meta documentation](https://github.com/declandewet/vue-meta#recognized-metainfo-properties).
+
+INFO: You can also use `head` in the page components and access to the component data through `this`, see [component head property](/api/pages-head).
diff --git a/ja/api/configuration-loading.md b/ja/api/configuration-loading.md
new file mode 100644
index 000000000..a1276936a
--- /dev/null
+++ b/ja/api/configuration-loading.md
@@ -0,0 +1,109 @@
+---
+title: "API: The loading Property"
+description: Nuxt.js uses it's own component to show a progress bar between the routes. You can customize it, disable it or create your own component.
+---
+
+# The loading Property
+
+- Type: `Boolean` or `Object` or `String`
+
+> Nuxt.js uses it's own component to show a progress bar between the routes. You can customize it, disable it or create your own component.
+
+## Disable the Progress Bar
+
+- Type: `Boolean`
+
+If you don't want to display the progress bar between the routes, simply add `loading: false` in your `nuxt.config.js` file:
+
+```js
+module.exports = {
+ loading: false
+}
+```
+
+## Customize the Progress Bar
+
+- Type: `Object`
+
+List of properties to customize the progress bar.
+
+| Key | Type | Default | Description |
+|-----|------|---------|-------------|
+| `color` | String | `'black'` | CSS color of the progress bar |
+| `failedColor` | String | `'red'` | CSS color of the progress bar when an error appended while rendering the route (if `data` or `fetch` sent back an error for example). |
+| `height` | String | `'2px'` | Height of the progress bar (used in the `style` property of the progress bar) |
+| `duration` | Number | `5000` | In ms, the maximum duration of the progress bar, Nuxt.js assumes that the route will be rendered before 5 seconds. |
+
+For a blue progress bar with 5px of height, we update the `nuxt.config.js` to the following:
+
+```js
+module.exports = {
+ loading: {
+ color: 'blue',
+ height: '5px'
+ }
+}
+```
+
+## Use a Custom Loading Component
+
+- Type: `String`
+
+You can create your own component that Nuxt.js will call instead of its default component. To do so, you need to give a path to your component in the `loading` option. Then, your component will be called directly by Nuxt.js.
+
+**Your component has to expose some of theses methods:**
+
+| Method | Required | Description |
+|--------|----------|-------------|
+| `start()` | Required | Called when a route changes, this is here where you display your component. |
+| `finish()` | Required | Called when a route is loaded (and data fetched), this is here where you hide your component. |
+| `fail()` | *Optional* | Called when a route couldn't be loaded (failed to fetch data for example). |
+| `increase(num)` | *Optional* | Called during loading the route component, `num` is an Integer < 100. |
+
+We can create our custom component in `components/loading.vue`:
+```html
+
+
+
+
+
+
+
+```
+
+Then, we update our `nuxt.config.js` to tell Nuxt.js to use our component:
+
+```js
+module.exports = {
+ loading: '~components/loading.vue'
+}
+```
diff --git a/ja/api/configuration-plugins.md b/ja/api/configuration-plugins.md
new file mode 100644
index 000000000..6998e0082
--- /dev/null
+++ b/ja/api/configuration-plugins.md
@@ -0,0 +1,32 @@
+---
+title: "API: The plugins Property"
+description: Use vue.js plugins with the plugins option of nuxt.js.
+---
+
+# The plugins Property
+
+- Type: `Array`
+ - Items: `String`
+
+> The plugins property lets you add vue.js plugins easily to your main application.
+
+Example (`nuxt.config.js`):
+```js
+module.exports = {
+ plugins: ['~plugins/vue-notifications']
+}
+```
+
+Then, we need to create a file in `plugins/vue-notifications.js`:
+```js
+import Vue from 'vue'
+import VueNotifications from 'vue-notifications'
+
+Vue.use(VueNotifications)
+```
+
+All the paths defined in the `plugins` property will be **imported** before initializing the main application.
+
+Every time you need to use `Vue.use()`, you should create a file in `plugins/` and add its path to `plugins` in `nuxt.config.js`.
+
+To learn more how to use the plugins, see the [guide documentation](/guide/plugins#vue-plugins).
diff --git a/ja/api/configuration-rootdir.md b/ja/api/configuration-rootdir.md
new file mode 100644
index 000000000..f4570d221
--- /dev/null
+++ b/ja/api/configuration-rootdir.md
@@ -0,0 +1,17 @@
+---
+title: "API: The rootDir Property"
+description: Define the workspace of nuxt.js application
+---
+
+# The rootDir Property
+
+- Type: `String`
+- Default: `process.cwd()`
+
+> Define the workspace of your nuxt.js application.
+
+This property is overwritten by [nuxt commands](/guide/commands) and set to the argument of the command (example: `nuxt my-app/` will set the `rootDir` to `my-app/` with its absolute path).
+
+This property should be used when using [nuxt.js programmatically](/api/nuxt).
+
+The downside of this option is that your `node_modules` directory should be inside the `rootDir` folder. If you want to set the path of the application without the node_modules, use the [`srcDir` option](/api/configuration-srcdir).
diff --git a/ja/api/configuration-router.md b/ja/api/configuration-router.md
new file mode 100644
index 000000000..a95817023
--- /dev/null
+++ b/ja/api/configuration-router.md
@@ -0,0 +1,149 @@
+---
+title: "API: The router Property"
+description: The router property lets you customize nuxt.js router.
+---
+
+# The router Property
+
+> The router property lets you customize nuxt.js router ([vue-router](https://router.vuejs.org/en/)).
+
+## base
+
+- Type: `String`
+- Default: `'/'`
+
+The base URL of the app. For example, if the entire single page application is served under `/app/`, then base should use the value `'/app/'`.
+
+Example (`nuxt.config.js`):
+```js
+module.exports = {
+ router: {
+ base: '/app/'
+ }
+}
+```
+
+When `base` is set, nuxt.js will also add in the document header ` `.
+
+> This option is given directly to the vue-router [Router constructor](https://router.vuejs.org/en/api/options.html).
+
+## linkActiveClass
+
+- Type: `String`
+- Default: `'nuxt-link-active'`
+
+Globally configure [``](/api/components-nuxt-link) default active class.
+
+Example (`nuxt.config.js`):
+```js
+module.exports = {
+ router: {
+ linkActiveClass: 'active-link'
+ }
+}
+```
+
+> This option is given directly to the [vue-router Router constructor](https://router.vuejs.org/en/api/options.html).
+
+## scrollBehavior
+
+- Type: `Function`
+
+The `scrollBehavior` option lets you define a custom behavior for the scroll position between the routes. This method is called every time a page is rendered.
+
+By default, the scrollBehavior option is set to:
+```js
+const scrollBehavior = (to, from, savedPosition) => {
+ // savedPosition is only available for popstate navigations.
+ if (savedPosition) {
+ return savedPosition
+ } else {
+ let position = {}
+ // if no children detected
+ if (to.matched.length < 2) {
+ // scroll to the top of the page
+ position = { x: 0, y: 0 }
+ }
+ else if (to.matched.some((r) => r.components.default.options.scrollToTop)) {
+ // if one of the children has scrollToTop option set to true
+ position = { x: 0, y: 0 }
+ }
+ // if link has anchor, scroll to anchor by returning the selector
+ if (to.hash) {
+ position = { selector: to.hash }
+ }
+ return position
+ }
+}
+```
+
+Example of forcing the scroll position to the top for every routes:
+
+`nuxt.config.js`
+```js
+module.exports = {
+ router: {
+ scrollBehavior: function (to, from, savedPosition) {
+ return { x: 0, y: 0 }
+ }
+ }
+}
+```
+
+> This option is given directly to the vue-router [Router constructor](https://router.vuejs.org/en/api/options.html).
+
+## middleware
+
+- Type: `String` or `Array`
+ - Items: `String`
+
+Set the default(s) middleware for every pages of the application.
+
+Example:
+
+`nuxt.config.js`
+```js
+module.exports = {
+ router: {
+ // Run the middleware/user-agent.js on every pages
+ middleware: 'user-agent'
+ }
+}
+```
+
+`middleware/user-agent.js`
+```js
+export default function (context) {
+ // Add the userAgent property in the context (available in `data` and `fetch`)
+ context.userAgent = context.isServer ? context.req.headers['user-agent'] : navigator.userAgent
+}
+```
+
+To learn more about the middleware, see the [middleware guide](/guide/routing#middleware).
+
+## extendRoutes
+
+- Type: `Function`
+
+You may want to extend the routes created by nuxt.js. You can do it via the `extendRoutes` option.
+
+Example of adding a custom route:
+
+`nuxt.config.js`
+```js
+const resolve = require('path').resolve
+
+module.exports = {
+ router: {
+ extendRoutes (routes) {
+ routes.push({
+ name: 'custom',
+ path: '*',
+ component: resolve(__dirname, 'pages/404.vue')
+ })
+ }
+ }
+}
+```
+
+The schema of the route should respect the [vue-router](https://router.vuejs.org/en/) schema.
diff --git a/ja/api/configuration-srcdir.md b/ja/api/configuration-srcdir.md
new file mode 100644
index 000000000..9b23566d0
--- /dev/null
+++ b/ja/api/configuration-srcdir.md
@@ -0,0 +1,32 @@
+---
+title: "API: The srcDir Property"
+description: Define the source directory of your nuxt.js application
+---
+
+# The srcDir Property
+
+- Type: `String`
+- Default: [rootDir value](/api/configuration-rootdir)
+
+> Define the source directory of your nuxt.js application
+
+Example (`nuxt.config.js`):
+
+```js
+module.exports = {
+ srcDir: 'client/'
+}
+```
+
+Then, your application structure can be:
+```bash
+-| app/
+---| node_modules/
+---| client/
+------| pages/
+------| components/
+---| nuxt.config.js
+---| package.json
+```
+
+This option is useful to have a custom server and using nuxt.js, so all npm dependencies can be regrouped in one `package.json`.
diff --git a/ja/api/configuration-transition.md b/ja/api/configuration-transition.md
new file mode 100644
index 000000000..9fa7efc79
--- /dev/null
+++ b/ja/api/configuration-transition.md
@@ -0,0 +1,36 @@
+---
+title: "API: The transition Property"
+description: Set the default properties of the pages transitions.
+---
+
+# The transition Property
+
+- Type: `String` or `Object`
+
+> Used to set the default properties of the pages transitions.
+
+Default:
+```js
+{
+ name: 'page',
+ mode: 'out-in'
+}
+```
+
+Example (`nuxt.config.js`):
+
+```js
+module.exports = {
+ transition: 'page'
+ // or
+ transition: {
+ name: 'page',
+ mode: 'out-in',
+ beforeEnter (el) {
+ console.log('Before enter...');
+ }
+ }
+}
+```
+
+The transition key in `nuxt.config.js` is used to set the default properties for the pages transitions. To learn more about the available keys when the `transition` key is an object, see the [pages transition property](/api/pages-transition#object).
diff --git a/ja/api/index.md b/ja/api/index.md
new file mode 100644
index 000000000..4fb78c6f5
--- /dev/null
+++ b/ja/api/index.md
@@ -0,0 +1,41 @@
+---
+title: "API: The data Method"
+description: Nuxt.js supercharges the data method from vue.js to let you handle async operation before setting the component data.
+---
+
+# The data Method
+
+> Nuxt.js *supercharges* the `data` method from vue.js to let you handle async operation before setting the component data.
+
+- **Type:** `Function`
+
+`data` is called every time before loading the component (**only for pages components**). It can be called from the server-side or before navigating to the corresponding route. This method receives the **context** as the first argument, you can use it to fetch some data and return the component data.
+
+```js
+export default {
+ data (context) {
+ return { foo: 'bar' }
+ }
+}
+```
+
+You do **NOT** have access of the component instance through `this` inside `data` because it is called **before initiating** the component.
+
+## Context
+
+List of all the available keys in `context`:
+
+| Key | Type | Available | Description |
+|-----|------|--------------|-------------|
+| `isClient` | Boolean | Client & Server | Boolean to let you know if you're actually renderer from the client-side |
+| `isServer` | Boolean | Client & Server | Boolean to let you know if you're actually renderer from the server-side |
+| `isDev` | Boolean | Client & Server | Boolean to let you know if you're in dev mode, can be useful for caching some data in production |
+| `route` | [vue-router route](https://router.vuejs.org/en/api/route-object.html) | Client & Server | `vue-router` route instance. |
+| `store` | [vuex store](http://vuex.vuejs.org/en/api.html#vuexstore-instance-properties) | Client & Server | `Vuex.Store` instance. **Available only if the [vuex store](/guide/vuex-store) is set.** |
+| `env` | Object | Client & Server | Environment variables set in `nuxt.config.js`, see [env api](/api/configuration-env) |
+| `params` | Object | Client & Server | Alias of route.params |
+| `query` | Object | Client & Server | Alias of route.query |
+| `req` | [http.Request](https://nodejs.org/api/http.html#http_class_http_incomingmessage) | Server | Request from the node.js server. If nuxt is used as a middleware, the req object might be different depending of the framework you're using. *Not available via `nuxt generate`*. |
+| `res` | [http.Response](https://nodejs.org/api/http.html#http_class_http_serverresponse) | Server | Response from the node.js server. If nuxt is used as a middleware, the res object might be different depending of the framework you're using. *Not available via `nuxt generate`*. |
+| `redirect` | Function | Client & Server | Use this method to redirect the user to another route, the status code is used on the server-side, default to 302. `redirect([status,] path [, query])` |
+| `error` | Function | Client & Server | Use this method to show the error page: `error(params)`. The `params` should have the fields `statusCode` and `message`. |
diff --git a/ja/api/menu.json b/ja/api/menu.json
new file mode 100644
index 000000000..e32f0ff0f
--- /dev/null
+++ b/ja/api/menu.json
@@ -0,0 +1,95 @@
+[
+ {
+ "title": "Pages",
+ "links": [
+ { "name": "data", "to": "/" },
+ { "name": "fetch", "to": "/pages-fetch" },
+ { "name": "head", "to": "/pages-head" },
+ { "name": "layout", "to": "/pages-layout" },
+ { "name": "middleware", "to": "/pages-middleware" },
+ { "name": "scrollToTop", "to": "/pages-scrolltotop" },
+ {
+ "name": "transition", "to": "/pages-transition",
+ "contents": [
+ { "name": "String", "to": "#string" },
+ { "name": "Object", "to": "#object" },
+ { "name": "Function", "to": "#function" }
+ ]
+ },
+ { "name": "validate", "to": "/pages-validate" }
+ ]
+ },
+ {
+ "title": "Components",
+ "links": [
+ { "name": "nuxt", "to": "/components-nuxt" },
+ { "name": "nuxt-child", "to": "/components-nuxt-child" },
+ { "name": "nuxt-link", "to": "/components-nuxt-link" }
+ ]
+ },
+ {
+ "title": "Configuration",
+ "links": [
+ {
+ "name": "build",
+ "to": "/configuration-build",
+ "contents": [
+ { "name": "analyze", "to": "#analyze" },
+ { "name": "babel", "to": "#babel" },
+ { "name": "extend", "to": "#extend" },
+ { "name": "filenames", "to": "#filenames" },
+ { "name": "loaders", "to": "#loaders" },
+ { "name": "plugins", "to": "#plugins" },
+ { "name": "postcss", "to": "#postcss" },
+ { "name": "vendor", "to": "#vendor" }
+ ]
+ },
+ { "name": "cache", "to": "/configuration-cache" },
+ { "name": "css", "to": "/configuration-css" },
+ { "name": "dev", "to": "/configuration-dev" },
+ { "name": "env", "to": "/configuration-env" },
+ {
+ "name": "generate",
+ "to": "/configuration-generate",
+ "contents": [
+ { "name": "dir", "to": "#dir" },
+ { "name": "routeParams", "to": "#routeparams" }
+ ]
+ },
+ { "name": "head", "to": "/configuration-head" },
+ {
+ "name": "loading",
+ "to": "/configuration-loading",
+ "contents": [
+ { "name": "Disable the Progress Bar", "to": "#disable-the-progress-bar" },
+ { "name": "Customize the Progress Bar", "to": "#customize-the-progress-bar" },
+ { "name": "Use a Custom Loading Component", "to": "#use-a-custom-loading-component" }
+ ]
+ },
+ { "name": "plugins", "to": "/configuration-plugins" },
+ { "name": "rootDir", "to": "/configuration-rootdir" },
+ {
+ "name": "router",
+ "to": "/configuration-router",
+ "contents": [
+ { "name": "base", "to": "#base" },
+ { "name": "linkActiveClass", "to": "#linkactiveclass" },
+ { "name": "scrollBehavior", "to": "#scrollbehavior" },
+ { "name": "middleware", "to": "#middleware" },
+ { "name": "extendRoutes", "to": "#extendroutes" }
+ ]
+ },
+ { "name": "srcDir", "to": "/configuration-srcdir" },
+ { "name": "transition", "to": "/configuration-transition" }
+ ]
+ },
+ {
+ "title": "Nuxt Module",
+ "links": [
+ { "name": "Usage", "to": "/nuxt" },
+ { "name": "render", "to": "/nuxt-render" },
+ { "name": "renderRoute", "to": "/nuxt-render-route" },
+ { "name": "renderAndGetWindow", "to": "/nuxt-render-and-get-window" }
+ ]
+ }
+]
diff --git a/ja/api/nuxt-render-and-get-window.md b/ja/api/nuxt-render-and-get-window.md
new file mode 100644
index 000000000..b8c4368f9
--- /dev/null
+++ b/ja/api/nuxt-render-and-get-window.md
@@ -0,0 +1,35 @@
+---
+title: "API: nuxt.renderAndGetWindow(url, options)"
+description: Get the window from a given url of a nuxt.js application.
+---
+
+# nuxt.renderAndGetWindow(url, options = {})
+
+- Type: `Function`
+- Argument: `String`
+ 1. `String`: url to render
+ 2. *Optional*, `Object`: options
+ - virtualConsole: `Boolean` (default: `true`)
+- Returns: `Promise`
+ - Returns: `window`
+
+> Get the window from a given url of a nuxt.js application.
+
+This method is made for [test purposes](guide/development-tools#end-to-end-testing).
+
+To use this function, you have to install `jsdom`:
+```bash
+npm install --save-dev jsdom
+```
+
+Example:
+```js
+const Nuxt = require('nuxt')
+const nuxt = new Nuxt()
+
+nuxt.renderAndGetWindow('http://localhost:3000')
+.then((window) => {
+ // Display the head
+ console.log(window.document.title)
+})
+```
diff --git a/ja/api/nuxt-render-route.md b/ja/api/nuxt-render-route.md
new file mode 100644
index 000000000..b99091adb
--- /dev/null
+++ b/ja/api/nuxt-render-route.md
@@ -0,0 +1,43 @@
+---
+title: "API: nuxt.renderRoute(route, context)"
+description: Render a specific route with a given context.
+---
+
+# nuxt.renderRoute(route, context = {})
+
+- Type: `Function`
+- Arguments:
+ 1. `String`, route to render
+ 2. *Optional*, `Object`, context given, available keys: `req` & `res`
+- Returns: `Promise`
+ - `html`: `String`
+ - `error`: `null` or `Object`
+ - `redirected`: `false` or `Object`
+
+> Render a specific route with a given context.
+
+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).
+
+`nuxt.renderRoute` should be executed after the build process in production mode (dev: false).
+
+Example:
+```js
+const Nuxt = require('nuxt')
+let config = require('./nuxt.config.js')
+config.dev = false
+const nuxt = new Nuxt(config)
+
+nuxt.build()
+.then(() => {
+ return nuxt.renderRoute('/')
+})
+.then(({ html, error, redirected }) => {
+ // html will be always a string
+
+ // error not null when the error layout is displayed, the error format is:
+ // { statusCode: 500, message: 'My error message' }
+
+ // redirect is not false when redirect() has been used in data() or fetch()
+ // { path: '/other-path', query: {}, status: 302 }
+})
+```
diff --git a/ja/api/nuxt-render.md b/ja/api/nuxt-render.md
new file mode 100644
index 000000000..a3ee5e8eb
--- /dev/null
+++ b/ja/api/nuxt-render.md
@@ -0,0 +1,45 @@
+---
+title: "API: nuxt.render(req, res)"
+description: You can use Nuxt.js as a middleware for your node.js server.
+---
+
+# nuxt.render(req, res)
+
+- Type: `Function`
+- Arguments:
+ 1. [Request](https://nodejs.org/api/http.html#http_class_http_incomingmessage)
+ 2. [Response](https://nodejs.org/api/http.html#http_class_http_serverresponse)
+- Returns: `Promise`
+
+> You can use nuxt.js as a middleware with `nuxt.render` for your node.js server.
+
+Example with [Express.js](https://github.com/expressjs/express):
+```js
+const Nuxt = require('nuxt')
+const app = require('express')()
+const isProd = (process.env.NODE_ENV === 'production')
+const port = process.env.PORT || 3000
+
+// We instantiate buxt.js with the options
+let config = require('./nuxt.config.js')
+config.dev = !isProd
+const nuxt = new Nuxt(config)
+
+// Render every route with nuxt.js
+app.use(nuxt.render)
+
+// Build only in dev mode with hot-reloading
+if (config.dev) {
+ nuxt.build()
+ .catch((error) => {
+ console.error(error)
+ process.exit(1)
+ })
+}
+
+// Listen the server
+app.listen(port, '0.0.0.0')
+console.log('Server listening on localhost:' + port)
+```
+
+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()
diff --git a/ja/api/nuxt.md b/ja/api/nuxt.md
new file mode 100644
index 000000000..4ff4de310
--- /dev/null
+++ b/ja/api/nuxt.md
@@ -0,0 +1,38 @@
+---
+title: "API: Nuxt(options)"
+description: You can use nuxt.js programmatically to use it as a middleware giving you the freedom of creating your own server for rendering your web applications.
+---
+
+# Using Nuxt.js Programmatically
+
+You might want to use your own server with your middleware and your API. That's why you can use Nuxt.js programmatically.
+Nuxt.js is built on the top of ES2015, which makes the code more enjoyable and cleaner to read. It doesn't make use of any transpilers and depends upon Core V8 implemented features. For these reasons, Nuxt.js targets Node.js `4.0` or higher.
+
+You can require Nuxt.js like this:
+```js
+const Nuxt = require('nuxt')
+```
+
+## Nuxt(options)
+
+To see the list of options to give to Nuxt.js, see the configuration section.
+
+```js
+const options = {}
+
+const nuxt = new Nuxt(options)
+nuxt.build()
+.then(() => {
+ // We can use nuxt.render(req, res) or nuxt.renderRoute(route, context)
+})
+```
+
+You can take a look at the [nuxt-express](https://github.com/nuxt/express) and [adonuxt](https://github.com/nuxt/adonuxt) starters to start quickly.
+
+### Debug logs
+
+If you want to display nuxt.js logs, you can add to the top of your file:
+
+```js
+process.env.DEBUG = 'nuxt:*'
+```
diff --git a/ja/api/pages-fetch.md b/ja/api/pages-fetch.md
new file mode 100644
index 000000000..aa8cf8c72
--- /dev/null
+++ b/ja/api/pages-fetch.md
@@ -0,0 +1,49 @@
+---
+title: "API: The fetch Method"
+description: The fetch method is used to fill the store before rendering the page, it's like the data method except it doesn't set the component data.
+---
+
+# The fetch Method
+
+> The fetch method is used to fill the store before rendering the page, it's like the data method except it doesn't set the component data.
+
+- **Type:** `Function`
+
+The `fetch` method, *if set*, is called every time before loading the component (**only for pages components**). It can be called from the server-side or before navigating to the corresponding route.
+
+The `fetch` method receives [the context](/api#context) as the first argument, we can use it to fetch some data and fill the store. To make the fetch method asynchronous, **return a Promise**, nuxt.js will wait for the promise to be resolved before rendering the Component.
+
+Example of `pages/index.vue`:
+```html
+
+ Stars: {{ $store.state.stars }}
+
+
+
+```
+
+You can also use async/await to make your code cleaner:
+
+```html
+
+ Stars: {{ $store.state.stars }}
+
+
+
+```
diff --git a/ja/api/pages-head.md b/ja/api/pages-head.md
new file mode 100644
index 000000000..7df5436d6
--- /dev/null
+++ b/ja/api/pages-head.md
@@ -0,0 +1,40 @@
+---
+title: "API: The head Method"
+description: Nuxt.js uses vue-meta to update the `headers` and `html attributes` of your application.
+---
+
+# The head Method
+
+> Nuxt.js uses [vue-meta](https://github.com/declandewet/vue-meta) to update the `headers` and `html attributes` of your application.
+
+- **Type:** `Object` or `Function`
+
+Use the `head` method to set the HTML Head tags for the current page.
+
+Your component data are available with `this` in the `head` method, you can use set custom meta tags with the page data.
+
+```html
+
+ {{ title }}
+
+
+
+```
+
+To avoid any duplication when used in child component, please give a unique identifier with the `hid` key, please [read more about it](https://github.com/declandewet/vue-meta#lists-of-tags).
diff --git a/ja/api/pages-layout.md b/ja/api/pages-layout.md
new file mode 100644
index 000000000..5d28db248
--- /dev/null
+++ b/ja/api/pages-layout.md
@@ -0,0 +1,24 @@
+---
+title: "API: The layout Property"
+description: Every file (first level) in the layouts directory will create a custom layout accessible with the layout property in the page component.
+---
+
+# The layout Property
+
+> Every file (first level) in the layouts directory will create a custom layout accessible with the layout property in the page component.
+
+- **Type:** `String` (default: `'default'`)
+
+Use the `layout` key in your pages components to define which layout to use:
+
+```js
+export default {
+ layout: 'blog'
+}
+```
+
+In this example, Nuxt.js will include the `layouts/blog.vue` file as a layout for this page component.
+
+Check the [demonstration video](https://www.youtube.com/watch?v=YOKnSTp7d38) to see it in action.
+
+To understand how the layouts work with nuxt.js, take a look at the [layout documentation](/guide/views#layouts).
diff --git a/ja/api/pages-middleware.md b/ja/api/pages-middleware.md
new file mode 100644
index 000000000..45c8155cc
--- /dev/null
+++ b/ja/api/pages-middleware.md
@@ -0,0 +1,38 @@
+---
+title: "API: The middleware Property"
+description: Set the middleware for a specific page of the application.
+---
+
+# The middleware Property
+
+- Type: `String` or `Array`
+ - Items: `String`
+
+Set the middleware for a specific page of the application.
+
+Example:
+
+`pages/secret.vue`
+```html
+
+ Secret page
+
+
+
+```
+
+`middleware/authenticated.js`
+```js
+export default function ({ store, redirect }) {
+ // If the user is not authenticated
+ if (!store.state.authenticated) {
+ return redirect('/login')
+ }
+}
+```
+
+To learn more about the middleware, see the [middleware guide](/guide/routing#middleware).
diff --git a/ja/api/pages-scrolltotop.md b/ja/api/pages-scrolltotop.md
new file mode 100644
index 000000000..b07b319bd
--- /dev/null
+++ b/ja/api/pages-scrolltotop.md
@@ -0,0 +1,26 @@
+---
+title: "API: The scrollToTop Property"
+description: The scrollToTop property lets you tell nuxt.js to scroll to the top before rendering the page.
+---
+
+# The scrollToTop Property
+
+> The scrollToTop property lets you tell nuxt.js to scroll to the top before rendering the page.
+
+- **Type:** `Boolean` (default: `false`)
+
+By default, nuxt.js scroll to the top when you go to another page, but with children routes, nuxt.js keep the scroll position, if you want to tell nuxt.js to scroll to the top when rendering your child route, set `scrollToTop: true`:
+
+```html
+
+ My child component
+
+
+
+```
+
+If you want to overwrite the default scroll behavior of nuxt.js, take a look at the [scrollBehavior option](/api/configuration-router#scrollBehavior).
diff --git a/ja/api/pages-transition.md b/ja/api/pages-transition.md
new file mode 100644
index 000000000..085761cf0
--- /dev/null
+++ b/ja/api/pages-transition.md
@@ -0,0 +1,105 @@
+---
+title: "API: The transition Property"
+description: Nuxt.js uses the transition component to let you create amazing transitions/animations between your pages.
+---
+
+# The transition Property
+
+> Nuxt.js uses the [<transition>](http://vuejs.org/v2/guide/transitions.html#Transitioning-Single-Elements-Components) component to let you create amazing transitions/animations between your pages.
+
+- **Type:** `String` or `Object` or `Function`
+
+To define a custom transition for a specific route, simply add the `transition` key to the page component.
+
+```js
+export default {
+ // Can be a String
+ transition: ''
+ // Or an Object
+ transition: {}
+ // or a Function
+ transition (to, from) {}
+}
+```
+
+## String
+
+If the `transition` key is set as a string, it will be used as the `transition.name`.
+
+```js
+export default {
+ transition: 'test'
+}
+```
+
+Nuxt.js will use these settings to set the component as follows:
+
+```html
+
+```
+
+## Object
+
+If the `transition` key is set as an object:
+
+```js
+export default {
+ transition: {
+ name: 'test',
+ mode: 'out-in'
+ }
+}
+```
+
+Nuxt.js will use these settings to set the component as follows:
+
+```html
+
+```
+
+The following properties that the `transition` object can have:
+
+| key | Type | Default | definition |
+|------|------|---------|-----------|
+| `name` | String | `"page"` | The transition name applied on all the routes transitions. |
+| `mode` | String | `"out-in"` | The transition mode applied on all routes, see [Vue.js documentation](http://vuejs.org/v2/guide/transitions.html#Transition-Modes). |
+| `css` | Boolean | `true` | Whether to apply CSS transition classes. Defaults to true. If set to false, will only trigger JavaScript hooks registered via component events. |
+| `type` | String | `n/a` | Specify the type of transition events to wait for to determine transition end timing. Available values are "transition" and "animation". By default, it will automatically detect the type that has a longer duration. |
+| `enterClass` | String | `n/a` | The starting state of the transition class. See [Vue.js documentation](https://vuejs.org/v2/guide/transitions.html#Custom-Transition-Classes) |
+| `enterToClass` | String | `n/a` | The ending state for the transition. See [Vue.js documentation](https://vuejs.org/v2/guide/transitions.html#Custom-Transition-Classes) |
+| `enterActiveClass` | String | `n/a` | The class applied across the entire transition duration. See [Vue.js documentation](https://vuejs.org/v2/guide/transitions.html#Custom-Transition-Classes) |
+| `leaveClass` | String | `n/a` | The starting state of the transition class. See [Vue.js documentation](https://vuejs.org/v2/guide/transitions.html#Custom-Transition-Classes) |
+| `leaveToClass` | String | `n/a` | The ending state for the transition. See [Vue.js documentation](https://vuejs.org/v2/guide/transitions.html#Custom-Transition-Classes) |
+| `leaveActiveClass` | String | `n/a` | The class applied across the entire transition duration. See [Vue.js documentation](https://vuejs.org/v2/guide/transitions.html#Custom-Transition-Classes) |
+
+
+You can also define methods in the `transition`, these are for the [JavaScript hooks](https://vuejs.org/v2/guide/transitions.html#JavaScript-Hooks):
+
+- beforeEnter(el)
+- enter(el, done)
+- afterEnter(el)
+- enterCancelled(el)
+- beforeLeave(el)
+- leave(el, done)
+- afterLeave(el)
+- leaveCancelled(el)
+
+*Note: itâs also a good idea to explicitly add `css: false` for JavaScript-only transitions so that Vue can skip the CSS detection. This also prevents CSS rules from accidentally interfering with the transition.*
+
+## Function
+
+If the `transition` key is set as a function:
+
+```js
+export default {
+ transition (to, from) {
+ if (!from) return 'slide-left'
+ return +to.query.page < +from.query.page ? 'slide-right' : 'slide-left'
+ }
+}
+```
+
+Transitions applied on navigation:
+- `/` to `/posts` => `slide-left`
+- `/posts` to `/posts?page=3` => `slide-left`
+- `/posts?page=3` to `/posts?page=2` => `slide-right`
diff --git a/ja/api/pages-validate.md b/ja/api/pages-validate.md
new file mode 100644
index 000000000..9ed52230d
--- /dev/null
+++ b/ja/api/pages-validate.md
@@ -0,0 +1,30 @@
+---
+title: "API: The validate Method"
+description: Nuxt.js lets you define a validator method inside your dynamic route component.
+---
+
+# The validate Method
+
+> Nuxt.js lets you define a validator method inside your dynamic route component.
+
+- **Type:** `Function`
+
+```js
+validate({ params, query }) {
+ return true // if the params are valid
+ return false // will stop Nuxt.js to render the route and display the error page
+}
+```
+
+Nuxt.js lets you define a validator method inside your dynamic route component (In this example: `pages/users/_id.vue`).
+
+If the validate method does not return `true`, Nuxt.js will automatically load the 404 error page.
+
+```js
+export default {
+ validate ({ params }) {
+ // Must be a number
+ return /^\d+$/.test(params.id)
+ }
+}
+```
diff --git a/ja/examples/async-data.md b/ja/examples/async-data.md
new file mode 100644
index 000000000..0fa258040
--- /dev/null
+++ b/ja/examples/async-data.md
@@ -0,0 +1,6 @@
+---
+title: Async Data
+description: Async Data example with Nuxt.js
+github: async-data
+documentation: /guide/async-data
+---
diff --git a/ja/examples/auth-routes.md b/ja/examples/auth-routes.md
new file mode 100644
index 000000000..033b605ed
--- /dev/null
+++ b/ja/examples/auth-routes.md
@@ -0,0 +1,210 @@
+---
+title: Auth Routes
+description: Authenticated routes example with Nuxt.js
+github: auth-routes
+livedemo: https://nuxt-auth-routes.gomix.me
+liveedit: https://gomix.com/#!/project/nuxt-auth-routes
+---
+
+# Documentation
+
+> Nuxt.js can be used to create authenticated routes easily.
+
+## Using Express and Sessions
+
+To add the sessions feature in our application, we will use `express` and `express-session`, for this, we need to use Nuxt.js programmatically.
+
+First, we install the dependencies:
+```bash
+yarn add express express-session body-parser whatwg-fetch
+```
+
+*We will talk about `whatwg-fetch` later.*
+
+Then we create our `server.js`:
+```js
+const Nuxt = require('nuxt')
+const bodyParser = require('body-parser')
+const session = require('express-session')
+const app = require('express')()
+
+// Body parser, to access req.body
+app.use(bodyParser.json())
+
+// Sessions to create req.session
+app.use(session({
+ secret: 'super-secret-key',
+ resave: false,
+ saveUninitialized: false,
+ cookie: { maxAge: 60000 }
+}))
+
+// POST /api/login to log in the user and add him to the req.session.authUser
+app.post('/api/login', function (req, res) {
+ if (req.body.username === 'demo' && req.body.password === 'demo') {
+ req.session.authUser = { username: 'demo' }
+ return res.json({ username: 'demo' })
+ }
+ res.status(401).json({ error: 'Bad credentials' })
+})
+
+// POST /api/logout to log out the user and remove it from the req.session
+app.post('/api/logout', function (req, res) {
+ delete req.session.authUser
+ res.json({ ok: true })
+})
+
+// We instantiate Nuxt.js with the options
+const isProd = process.env.NODE_ENV === 'production'
+const nuxt = new Nuxt({ dev: !isProd })
+// No build in production
+const promise = (isProd ? Promise.resolve() : nuxt.build())
+promise.then(() => {
+ app.use(nuxt.render)
+ app.listen(3000)
+ console.log('Server is listening on http://localhost:3000')
+})
+.catch((error) => {
+ console.error(error)
+ process.exit(1)
+})
+```
+
+And we update our `package.json` scripts:
+```json
+// ...
+"scripts": {
+ "dev": "node server.js",
+ "build": "nuxt build",
+ "start": "NODE_ENV=production node server.js"
+}
+// ...
+```
+
+## Using the store
+
+We need a global state to let our application know if the user is connected **across the pages**.
+
+To let Nuxt.js use Vuex, we create a `store/index.js` file:
+
+```js
+import Vue from 'vue'
+import Vuex from 'vuex'
+
+Vue.use(Vuex)
+
+// Polyfill for window.fetch()
+require('whatwg-fetch')
+
+const store = new Vuex.Store({
+
+ state: {
+ authUser: null
+ },
+
+ mutations: {
+ SET_USER: function (state, user) {
+ state.authUser = user
+ }
+ },
+
+ actions: {
+ // ...
+ }
+
+})
+
+export default store
+```
+
+1. We import `Vue` and `Vuex` (included in Nuxt.js) and we tell Vue to use Vuex to let us use `$store` in our components
+2. We `require('whatwg-fetch')` to polyfill the `fetch()` method across all browsers (see [fetch repo](https://github.com/github/fetch))
+3. We create our `SET_USER` mutation which will set the `state.authUser` to the conntected user
+4. We export our store instance to Nuxt.js can inject it to our main application
+
+### nuxtServerInit() action
+
+Nuxt.js will call a specific action called `nuxtServerInit` with the context in argument, so when the app will be loaded, the store will be already filled with some data we can get from the server.
+
+In our `store/index.js`, we can add the `nuxtServerInit` action:
+```js
+nuxtServerInit ({ commit }, { req }) {
+ if (req.session && req.session.authUser) {
+ commit('SET_USER', req.session.authUser)
+ }
+}
+```
+
+### login() action
+
+We add a `login` action which will be called from our pages component to log in the user:
+```js
+login ({ commit }, { username, password }) {
+ return fetch('/api/login', {
+ // Send the client cookies to the server
+ credentials: 'same-origin',
+ method: 'POST',
+ headers: {
+ 'Content-Type': 'application/json'
+ },
+ body: JSON.stringify({
+ username,
+ password
+ })
+ })
+ .then((res) => {
+ if (res.status === 401) {
+ throw new Error('Bad credentials')
+ } else {
+ return res.json()
+ }
+ })
+ .then((authUser) => {
+ commit('SET_USER', authUser)
+ })
+}
+```
+
+### logout() method
+
+```js
+logout ({ commit }) {
+ return fetch('/api/logout', {
+ // Send the client cookies to the server
+ credentials: 'same-origin',
+ method: 'POST'
+ })
+ .then(() => {
+ commit('SET_USER', null)
+ })
+}
+```
+
+## Pages components
+
+Then we can use `$store.state.authUser` in our pages components to check if the user is connected in our application or not.
+
+### Redirect user if not connected
+
+Let's add a `/secret` route where only the connected user can see its content:
+```html
+
+
+
Super secret page
+ Back to the home page
+
+
+
+
+```
+
+We can see in the `fetch` method that we call `redirect('/')` when our user is not connected.
diff --git a/ja/examples/cached-components.md b/ja/examples/cached-components.md
new file mode 100644
index 000000000..1f95cb110
--- /dev/null
+++ b/ja/examples/cached-components.md
@@ -0,0 +1,6 @@
+---
+title: Cached Components
+description: Cached Components example with Nuxt.js
+github: cached-components
+documentation: /api/configuration-cache
+---
\ No newline at end of file
diff --git a/ja/examples/custom-loading.md b/ja/examples/custom-loading.md
new file mode 100644
index 000000000..d2715818b
--- /dev/null
+++ b/ja/examples/custom-loading.md
@@ -0,0 +1,7 @@
+---
+title: Custom Loading Component
+description: Custom Loading Component example with Nuxt.js
+github: custom-loading
+livedemo: https://custom-loading.nuxtjs.org
+documentation: /api/configuration-loading
+---
diff --git a/ja/examples/custom-routes.md b/ja/examples/custom-routes.md
new file mode 100644
index 000000000..a9887d9d1
--- /dev/null
+++ b/ja/examples/custom-routes.md
@@ -0,0 +1,7 @@
+---
+title: Custom Routes
+description: Custom Routes example with Nuxt.js
+github: custom-routes
+livedemo: https://custom-routes.nuxtjs.org
+documentation: /guide/routing#dynamic-routes
+---
diff --git a/ja/examples/global-css.md b/ja/examples/global-css.md
new file mode 100644
index 000000000..ecf624f44
--- /dev/null
+++ b/ja/examples/global-css.md
@@ -0,0 +1,7 @@
+---
+title: Global CSS
+description: Global CSS example with Nuxt.js
+github: global-css
+livedemo: https://global-css.nuxtjs.org
+documentation: /api/configuration-css
+---
diff --git a/ja/examples/hello-world.md b/ja/examples/hello-world.md
new file mode 100644
index 000000000..472023d18
--- /dev/null
+++ b/ja/examples/hello-world.md
@@ -0,0 +1,9 @@
+---
+title: Hello World
+description: Hello World example with Nuxt.js
+github: hello-world
+youtube: https://www.youtube.com/embed/kmf-p-pTi40
+livedemo: https://hello-world.nuxtjs.org
+liveedit: https://gomix.com/#!/project/nuxt-hello-world
+documentation: /guide/installation#starting-from-scratch
+---
diff --git a/ja/examples/i18n.md b/ja/examples/i18n.md
new file mode 100644
index 000000000..ab3b9c629
--- /dev/null
+++ b/ja/examples/i18n.md
@@ -0,0 +1,7 @@
+---
+title: Internationalization (i18n)
+description: Internationalization (i18n) example with Nuxt.js
+github: i18n
+livedemo: https://i18n.nuxtjs.org
+documentation: /guide/routing#middleware
+---
diff --git a/ja/examples/layouts.md b/ja/examples/layouts.md
new file mode 100644
index 000000000..c5960c826
--- /dev/null
+++ b/ja/examples/layouts.md
@@ -0,0 +1,8 @@
+---
+title: Layouts
+description: Layouts example with Nuxt.js
+github: custom-layouts
+livedemo: https://nuxt-custom-layouts.gomix.me/
+liveedit: https://gomix.com/#!/project/nuxt-custom-layouts
+documentation: /guide/views#layouts
+---
diff --git a/ja/examples/menu.json b/ja/examples/menu.json
new file mode 100644
index 000000000..45980e702
--- /dev/null
+++ b/ja/examples/menu.json
@@ -0,0 +1,33 @@
+[
+ {
+ "title": "Essentials",
+ "links": [
+ { "name": "Hello world", "to": "" },
+ { "name": "SEO HTML Head", "to": "/seo-html-head" }
+ ]
+ },
+ {
+ "title": "Customization",
+ "links": [
+ { "name": "Cached Components", "to": "/cached-components" },
+ { "name": "Custom Loading", "to": "/custom-loading" },
+ { "name": "Custom Routes", "to": "/custom-routes" },
+ { "name": "Global CSS", "to": "/global-css" },
+ { "name": "Layouts", "to": "/layouts" },
+ { "name": "Middleware", "to": "/middleware" },
+ { "name": "Nested Routes", "to": "/nested-routes" },
+ { "name": "Plugins", "to": "/plugins" },
+ { "name": "Routes transitions", "to": "/routes-transitions" }
+ ]
+ },
+ {
+ "title": "Advanced",
+ "links": [
+ { "name": "Async Data", "to": "/async-data" },
+ { "name": "Auth Routes", "to": "/auth-routes" },
+ { "name": "Vuex Store", "to": "/vuex-store" },
+ { "name": "i18n", "to": "/i18n" },
+ { "name": "Testing", "to": "/testing" }
+ ]
+ }
+]
diff --git a/ja/examples/middleware.md b/ja/examples/middleware.md
new file mode 100644
index 000000000..afd8a1552
--- /dev/null
+++ b/ja/examples/middleware.md
@@ -0,0 +1,7 @@
+---
+title: Middleware
+description: Middleware example with Nuxt.js
+github: middleware
+livedemo: https://middleware.nuxtjs.org
+documentation: /guide/routing#middleware
+---
diff --git a/ja/examples/nested-routes.md b/ja/examples/nested-routes.md
new file mode 100644
index 000000000..471fd28cc
--- /dev/null
+++ b/ja/examples/nested-routes.md
@@ -0,0 +1,7 @@
+---
+title: Nested Routes
+description: Nested Routes example with Nuxt.js
+github: nested-routes
+livedemo: https://nested-routes.nuxtjs.org
+documentation: /guide/routing#nested-routes
+---
diff --git a/ja/examples/plugins.md b/ja/examples/plugins.md
new file mode 100644
index 000000000..d33ed90a5
--- /dev/null
+++ b/ja/examples/plugins.md
@@ -0,0 +1,7 @@
+---
+title: Plugins
+description: Using external modules and plugins with nuxt.js
+github: plugins-vendor
+livedemo: https://plugins-vendor.nuxtjs.org
+documentation: /guide/plugins
+---
diff --git a/ja/examples/routes-transitions.md b/ja/examples/routes-transitions.md
new file mode 100644
index 000000000..913888b35
--- /dev/null
+++ b/ja/examples/routes-transitions.md
@@ -0,0 +1,8 @@
+---
+title: Routes transitions
+description: Routes transitions example with Nuxt.js
+github: routes-transitions
+youtube: https://www.youtube.com/embed/RIXOzJWFfc8
+livedemo: https://routes-transitions.nuxtjs.org
+documentation: /guide/routing#transitions
+---
diff --git a/ja/examples/seo-html-head.md b/ja/examples/seo-html-head.md
new file mode 100644
index 000000000..02525b10b
--- /dev/null
+++ b/ja/examples/seo-html-head.md
@@ -0,0 +1,7 @@
+---
+title: SEO HTML Head
+description: SEO HTML Head example with Nuxt.js
+github: head-elements
+livedemo: https://head-elements.nuxtjs.org
+documentation: /guide/views#html-head
+---
diff --git a/ja/examples/testing.md b/ja/examples/testing.md
new file mode 100644
index 000000000..1221672b4
--- /dev/null
+++ b/ja/examples/testing.md
@@ -0,0 +1,6 @@
+---
+title: Testing
+description: Testing example with Nuxt.js
+github: with-ava
+documentation: /guide/development-tools#end-to-end-testing
+---
diff --git a/ja/examples/vuex-store.md b/ja/examples/vuex-store.md
new file mode 100644
index 000000000..e4ff096c1
--- /dev/null
+++ b/ja/examples/vuex-store.md
@@ -0,0 +1,7 @@
+---
+title: Vuex Store
+description: Vuex Store example with Nuxt.js
+github: vuex-store
+livedemo: https://vuex-store.nuxtjs.org
+documentation: /guide/vuex-store
+---
diff --git a/ja/faq/async-data-components.md b/ja/faq/async-data-components.md
new file mode 100644
index 000000000..b96e4e2f2
--- /dev/null
+++ b/ja/faq/async-data-components.md
@@ -0,0 +1,14 @@
+---
+title: Async data in components
+description: Async data in components?
+---
+
+# Async data in components?
+
+It is not possible because it's not linked to a route, Nuxt.js surcharges the component data() associated to a route to allow async data.
+
+For sub components, there are 2 ways of achieving it:
+1. Making the API call in the mounted() hook and setting the data afterwards, downside: no server rendering
+2. Making the API call in the data() of the page component and giving the data as a prop to the subComponent: server rendering OK. But the data() of the page might be less readable because it's loading the async data of the sub components
+
+It all depends if you want the sub components to be server-rendered or not.
diff --git a/ja/faq/css-flash.md b/ja/faq/css-flash.md
new file mode 100644
index 000000000..41a5ed34e
--- /dev/null
+++ b/ja/faq/css-flash.md
@@ -0,0 +1,12 @@
+---
+title: CSS Flash
+description: Why a CSS Flash appears with Nuxt.js?
+---
+
+# Why a CSS Flash appears?
+
+
+
+This is because the CSS is in the JavaScript build in **development mode** to allow hot-reloading via Webpack.
+
+Don't worry in production mode, the CSS is separated and put in the header so this "flash" does not appear anymore.
diff --git a/ja/faq/duplicated-meta-tags.md b/ja/faq/duplicated-meta-tags.md
new file mode 100644
index 000000000..235a51f11
--- /dev/null
+++ b/ja/faq/duplicated-meta-tags.md
@@ -0,0 +1,42 @@
+---
+title: Duplicated Meta tags
+description: Duplicated Meta tags with Nuxt.js?
+---
+
+# Duplicated Meta tags?
+
+This is a "feature" of [vue-meta](https://github.com/declandewet/vue-meta), please take a look at the [documentation of head elements](https://nuxtjs.org/guide/html-head#defaults-meta).
+
+> To avoid any duplication when used in child component, please give a unique identifier with the hid key, please [read more](https://github.com/declandewet/vue-meta#lists-of-tags) about it.
+
+For the meta description, you need to add the unique identifier `hid` so vue-meta will know that it has to overwrite the default tag.
+
+Your `nuxt.config.js`:
+```js
+...head: {
+ title: 'starter',
+ meta: [
+ { charset: 'utf-8' },
+ { name: 'viewport', content: 'width=device-width, initial-scale=1' },
+ { name: 'keywords', content: 'keyword 1, keyword 2'},
+ { hid: 'description', name: 'description', content: 'This is the generic description.'}
+ ],
+ },
+...
+```
+
+An then in your individual page:
+```js
+export default {
+ head () {
+ return {
+ title: `Page 1 (${this.name}-side)`,
+ meta: [
+ { hid: 'description', name: 'description', content: "Page 1 description" }
+ ],
+ }
+ }
+}
+```
+
+To learn how to use the `head` property in your pages, please see the [HTML head documentation](/guide/views/#html-head).
diff --git a/ja/faq/extend-webpack.md b/ja/faq/extend-webpack.md
new file mode 100644
index 000000000..c2500ad25
--- /dev/null
+++ b/ja/faq/extend-webpack.md
@@ -0,0 +1,18 @@
+---
+title: Extend Webpack
+description: How to extend webpack config?
+---
+
+# How to extend webpack config?
+
+You can extend the webpack configuration via the `extend` option in your `nuxt.config.js`:
+
+```js
+module.exports = {
+ build: {
+ extend (config, { isDev, isClient }) {
+ // ...
+ }
+ }
+}
+```
diff --git a/ja/faq/external-resources.md b/ja/faq/external-resources.md
new file mode 100644
index 000000000..a12f2a51e
--- /dev/null
+++ b/ja/faq/external-resources.md
@@ -0,0 +1,46 @@
+---
+title: External resources
+description: How to use external resources with Nuxt.js?
+---
+
+# How to use external resources?
+
+## Global Settings
+
+Include your resources in the `nuxt.config.js` file:
+
+```js
+module.exports = {
+ head: {
+ script: [
+ { src: 'https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js' }
+ ],
+ link: [
+ { rel: 'stylesheet', href: 'https://fonts.googleapis.com/css?family=Roboto' }
+ ]
+ }
+}
+```
+
+## Local Settings
+
+Include your resources in your .vue file inside the pages directory:
+
+```html
+
+ About page with jQuery and Roboto font
+
+
+
+```
diff --git a/ja/faq/github-pages.md b/ja/faq/github-pages.md
new file mode 100644
index 000000000..205dabb37
--- /dev/null
+++ b/ja/faq/github-pages.md
@@ -0,0 +1,44 @@
+---
+title: Github Pages Deployment
+description: How to deploy Nuxt.js on Github Pages?
+---
+
+# How to deploy on Github Pages?
+
+Nuxt.js gives you the possibility to host your web application on any static hosting like [Github Pages](https://pages.github.com/) for example.
+
+To deploy on Github Pages, you need to generate your static web application:
+
+```bash
+npm run generate
+```
+
+It will create a `dist` folder with everything inside ready to be deployed on Github Pages hosting.
+Branch `gh-pages` for project repository OR branch `master` for user or organization site
+
+## Command line deployment
+
+You can also use [push-dir package](https://github.com/L33T-KR3W/push-dir):
+
+First install it via npm:
+```bash
+npm install push-dir --save-dev
+```
+
+Add a `deploy` command to your package.json with the branch as `gh-pages` for project repository OR `master` for user or organization site.
+
+```js
+"scripts": {
+ "dev": "nuxt",
+ "build": "nuxt build",
+ "start": "nuxt start",
+ "generate": "nuxt generate",
+ "deploy": "push-dir --dir=dist --branch=gh-pages --cleanup"
+},
+```
+
+Then generate and deploy your static application:
+```bash
+npm run generate
+npm run deploy
+```
diff --git a/ja/faq/google-analytics.md b/ja/faq/google-analytics.md
new file mode 100644
index 000000000..6d094dbf3
--- /dev/null
+++ b/ja/faq/google-analytics.md
@@ -0,0 +1,60 @@
+---
+title: Google Analytics Integration
+description: How to use Google Analytics?
+---
+
+## How to use Google Analytics?
+
+To use [Google Analytics](https://analytics.google.com/analytics/web/) with your nuxt.js application, we recommend to create a file `plugins/ga.js`:
+
+```js
+/*
+** Only run on client-side and only in production mode
+*/
+if (process.BROWSER_BUILD && process.env.NODE_ENV === 'production') {
+ /*
+ ** Include Google Analytics Script
+ */
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
+ })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
+ /*
+ ** Set the current page
+ */
+ ga('create', 'UA-XXXXXXXX-X', 'auto')
+ ga('send', 'pageview')
+ /*
+ ** When the app is mounted
+ */
+ window.onNuxtReady((app) => {
+ /*
+ ** Every time the route changes
+ */
+ app.$nuxt.$on('routeChanged', (to, from) => {
+ /*
+ ** We tell Google Analytic to add a page view
+ */
+ ga('set', 'page', to.fullPath)
+ ga('send', 'pageview')
+ })
+ })
+}
+```
+
+> Replace `UA-XXXXXXXX-X` by your Google Analytics tracking ID.
+
+Then, we tell nuxt.js to import it in our main application:
+
+`nuxt.config.js`
+```js
+module.exports = {
+ plugins: [
+ '~plugins/ga.js'
+ ]
+}
+```
+
+Voilà , Google Analytics is integrated into your nuxt.js application and will track every page view!
+
+INFO: you can use this method for any other tracking service.
diff --git a/ja/faq/heroku-deployment.md b/ja/faq/heroku-deployment.md
new file mode 100644
index 000000000..d077f027f
--- /dev/null
+++ b/ja/faq/heroku-deployment.md
@@ -0,0 +1,40 @@
+---
+title: Heroku Deployment
+description: How to deploy Nuxt.js on Heroku?
+---
+
+# How to deploy on Heroku?
+
+We recommend you to read the [Heroku documentation for node.js](https://devcenter.heroku.com/articles/nodejs-support).
+
+First, we need to tell Heroku to install the `devDependencies` of the project (to be able to launch `npm run build`):
+```bash
+heroku config:set NPM_CONFIG_PRODUCTION=false
+```
+
+Also, we want our application to listen on the port `0.0.0.0` and run in production mode:
+```bash
+heroku config:set HOST=0.0.0.0
+heroku config:set NODE_ENV=production
+```
+
+You should see this in your Heroku dashboard (Settings section):
+
+
+
+Then, we tell Heroku to launch `npm run build` via the `heroku-postbuild` script in our `package.json`:
+```js
+"scripts": {
+ "dev": "nuxt",
+ "build": "nuxt build",
+ "start": "nuxt start",
+ "heroku-postbuild": "npm run build"
+}
+```
+
+Finally, we can push the app on Heroku with:
+```bash
+git push heroku master
+```
+
+Voilà ! Your nuxt.js application is now hosted on Heroku!
diff --git a/ja/faq/host-port.md b/ja/faq/host-port.md
new file mode 100644
index 000000000..5c97c492f
--- /dev/null
+++ b/ja/faq/host-port.md
@@ -0,0 +1,26 @@
+---
+title: HOST and PORT
+description: How to edit HOST and PORT with Nuxt.js?
+---
+
+# How to edit HOST and PORT?
+
+You can configure the PORT with 2 different ways:
+- Via a env variables
+```js
+"scripts": {
+ "dev": "HOST=0.0.0.0 PORT=3333 nuxt"
+}
+```
+- Via a nuxt config in the `package.json`:
+```js
+"config": {
+ "nuxt": {
+ "host": "0.0.0.0",
+ "port": "3333"
+ }
+},
+"scripts": {
+ "dev": "nuxt"
+}
+```
diff --git a/ja/faq/jsx.md b/ja/faq/jsx.md
new file mode 100644
index 000000000..9fb99a155
--- /dev/null
+++ b/ja/faq/jsx.md
@@ -0,0 +1,43 @@
+---
+title: JSX
+description: How to use JSX with Nuxt.js?
+---
+
+# How to use JSX?
+
+If you want to use JSX in your components, first, you need to install the Babel plugins for JSX:
+
+```bash
+npm install --save-dev babel-plugin-syntax-jsx babel-plugin-transform-vue-jsx babel-helper-vue-jsx-merge-props
+```
+
+Then, in your `nuxt.config.js`, tell nuxt.js to use the [transform-vue-jsx](https://github.com/vuejs/babel-plugin-transform-vue-jsx) plugin:
+
+```js
+module.exports = {
+ build: {
+ babel: {
+ plugins: ['transform-vue-jsx']
+ }
+ }
+}
+```
+
+To learn more about the babel option, take a look at the [build config documentation](/api/configuration-build).
+
+You can now use JSX in your `render` method of your components:
+
+```html
+
+```
+
+You can learn more how to use it in the [JSX section](https://vuejs.org/v2/guide/render-function.html#JSX) of the Vue.js documentation.
diff --git a/ja/faq/menu.json b/ja/faq/menu.json
new file mode 100644
index 000000000..ba43e2a84
--- /dev/null
+++ b/ja/faq/menu.json
@@ -0,0 +1,33 @@
+[
+ {
+ "title": "Configuration",
+ "links": [
+ { "name": "How to use external resources?", "to": "" },
+ { "name": "How to use pre-processors?", "to": "/pre-processors" },
+ { "name": "How to use JSX?", "to": "/jsx" },
+ { "name": "How to add postcss plugins?", "to": "/postcss-plugins" },
+ { "name": "How to extend webpack config?", "to": "/extend-webpack" },
+ { "name": "How to add webpack plugins?", "to": "/webpack-plugins" },
+ { "name": "How to edit HOST and PORT?", "to": "/host-port" },
+ { "name": "How to use Google Analytics?", "to": "/google-analytics" }
+ ]
+ },
+ {
+ "title": "Development",
+ "links": [
+ { "name": "Window/Document undefined?", "to": "/window-document-undefined" },
+ { "name": "Why a CSS Flash appears?", "to": "/css-flash" },
+ { "name": "Async data in components?", "to": "/async-data-components" },
+ { "name": "Duplicated Meta Tags?", "to": "/duplicated-meta-tags" }
+ ]
+ },
+ {
+ "title": "Deployment",
+ "links": [
+ { "name": "How to deploy on Heroku?", "to": "/heroku-deployment" },
+ { "name": "How to deploy with Now.sh?", "to": "/now-deployment" },
+ { "name": "How to deploy with Surge.sh?", "to": "/surge-deployment" },
+ { "name": "How to deploy on Github?", "to": "/github-pages" }
+ ]
+ }
+]
diff --git a/ja/faq/now-deployment.md b/ja/faq/now-deployment.md
new file mode 100644
index 000000000..e796d437d
--- /dev/null
+++ b/ja/faq/now-deployment.md
@@ -0,0 +1,25 @@
+---
+title: Now Deployment
+description: How to deploy Nuxt.js with Now.sh?
+---
+
+# How to deploy with Now.sh?
+
+To deploy with [now.sh](https://zeit.co/now) a `package.json` like follows is recommended:
+```json
+{
+ "name": "my-app",
+ "dependencies": {
+ "nuxt": "latest"
+ },
+ "scripts": {
+ "dev": "nuxt",
+ "build": "nuxt build",
+ "start": "nuxt start"
+ }
+}
+```
+
+Then run `now` and enjoy!
+
+Note: we recommend putting `.nuxt` in `.npmignore` or `.gitignore`.
diff --git a/ja/faq/postcss-plugins.md b/ja/faq/postcss-plugins.md
new file mode 100644
index 000000000..3f83d2476
--- /dev/null
+++ b/ja/faq/postcss-plugins.md
@@ -0,0 +1,20 @@
+---
+title: Postcss plugins
+description: How to add postcss plugins?
+---
+
+# How to add postcss plugins?
+
+In your `nuxt.config.js` file:
+
+```js
+module.exports = {
+ build: {
+ postcss: [
+ require('postcss-nested')(),
+ require('postcss-responsive-type')(),
+ require('postcss-hexrgba')(),
+ ]
+ }
+}
+```
diff --git a/ja/faq/pre-processors.md b/ja/faq/pre-processors.md
new file mode 100644
index 000000000..235ad9ce3
--- /dev/null
+++ b/ja/faq/pre-processors.md
@@ -0,0 +1,31 @@
+---
+title: Pre-processors
+description: How to use pre-processors with Nuxt.js?
+---
+
+# How to use pre-processors?
+
+Thanks to [vue-loader](http://vue-loader.vuejs.org/en/configurations/pre-processors.html), you can use any kind of pre-processors for your ``, `
+
+
+```
+
+To be able to use these pre-processors, we need to install their webpack loaders:
+```bash
+npm install --save-dev pug@2.0.0-beta6 pug-loader coffee-script coffee-loader node-sass sass-loader
+```
diff --git a/ja/faq/surge-deployment.md b/ja/faq/surge-deployment.md
new file mode 100644
index 000000000..7af82dec5
--- /dev/null
+++ b/ja/faq/surge-deployment.md
@@ -0,0 +1,33 @@
+---
+title: Surge Deployment
+description: How to deploy Nuxt.js with Surge.sh?
+---
+
+# How to deploy with Surge.sh?
+
+Nuxt.js gives you the possibility to host your web application on any static hosting like [surge.sh](https://surge.sh/) for example.
+
+To deploy on surge.sh, first install it on your computer:
+```bash
+npm install -g surge
+```
+
+Then, we tell nuxt.js to generate our web application:
+
+```bash
+npm run generate
+```
+
+It will create a `dist` folder with everything inside ready to be deployed on a static hosting.
+
+We can then deploy it to surge.sh:
+
+```bash
+surge dist/
+```
+
+Done :)
+
+If you have a project with [dynamic routes](/guide/routing#dynamic-routes), take a look at the [generate configuration](/api/configuration-generate) to tell nuxt.js how to generate these dynamic routes.
+
+When generating your web application with `nuxt generate`, [the context](/api) given to [data()](/guide/async-data#the-data-method) and [fetch()](/guide/vuex-store#the-fetch-method) will not have `req` and `res`.
diff --git a/ja/faq/webpack-plugins.md b/ja/faq/webpack-plugins.md
new file mode 100644
index 000000000..0c874b844
--- /dev/null
+++ b/ja/faq/webpack-plugins.md
@@ -0,0 +1,24 @@
+---
+title: Webpack plugins
+description: How to add webpack plugins?
+---
+
+# How to add webpack plugins?
+
+In your `nuxt.config.js` file:
+
+```js
+const webpack = require('webpack')
+
+module.exports = {
+ build: {
+ plugins: [
+ new webpack.ProvidePlugin({
+ '$': 'jquery',
+ '_': 'lodash'
+ // ...etc.
+ })
+ ]
+ }
+}
+```
diff --git a/ja/faq/window-document-undefined.md b/ja/faq/window-document-undefined.md
new file mode 100644
index 000000000..3a405280c
--- /dev/null
+++ b/ja/faq/window-document-undefined.md
@@ -0,0 +1,23 @@
+---
+title: Window or Document undefined
+description: Window or Document undefined with Nuxt.js?
+---
+
+# Window or Document undefined?
+
+This is due to the server-side rendering.
+If you need to specify that you want to import a resource only on the client-side, you need to use the `process.BROWSER_BUILD` variable.
+
+For example, in your .vue file:
+```js
+if (process.BROWSER_BUILD) {
+ require('external_library')
+}
+```
+
+Don't forget to add your library in the [vendor bundle](/api/configuration-build#build-vendor) in your `nuxt.config.js`:
+```js
+ build: {
+ vendor: ['external_library']
+ }
+```
diff --git a/ja/guide/assets.md b/ja/guide/assets.md
new file mode 100644
index 000000000..7b6faba44
--- /dev/null
+++ b/ja/guide/assets.md
@@ -0,0 +1,98 @@
+---
+title: Assets
+description: Nuxt uses vue-loader, file-loader and url-loader for Webpack by default for strong assets serving, but you can also use Static directory for static assets.
+---
+
+> Nuxt uses vue-loader, file-loader and url-loader for Webpack by default for strong assets serving, but you can also use Static directory for static assets.
+
+## Webpacked
+
+By default, [vue-loader](http://vue-loader.vuejs.org/en/) automatically processes your style and template files with `css-loader` and the Vue template compiler. In this compilation process, all asset URLs such as ` `, `background: url(...)` and CSS `@import` are resolved as module dependencies.
+
+For example, we have this file tree:
+
+```bash
+-| assets/
+----| image.png
+-| pages/
+----| index.vue
+```
+
+In my CSS, if I use `url('~assets/image.png')`, it will be translated into `require('~assets/image.png')`.
+
+Or if in my `pages/index.vue`, I use:
+```html
+
+
+
+```
+
+It will be compiled into:
+
+```js
+createElement('img', { attrs: { src: require('~assets/image.png') }})
+```
+
+Because `.png` is not a JavaScript file, nuxt.js configures Webpack to use [file-loader](https://github.com/webpack/file-loader) and [url-loader](https://github.com/webpack/url-loader) to handle them for you.
+
+The benefits of them are:
+- `file-loader` lets you designate where to copy and place the asset file, and how to name it using version hashes for better caching.
+- `url-loader` allows you to conditionally inline a file as base-64 data URL if they are smaller than a given threshold. This can reduce a number of HTTP requests for trivial files. If the file is larger than the threshold, it automatically falls back to `file-loader`.
+
+Actually, Nuxt.js default loaders configuration is:
+
+```js
+[
+ {
+ test: /\.(png|jpe?g|gif|svg)$/,
+ loader: 'url-loader',
+ query: {
+ limit: 1000, // 1KO
+ name: 'img/[name].[hash:7].[ext]'
+ }
+ },
+ {
+ test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/,
+ loader: 'url-loader',
+ query: {
+ limit: 1000, // 1 KO
+ name: 'fonts/[name].[hash:7].[ext]'
+ }
+ }
+]
+```
+
+Which means that every file below 1 KO will be inlined as base-64 data URL. Otherwise, the image/font will be copied in its corresponding folder (under the `.nuxt` directory) with a name containing a version hashes for better caching.
+
+When launching our application with `nuxt`, our template in `pages/index.vue`:
+
+```html
+
+
+
+```
+
+Will be generated into:
+```html
+
+```
+
+If you want to update these loaders or disable them, please take a look at the [loaders configuration](/api/configuration-build#loaders).
+
+## Static
+
+If you don't want to use Webpacked Assets from the `assets` directory, you can create and use the `static` directory in your project root directory.
+
+These files will be automatically serve by Nuxt and accessible in your project root URL.
+
+This option is helpful for files like `robots.txt` or `sitemap.xml`.
+
+From your code you can then reference those files with `/` URLs:
+
+```html
+
+
+
+
+
+```
diff --git a/ja/guide/async-data.md b/ja/guide/async-data.md
new file mode 100644
index 000000000..de3f3fb2e
--- /dev/null
+++ b/ja/guide/async-data.md
@@ -0,0 +1,114 @@
+---
+title: Async Data
+description: Nuxt.js supercharges the data method from vue.js to let you handle async operation before setting the component data.
+---
+
+> Nuxt.js *supercharges* the `data` method from vue.js to let you handle async operation before setting the component data.
+
+## The data Method
+
+`data` is called every time before loading the component (**only for pages components**). It can be called from the server-side or before navigating to the corresponding route. This method receives [the context](/api#context) as the first argument, you can use it to fetch some data and return the component data.
+
+You do **NOT** have access of the component instance trough `this` inside `data` because it is called **before initiating** the component.
+
+To make the data method asynchronous, nuxt.js offers you different ways, choose the one you're the most familiar with:
+
+1. returning a `Promise`, nuxt.js will wait for the promise to be resolved before rendering the component.
+2. Using the [async/await proposal](https://github.com/lukehoban/ecmascript-asyncawait) ([learn more about it](https://zeit.co/blog/async-and-await))
+3. Define a callback as second argument. It has to be called like this: `callback(err, data)`
+
+### Returning a Promise
+```js
+export default {
+ data ({ params }) {
+ return axios.get(`https://my-api/posts/${params.id}`)
+ .then((res) => {
+ return { title: res.data.title }
+ })
+ }
+}
+```
+
+### Using async/await
+```js
+export default {
+ async data ({ params }) {
+ let { data } = await axios.get(`https://my-api/posts/${params.id}`)
+ return { title: data.title }
+ }
+}
+```
+
+### Using a callback
+```js
+export default {
+ data ({ params }, callback) {
+ axios.get(`https://my-api/posts/${params.id}`)
+ .then((res) => {
+ callback(null, { title: res.data.title })
+ })
+ }
+}
+```
+
+### Returning an Object
+
+If you don't need to do any asynchronous call, you can simply return an object:
+
+```js
+export default {
+ data (context) {
+ return { foo: 'bar' }
+ }
+}
+```
+
+### Displaying the data
+
+When the data method set, you can display the data inside your template like you used to do:
+
+```html
+
+ {{ title }}
+
+```
+
+## The Context
+
+To see the list of available keys in `context`, take a look at the [API Pages data](/api).
+
+## Handling Errors
+
+Nuxt.js add the `error(params)` method in the `context`, you can call it to display the error page. `params.statusCode` will be also used to render the proper status code form the server-side.
+
+Example with a `Promise`:
+```js
+export default {
+ data ({ params, error }) {
+ return axios.get(`https://my-api/posts/${params.id}`)
+ .then((res) => {
+ return { title: res.data.title }
+ })
+ .catch((e) => {
+ error({ statusCode: 404, message: 'Post not found' })
+ })
+ }
+}
+```
+
+If you're using the `callback` argument, you can call it directly with the error, nuxt.js will call the `error` method for you:
+```js
+export default {
+ data ({ params }, callback) {
+ axios.get(`https://my-api/posts/${params.id}`)
+ .then((res) => {
+ callback(null, { title: res.data.title })
+ })
+ .catch((e) => {
+ callback({ statusCode: 404, message: 'Post not found' })
+ })
+ }
+}
+```
+
+To customize the error page, take a look at the [VIEWS layouts section](/guide/views#layouts).
diff --git a/ja/guide/commands.md b/ja/guide/commands.md
new file mode 100644
index 000000000..aab7fce28
--- /dev/null
+++ b/ja/guide/commands.md
@@ -0,0 +1,84 @@
+---
+title: Commands
+description: Nuxt.js comes with a set of useful commands, both for development and production purpose.
+---
+
+> Nuxt.js comes with a set of useful commands, both for development and production purpose.
+
+## List of Commands
+
+| Command | Description |
+|---------|-------------|
+| nuxt | Launch a development server on [localhost:3000](http://localhost:3000) with hot-reloading. |
+| nuxt build | Build your application with webpack and minify the JS & CSS (for production). |
+| nuxt start | Start the server in production mode (After running `nuxt build`). |
+| nuxt generate | Build the application and generate every route as a HTML file (used for static hosting). |
+
+You should put these commands in the `package.json`:
+
+```json
+"scripts": {
+ "dev": "nuxt",
+ "build": "nuxt build",
+ "start": "nuxt start",
+ "generate": "nuxt generate"
+}
+```
+
+Then, you can launch your commands via `npm run ` (example: `npm run dev`).
+
+## Development Environment
+
+To launch Nuxt in development mode with the hot reloading:
+
+```bash
+nuxt
+// OR
+npm run dev
+```
+
+## Production Deployment
+
+Nuxt.js lets your choose between 2 modes to deploy your application: Server Rendered or Static Generated.
+
+### Server Rendered Deployment
+
+To deploy, instead of running nuxt, you probably want to build ahead of time. Therefore, building and starting are separate commands:
+
+```bash
+nuxt build
+nuxt start
+```
+
+The `package.json` like follows is recommended:
+```json
+{
+ "name": "my-app",
+ "dependencies": {
+ "nuxt": "latest"
+ },
+ "scripts": {
+ "dev": "nuxt",
+ "build": "nuxt build",
+ "start": "nuxt start"
+ }
+}
+```
+
+Note: we recommend putting `.nuxt` in `.npmignore` or `.gitignore`.
+
+### Static Generated Deployment
+
+Nuxt.js gives you the possibility to host your web application on any static hosting.
+
+To generate our web application into static files:
+
+```bash
+npm run generate
+```
+
+It will create a `dist` folder with everything inside ready to be deployed on a static hosting.
+
+If you have a project with [dynamic routes](/guide/routing#dynamic-routes), take a look at the [generate configuration](/api/configuration-generate) to tell nuxt.js how to generate these dynamic routes.
+
+When generating your web application with `nuxt generate`, [the context](/api#context) given to [data()](/guide/async-data#the-data-method) and [fetch()](/guide/vuex-store#the-fetch-method) will not have `req` and `res`.
diff --git a/ja/guide/configuration.md b/ja/guide/configuration.md
new file mode 100644
index 000000000..4307a9a69
--- /dev/null
+++ b/ja/guide/configuration.md
@@ -0,0 +1,84 @@
+---
+title: Configuration
+description: The Nuxt.js default configuration covers most of usages. However, the nuxt.config.js file lets you overwrite it.
+---
+
+> The Nuxt.js default configuration covers most of usages. However, the nuxt.config.js file lets you overwrite it.
+
+### build
+
+This option lets you add modules inside the vendor.bundle.js file generated to reduce the size of the app bundle. It's really useful when using external modules
+
+[Documentation about build integration](/api/configuration-build)
+
+### cache
+
+This option lets you enable cached components for better render performances.
+
+[Documentation about cache integration](/api/configuration-cache)
+
+### css
+
+This option lets you define the CSS files/modules/libraries you want to set as globals (included in every pages).
+
+[Documentation about css integration](/api/configuration-css)
+
+### dev
+
+This option lets you define the development or production mode of nuxt.js
+
+[Documentation about dev integration](/api/configuration-dev)
+
+### env
+
+This option lets you define environment variables available both client and server side.
+
+[Documentation about env integration](/api/configuration-env)
+
+### generate
+
+This option lets you to define each params value for every dynamic routes in your application that Nuxt.js transforms into HTML files.
+
+[Documentation about generate integration](/api/configuration-generate)
+
+### head
+
+This option lets you to define all the defaults metas for your application.
+
+[Documentation about head integration](/api/configuration-head)
+
+### loading
+
+This option lets you to customize the loading component load by default with Nuxt.js.
+
+[Documentation about loading integration](/api/configuration-loading)
+
+### plugins
+
+This option lets you to define Javascript plugins to be ran before instantiating the root vue.js application.
+
+[Documentation about plugins integration](/api/configuration-plugins)
+
+### rootDir
+
+This option lets you define the workspace of your nuxt.js application.
+
+[Documentation about rootDir integration](/api/configuration-rootdir)
+
+### router
+
+This option lets you to overwrite the default Nuxt.js configuration of vue-router.
+
+[Documentation about router integration](/api/configuration-router)
+
+### srcDir
+
+This option lets you define the source directory of your nuxt.js application.
+
+[Documentation about srcDir integration](/api/configuration-srcdir)
+
+### transition
+
+This option lets you define the default properties of the pages transitions.
+
+[Documentation about transition integration](/api/configuration-transition)
diff --git a/ja/guide/contribution-guide.md b/ja/guide/contribution-guide.md
new file mode 100644
index 000000000..556b9f490
--- /dev/null
+++ b/ja/guide/contribution-guide.md
@@ -0,0 +1,19 @@
+---
+title: Contribution Guide
+description: Any contribution to Nuxt.js is more than welcome!
+---
+
+> Any contribution to Nuxt.js is more than welcome!
+
+## Reporting Issues
+
+A great way to contribute to the project is to send a detailed report when you encounter an issue. We always appreciate a well-written bug report, and will thank you for it! Before reporting an issue, please read carefully the documentation and search if any issue for your problem doesn't already exist: https://github.com/nuxt/nuxt.js/issues
+
+## Pull Requests
+
+We'd love to see your pull requests, even if it's just to fix a typo. Any significant improvement should be documented as [a GitHub issue](https://github.com/nuxt/nuxt.js/issues) before anybody starts working on it.
+
+### Convention
+
+- For a fix, the branch name should be `fix-XXX` where XXX is the issue number or the name of what your fix does
+- For a feature, the branch name should be `feature-XXX` where XXX is the issue number associated to this feature request
diff --git a/ja/guide/development-tools.md b/ja/guide/development-tools.md
new file mode 100644
index 000000000..0d1b745f5
--- /dev/null
+++ b/ja/guide/development-tools.md
@@ -0,0 +1,154 @@
+---
+title: Development Tools
+description: Nuxt.js helps you to make your web development enjoyable.
+---
+
+> Testing your application is part of the web development. Nuxt.js helps you to make it as easy as possible.
+
+## End-to-End Testing
+
+[Ava](https://github.com/avajs/ava) is a powerful JavaScript testing framework, mixed with [jsdom](https://github.com/tmpvar/jsdom), we can use them to do end-to-end testing easily.
+
+First, we need to add ava and jsdom as development dependencies:
+```bash
+npm install --save-dev ava jsdom
+```
+
+And add a test script to our `package.json`:
+
+```javascript
+"scripts": {
+ "test": "ava",
+}
+```
+
+We are going to write our tests in the `test` folder:
+```bash
+mkdir test
+```
+
+Let's says we have a page in `pages/index.vue`:
+```html
+
+ Hello {{ name }}!
+
+
+
+
+
+```
+
+When we launch our app with `npm run dev` and open [http://localhost:3000](http://localhost:3000), we can see our red `Hello world!` title.
+
+We add our test file `test/index.test.js`:
+
+```js
+import test from 'ava'
+import Nuxt from 'nuxt'
+import { resolve } from 'path'
+
+// We keep the nuxt and server instance
+// So we can close them at the end of the test
+let nuxt = null
+let server = null
+
+// Init Nuxt.js and create a server listening on localhost:4000
+test.before('Init Nuxt.js', async t => {
+ const rootDir = resolve(__dirname, '..')
+ let config = {}
+ try { config = require(resolve(rootDir, 'nuxt.config.js')) } catch (e) {}
+ config.rootDir = rootDir // project folder
+ config.dev = false // production build
+ nuxt = new Nuxt(config)
+ await nuxt.build()
+ server = new nuxt.Server(nuxt)
+ server.listen(4000, 'localhost')
+})
+
+// Example of testing only generated html
+test('Route / exits and render HTML', async t => {
+ let context = {}
+ const { html } = await nuxt.renderRoute('/', context)
+ t.true(html.includes('Hello world! '))
+})
+
+// Example of testing via dom checking
+test('Route / exits and render HTML with CSS applied', async t => {
+ const window = await nuxt.renderAndGetWindow('http://localhost:4000/')
+ const element = window.document.querySelector('.red')
+ t.not(element, null)
+ t.is(element.textContent, 'Hello world!')
+ t.is(element.className, 'red')
+ t.is(window.getComputedStyle(element).color, 'red')
+})
+
+// Close server and ask nuxt to stop listening to file changes
+test.after('Closing server and nuxt.js', t => {
+ server.close()
+ nuxt.close()
+})
+```
+
+We can now launch our tests:
+```bash
+npm test
+```
+
+jsdom has some limitations because it does not use a browser. However, it will cover most of our tests. If you want to use a browser to test your application, you might want to check out [Nightwatch.js](http://nightwatchjs.org).
+
+## ESLint
+
+> ESLint is a great tool to keep your code clean
+
+You can add [ESLint](http://eslint.org) pretty easily with nuxt.js, first, you need to add the npm dependencies:
+
+```bash
+npm install --save-dev babel-eslint eslint eslint-config-standard eslint-plugin-html eslint-plugin-promise eslint-plugin-standard
+```
+
+Then, you can configure ESLint via a `.eslintrc.js` file in your root project directory:
+```js
+module.exports = {
+ root: true,
+ parser: 'babel-eslint',
+ env: {
+ browser: true,
+ node: true
+ },
+ extends: 'standard',
+ // required to lint *.vue files
+ plugins: [
+ 'html'
+ ],
+ // add your custom rules here
+ rules: {},
+ globals: {}
+}
+```
+
+Then, you can add a `lint` script in your `package.json`:
+
+```js
+"scripts": {
+ "lint": "eslint --ext .js,.vue --ignore-path .gitignore ."
+}
+```
+
+You can now launch:
+```bash
+npm run lint
+```
+
+ESLint will lint every of your JavaScript and Vue files while ignoring your ignored files defined in your `.gitignore`.
+
+One best practice is to add also `"precommit": "npm run lint"` in your package.json to lint your code automatically before commiting your code.
diff --git a/ja/guide/directory-structure.md b/ja/guide/directory-structure.md
new file mode 100644
index 000000000..e3996480e
--- /dev/null
+++ b/ja/guide/directory-structure.md
@@ -0,0 +1,94 @@
+---
+title: Directory Structure
+description: The default Nuxt.js application structure is intended to provide a great starting point for both large and small applications.
+---
+
+> The default Nuxt.js application structure is intended to provide a great starting point for both small and large applications. Of course, you are free to organize your application however you like.
+
+## Directories
+
+### The Assets Directory
+
+The `assets` directory contains your un-compiled assets such as LESS, SASS, or JavaScript.
+
+[More documentation about Assets integration](/guide/assets)
+
+### The Components Directory
+
+The `components` directory contains your Vue.js Components. Nuxt.js doesn't supercharge the data method on these components.
+
+### The Layouts Directory
+
+The `layouts` directory contains your Application Layouts.
+
+_This directory can not be renamed._
+
+[More documentation about Layouts integration](/guide/views#layouts)
+
+### The Middleware Directory
+
+_Coming soon_
+
+### The Pages Directory
+
+The `pages` directory contains your Application Views and Routes. The framework reads all the `.vue` files inside this directory and create the router of your application.
+
+_This directory can not be renamed._
+
+[More documentation about Pages integration](/guide/views)
+
+### The Plugins Directory
+
+The `plugins` directory contains your Javascript plugins that you want to run before instantiating the root vue.js application.
+
+[More documentation about Plugins integration](/guide/plugins)
+
+### The Static Directory
+
+The `static` directory contains your static files. Each files inside this directory is mapped to /.
+
+**Example:** /static/robots.txt is mapped as /robots.txt
+
+_This directory can not be renamed._
+
+[More documentation about Static integration](/guide/assets#static)
+
+### The Store Directory
+
+The `store` directory contains your [Vuex Store](http://vuex.vuejs.org) files. Vuex Store option is implemented in the Nuxt.js framework. Creating a `index.js` file in this directory activate the option in the framework automatically.
+
+_This directory can not be renamed._
+
+[More documentation about Store integration](/guide/vuex-store)
+
+### The nuxt.config.js File
+
+The `nuxt.config.js` file contains your Nuxt.js custom configuration.
+
+_This file can not be renamed._
+
+[More documentation about nuxt.config.js integration](/guide/configuration)
+
+### The package.json File
+
+The `package.json` file contains your Application dependencies and scripts.
+
+_This file can not be renamed._
+
+## Aliases
+
+| Alias | Directory |
+|-----|------|
+| ~ | / |
+| ~assets | /assets |
+| ~components | /components |
+| ~pages | /pages |
+| ~plugins | /plugins |
+| ~static | /static |
+
+Aliases which link to files:
+
+| Alias | Usage | Description |
+|-------|------|--------------|
+| ~store | `const store = require('~store')` | Import the `vuex` store instance. |
+| ~router | `const router = require('~router')`| Import the `vue-router` instance. |
diff --git a/ja/guide/index.md b/ja/guide/index.md
new file mode 100644
index 000000000..04f7c0057
--- /dev/null
+++ b/ja/guide/index.md
@@ -0,0 +1,102 @@
+---
+title: Introduction
+description: "The 25th of October 2016, the team behind zeit.co, announced Next.js, a framework for server-rendered React applications. Few hours after the announcement, the idea of creating server-rendered Vue.js applications the same way as Next.js was obvious: Nuxt.js was born."
+---
+
+> The 25th of October 2016, the team behind [zeit.co](https://zeit.co/), announced [Next.js](https://zeit.co/blog/next), a framework for server-rendered React applications. Few hours after the announcement, the idea of creating server-rendered [Vue.js](https://vuejs.org) applications the same way as Next.js was obvious: **Nuxt.js** was born.
+
+## What is Nuxt.js ?
+
+Nuxt.js is a framework for creating Universal Vue.js Applications.
+
+Its main scope is **UI rendering** while abstracting away the client/server distribution.
+
+Our goal is to create a framework flexible enough so that you can use it as a main project base or in addition to your current project based on Node.js.
+
+Nuxt.js presets all the configuration needed to make your development of a Vue.js Application **Server Rendered** more enjoyable.
+
+In addition, we also provide another deployment option called: *nuxt generate*. It will build a **Static Generated** Vue.js Application.
+We believe that option could be the next big step in the development of Web Applications with microservices.
+
+As a framework, Nuxt.js comes with a lot of features to help you in your development between the client side and the server side such as Asynchronous Data, Middleware, Layouts, etc.
+
+## How it Works
+
+
+
+Nuxt.js includes the following to create a rich web application development:
+- [Vue 2](https://github.com/vuejs/vue)
+- [Vue-Router](https://github.com/vuejs/vue-router)
+- [Vuex](https://github.com/vuejs/vuex) (included only when using the [store option](/guide/vuex-store))
+- [Vue-Meta](https://github.com/declandewet/vue-meta)
+
+A total of only **28kb min+gzip** (31kb with vuex).
+
+Under the hood we use [Webpack](https://github.com/webpack/webpack) with [vue-Loader](https://github.com/vuejs/vue-loader) and [babel-loader](https://github.com/babel/babel-loader) to bundle, code-split and minify your code.
+
+## Features
+
+- Write Vue Files
+- Automatic Code Splitting
+- Server-Side Rendering
+- Powerful Routing System with Asynchronous Data
+- Static File Serving
+- ES6/ES7 Transpilation
+- Bundling and minifying of your JS & CSS
+- Managing Head Elements
+- Hot reloading in Development
+- Pre-processor: SASS, LESS, Stylus, etc
+
+## Schema
+
+This schema shows what is called by nuxt.js when the server is called or when the user navigate through the app via ``:
+
+
+
+## Server Rendered
+
+You can use nuxt.js as a framework to handle all the UI rendering of your project.
+
+When launching `nuxt`, it will start a development server with hot-reloading and vue-server-renderer configured to automatically server-render your application.
+
+Take a look at [the commands](/guide/commands) to learn more about it.
+
+If you already have a server, you can plug nuxt.js by using it as a middleware, there is no restriction at all when using nuxt.js for developing your Universal Web Applications, see the [Using Nuxt.js Programmatically](/api/nuxt) guide.
+
+## Static Generated
+
+The big innovation of nuxt.js comes here: `nuxt generate`
+
+When building your application it will generate the HTML of every of your routes to store it in a file.
+
+Example:
+
+```bash
+-| pages/
+----| about.vue
+----| index.vue
+```
+
+Will generate:
+```
+-| dist/
+----| about/
+------| index.html
+----| index.html
+```
+
+This way, you can host your generated web application on any static hosting!
+
+The best example is this website. It is generated and hosted on Github Pages:
+- [Source code](https://github.com/nuxt/nuxtjs.org)
+- [Generated code](https://github.com/nuxt/nuxtjs.org/tree/gh-pages)
+
+We don't want to manually generate the application every time we update the [docs repository](https://github.com/nuxt/docs), so each push made calls an AWS Lambda function which:
+1. Clone the [nuxtjs.org repository](https://github.com/nuxt/nuxtjs.org)
+2. Install the dependencies via `npm install`
+3. Run `nuxt generate`
+4. Push the `dist` folder to the `gh-pages` branch
+
+We now have a **Serverless Static Generated Web Application** :)
+
+We can go further by thinking of an e-commerce web application made with `nuxt generate` and hosted on a CDN, and every time a product is out of stock or back in stock, we regenerate the web app. But if the user navigates through the web app in the meantime, it will be up to date thanks to the API calls made to the e-commerce API. No need to have multiple instances of a server + a cache anymore!
diff --git a/ja/guide/installation.md b/ja/guide/installation.md
new file mode 100644
index 000000000..f20967e37
--- /dev/null
+++ b/ja/guide/installation.md
@@ -0,0 +1,92 @@
+---
+title: Installation
+description: Nuxt.js is really easy to get started with. A simple project only need the `nuxt` dependency.
+---
+
+> Nuxt.js is really easy to get started with. A simple project only need the `nuxt` dependency.
+
+## Using Nuxt.js starter template
+
+To start quickly, the Nuxt.js team has created a [starter template](https://github.com/nuxt/starter).
+
+[Download the .zip](https://github.com/nuxt/starter/archive/source.zip) starter template or install it with vue-cli:
+
+```bash
+$ vue init nuxt/starter
+```
+
+> If [vue-cli](https://github.com/vuejs/vue-cli) is not installed, please install it with `npm install -g vue-cli`
+
+then install the dependencies:
+
+```bash
+$ cd
+$ npm install
+```
+
+and launch the project with:
+```bash
+$ npm run dev
+```
+The application is now running on http://localhost:3000
+
+Nuxt.js will listen on the files changes inside the `pages` directory, so no need to restart the application when adding new pages
+
+To discover more about the directory structure of the project: [Directory Structure Documentation](/guide/directory-structure).
+
+## Starting from scratch
+
+Creating a Nuxt.js application from scratch is also really easy, it only needs *1 file and 1 directory*. Let's create an empty directory to start working on the application:
+
+```bash
+$ mkdir
+$ cd
+```
+
+*Info: replace project-name by the name of the project.*
+
+### The package.json
+
+The project needs a `package.json` file to specify how to start `nuxt`:
+```json
+{
+ "name": "my-app",
+ "scripts": {
+ "dev": "nuxt"
+ }
+}
+```
+`scripts` will launch Nuxt.js via `npm run dev`.
+
+### Installing `nuxt`
+
+Once the `package.json` has been created, add `nuxt` to the project via NPM:
+```bash
+npm install --save nuxt
+```
+
+### The `pages` directory
+
+Nuxt.js will transform every `*.vue` file inside the `pages` directory as a route for the application.
+
+Create the `pages` directory:
+```bash
+$ mkdir pages
+```
+
+then create the first page in `pages/index.vue`:
+```html
+
+ Hello world!
+
+```
+
+and launch the project with:
+```bash
+$ npm run dev
+```
+The application is now running on http://localhost:3000
+
+Nuxt.js will listen on the files changes inside the `pages` directory, so no need to restart the application when adding new pages
+
+To discover more about the directory structure of the project: [Directory Structure Documentation](/guide/directory-structure).
diff --git a/ja/guide/menu.json b/ja/guide/menu.json
new file mode 100644
index 000000000..a82158293
--- /dev/null
+++ b/ja/guide/menu.json
@@ -0,0 +1,107 @@
+[
+ {
+ "title": "Prologue",
+ "links": [
+ {
+ "to": "", "name": "Introduction",
+ "contents": [
+ { "to": "#what-is-nuxt-js-", "name": "What is Nuxt.js ?" },
+ { "to": "#how-it-works", "name": "How it Works" },
+ { "to": "#features", "name": "Features" },
+ { "to": "#schema", "name": "Schema" },
+ { "to": "#server-rendered", "name": "Server Rendered" },
+ { "to": "#static-generated", "name": "Static Generated" }
+ ]
+ },
+ { "to": "/contribution-guide", "name": "Contribution Guide" },
+ { "to": "/release-notes", "name": "Release Notes" }
+ ]
+ },
+ {
+ "title": "Getting Started",
+ "links": [
+ {
+ "to": "/installation", "name": "Installation",
+ "contents": [
+ { "to": "#using-nuxt-js-starter-template", "name": "Using Nuxt.js starter template" },
+ { "to": "#starting-from-scratch", "name": "Starting from scratch" }
+ ]
+ },
+ {
+ "to": "/directory-structure", "name": "Directory structure",
+ "contents": [
+ { "to": "#directories", "name": "Directories" },
+ { "to": "#aliases", "name": "Aliases" }
+ ]
+ },
+ { "to": "/configuration", "name": "Configuration" },
+ {
+ "to": "/routing", "name": "Routing",
+ "contents": [
+ { "to": "#basic-routes", "name": "Basic Routes" },
+ { "to": "#dynamic-routes", "name": "Dynamic Routes" },
+ { "to": "#nested-routes", "name": "Nested Routes" },
+ { "to": "#dynamic-nested-routes", "name": "Dynamic Nested Routes" },
+ { "to": "#transitions", "name": "Transitions" },
+ { "to": "#middleware", "name": "Middleware" }
+ ]
+ },
+ {
+ "to": "/views", "name": "Views",
+ "contents": [
+ { "to": "#pages", "name": "Pages" },
+ { "to": "#layouts", "name": "Layouts" },
+ { "to": "#html-head", "name": "HTML Head" }
+ ]
+ },
+ {
+ "to": "/async-data", "name": "Async Data",
+ "contents": [
+ { "to": "#the-data-method", "name": "The data Method" },
+ { "to": "#the-context", "name": "The Context" },
+ { "to": "#handling-errors", "name": "Handling Errors" }
+ ]
+ },
+ {
+ "to": "/assets", "name": "Assets",
+ "contents": [
+ { "to": "#webpacked", "name": "Webpacked" },
+ { "to": "#static", "name": "Static" }
+ ]
+ },
+ {
+ "to": "/plugins", "name": "Plugins",
+ "contents": [
+ { "to": "#external-packages", "name": "External Packages" },
+ { "to": "#vue-plugins", "name": "Vue Plugins" },
+ { "to": "#client-side-only", "name": "Client-side only" }
+ ]
+ },
+ {
+ "to": "/vuex-store", "name": "Vuex Store",
+ "contents": [
+ { "to": "#activate-the-store", "name": "Activate the Store" },
+ { "to": "#classic-mode", "name": "Classic mode" },
+ { "to": "#modules-mode", "name": "Modules mode" },
+ { "to": "#the-fetch-method", "name": "The fetch Method" },
+ { "to": "#the-nuxtserverinit-action", "name": "The nuxtServerInit Action" }
+ ]
+ },
+ {
+ "to": "/commands", "name": "Commands",
+ "contents": [
+ { "to": "#list-of-commands", "name": "List of Commands" },
+ { "to": "#development-environment", "name": "Developemnt Enviroment" },
+ { "to": "#production-deployment", "name": "Production Deployment" }
+ ]
+ },
+ {
+ "to": "/development-tools", "name": "Development Tools",
+ "contents": [
+ { "to": "#end-to-end-testing", "name": "End-to-End Testing" },
+ { "to": "#eslint", "name": "ESLint" }
+ ]
+ }
+ ]
+ }
+]
diff --git a/ja/guide/plugins.md b/ja/guide/plugins.md
new file mode 100644
index 000000000..03a8f04b0
--- /dev/null
+++ b/ja/guide/plugins.md
@@ -0,0 +1,98 @@
+---
+title: Plugins
+description: Nuxt.js allows you to define js plugins to be ran before instantiating the root vue.js application, it can be to use your own library or external modules.
+---
+
+> Nuxt.js allows you to define js plugins to be ran before instantiating the root vue.js application, it can be to use your own library or external modules.
+
+It is important to know that in any Vue [instance lifecycle](https://vuejs.org/v2/guide/instance.html#Lifecycle-Diagram), only `beforeCreate` and `created` hooks are called **both from client-side and server-side**. All other hooks are called only from the client-side.
+
+## External Packages
+
+We may want to use external packages/modules in our application, one great example is [axios](https://github.com/mzabriskie/axios) for making HTTP request for both server and client.
+
+We install it via NPM:
+
+```bash
+npm install --save axios
+```
+
+Then, we can use it directly in our pages:
+
+```html
+
+ {{ title }}
+
+
+
+```
+
+But there is **one problem here**, if we import axios in another page, it will be included again for the page bundle. We want to include `axios` only once in our application, for this, we use the `build.vendor` key in our `nuxt.config.js`:
+
+```js
+module.exports = {
+ build: {
+ vendor: ['axios']
+ }
+}
+```
+
+Then, I can import `axios` anywhere without having to worry about making the bundle bigger!
+
+## Vue Plugins
+
+If we want to use [vue-notifications](https://github.com/se-panfilov/vue-notifications) to display notification in our application, we need to setup the plugin before launching the app.
+
+File `plugins/vue-notifications.js`:
+```js
+import Vue from 'vue'
+import VueNotifications from 'vue-notifications'
+
+Vue.use(VueNotifications)
+```
+
+Then, we add the file inside the `plugins` key of `nuxt.config.js`:
+```js
+module.exports = {
+ plugins: ['~plugins/vue-notifications']
+}
+```
+
+To learn more about the `plugins` configuration key, check out the [plugins api](/api/configuration-plugins).
+
+Actually, `vue-notifications` will be included in the app bundle, but because it's a library, we want to include it in the vendor bundle for better caching.
+
+We can update our `nuxt.config.js` to add `vue-notifications` in the vendor bundle:
+```js
+module.exports = {
+ build: {
+ vendor: ['vue-notifications']
+ },
+ plugins: ['~plugins/vue-notifications']
+}
+```
+
+## Client-side only
+
+Some plugins might work **only for the browser**, you can use the `process.BROWSER_BUILD` variable to check if the plugin will run from the client-side.
+
+Example:
+```js
+import Vue from 'vue'
+import VueNotifications from 'vue-notifications'
+
+if (process.BROWSER_BUILD) {
+ Vue.use(VueNotifications)
+}
+```
+
+In case you need to require some libraries only for the server, you can use the `process.SERVER_BUILD` variable set to `true` when webpack is creating the `server.bundle.js` file.
diff --git a/ja/guide/routing.md b/ja/guide/routing.md
new file mode 100644
index 000000000..cbfbe464c
--- /dev/null
+++ b/ja/guide/routing.md
@@ -0,0 +1,311 @@
+---
+title: Routing
+description: Nuxt.js use the file-system to generate the routes of your web applications, it's as simple as PHP to create routes.
+---
+
+> Nuxt.js generates automatically the [vue-router](https://github.com/vuejs/vue-router) configuration according to your file tree of Vue files inside the `pages` directory.
+
+## Basic Routes
+
+This file tree:
+
+```bash
+pages/
+--| user/
+-----| index.vue
+-----| one.vue
+--| index.vue
+```
+
+will automatically generate:
+
+```js
+router: {
+ routes: [
+ {
+ name: 'index',
+ path: '/',
+ component: 'pages/index.vue'
+ },
+ {
+ name: 'user',
+ path: '/user',
+ component: 'pages/user/index.vue'
+ },
+ {
+ name: 'user-one',
+ path: '/user/one',
+ component: 'pages/user/one.vue'
+ }
+ ]
+}
+```
+
+## Dynamic Routes
+
+To define a dynamic route with a param, you need to define a .vue file OR a directory **prefixed by an underscore**.
+
+This file tree:
+
+```bash
+pages/
+--| _slug/
+-----| comments.vue
+-----| index.vue
+--| users/
+-----| _id.vue
+--| index.vue
+```
+
+will automatically generate:
+
+```js
+router: {
+ routes: [
+ {
+ name: 'index',
+ path: '/',
+ component: 'pages/index.vue'
+ },
+ {
+ name: 'users-id',
+ path: '/users/:id?',
+ component: 'pages/users/_id.vue'
+ },
+ {
+ name: 'slug',
+ path: '/:slug',
+ component: 'pages/_slug/index.vue'
+ },
+ {
+ name: 'slug-comments',
+ path: '/:slug/comments',
+ component: 'pages/_slug/comments.vue'
+ }
+ ]
+}
+```
+
+As you can see the route named `users-id` has the path `:id?` which makes it optional, if you want to make it required, create an `index.vue` file in the `users` directory.
+
+### Validate Route Params
+
+Nuxt.js lets you define a validator method inside your dynamic route component.
+
+In this example: `pages/users/_id.vue`
+
+```js
+export default {
+ validate ({ params }) {
+ // Must be a number
+ return /^\d+$/.test(params.id)
+ }
+}
+```
+
+If the validate method does not return `true`, Nuxt.js will automatically load the 404 error page.
+
+More information about the validate method: [API Pages validate](/api/pages-validate)
+
+## Nested Routes
+
+Nuxt.js lets you create nested route by using the children routes of vue-router.
+
+To define a nested route, you need to create a Vue file with the **same name as the directory** which contain your children views.
+
+Don't forget to write ` ` inside the parent component (.vue file).
+
+This file tree:
+
+```bash
+pages/
+--| users/
+-----| _id.vue
+-----| index.vue
+--| users.vue
+```
+
+will automatically generate:
+
+```js
+router: {
+ routes: [
+ {
+ path: '/users',
+ component: 'pages/users.vue',
+ children: [
+ {
+ path: '',
+ component: 'pages/users/index.vue',
+ name: 'users'
+ },
+ {
+ path: ':id',
+ component: 'pages/users/_id.vue',
+ name: 'users-id'
+ }
+ ]
+ }
+ ]
+}
+```
+
+## Dynamic Nested Routes
+
+This scenario should not often append, but it is possible with Nuxt.js: having dynamic children inside dynamic parents.
+
+This file tree:
+
+```bash
+pages/
+--| _category/
+-----| _subCategory/
+--------| _id.vue
+--------| index.vue
+-----| _subCategory.vue
+-----| index.vue
+--| _category.vue
+--| index.vue
+```
+
+will automatically generate:
+
+```js
+router: {
+ routes: [
+ {
+ path: '/',
+ component: 'pages/index.vue',
+ name: 'index'
+ },
+ {
+ path: '/:category',
+ component: 'pages/_category.vue',
+ children: [
+ {
+ path: '',
+ component: 'pages/_category/index.vue',
+ name: 'category'
+ },
+ {
+ path: ':subCategory',
+ component: 'pages/_category/_subCategory.vue',
+ children: [
+ {
+ path: '',
+ component: 'pages/_category/_subCategory/index.vue',
+ name: 'category-subCategory'
+ },
+ {
+ path: ':id',
+ component: 'pages/_category/_subCategory/_id.vue',
+ name: 'category-subCategory-id'
+ }
+ ]
+ }
+ ]
+ }
+ ]
+}
+```
+
+## Transitions
+
+Nuxt.js uses the [<transition>](http://vuejs.org/v2/guide/transitions.html#Transitioning-Single-Elements-Components) component to let you create amazing transitions/animations between your routes.
+
+### Global Settings
+
+Nuxt.js default transition name is `"page"`.
+
+To add a fade transition to every page of your application, we need a CSS file that is shared across all our routes, so we start by creating a file in the `assets` folder.
+
+Our global css in `assets/main.css`:
+```css
+.page-enter-active, .page-leave-active {
+ transition: opacity .5s;
+}
+.page-enter, .page-leave-active {
+ opacity: 0;
+}
+```
+
+We add its path in our `nuxt.config.js` file:
+```js
+module.exports = {
+ css: [
+ 'assets/main.css'
+ ]
+}
+```
+
+More information about the transition key: [API Configuration transition](/api/pages-transition)
+
+### Page Settings
+
+You can also define a custom transition for only one page with the `transition` property.
+
+We add a new class in our global css in `assets/main.css`:
+```css
+.test-enter-active, .test-leave-active {
+ transition: opacity .5s;
+}
+.test-enter, .test-leave-active {
+ opacity: 0;
+}
+```
+
+then, we use the transition property to define the class name to use for this page transition:
+```js
+export default {
+ transition: 'test'
+}
+```
+
+More information about the transition property: [API Pages transition](/api/pages-transition)
+
+## Middleware
+
+> The middleware lets you define custom function to be ran before rendering a page or a group of pages.
+
+**Every middleware should be placed in the `middleware/` directory.** The filename will be the name of the middleware (`middleware/auth.js` will be the `auth` middleware).
+
+A middleware receive [the context](/api#the-context) as first argument:
+
+```js
+export default function (context) {
+ context.userAgent = context.isServer ? context.req.headers['user-agent'] : navigator.userAgent
+}
+```
+
+The middleware will be executed in series in this order:
+1. `nuxt.config.js`
+2. Matched layouts
+3. Matched pages
+
+A middleware can be asynchronous, simply return a `Promise` or use the 2nd `callback` argument:
+
+`middleware/stats.js`
+```js
+import axios from 'axios'
+
+export default function ({ route }) {
+ return axios.post('http://my-stats-api.com', {
+ url: route.fullPath
+ })
+}
+```
+
+Then, in your `nuxt.config.js`, layout or page, use the `middleware` key:
+
+`nuxt.config.js`
+```js
+module.exports = {
+ router: {
+ middleware: 'stats'
+ }
+}
+```
+
+The `stats` middleware will be called for every route changes.
+
+To see a real-life example using the middleware, please see [example-auth0](https://github.com/nuxt/example-auth0) on GitHub.
diff --git a/ja/guide/views.md b/ja/guide/views.md
new file mode 100644
index 000000000..a65de291f
--- /dev/null
+++ b/ja/guide/views.md
@@ -0,0 +1,165 @@
+---
+title: Views
+description: The Views section describes all you need to configure data and views for a specific route in your Nuxt.js application. (Pages, layouts and HTML Head)
+---
+
+> The Views section describes all you need to configure data and views for a specific route in your Nuxt.js application. (Pages, layouts and HTML Head)
+
+## Pages
+
+Every Page component is a Vue component, but Nuxt.js adds special keys to make the development of your universal application the easiest way possible.
+
+```html
+
+ Hello {{ name }}!
+
+
+
+
+
+```
+
+
+| Attribute | Description |
+|-----------|-------------|
+| data | The most important key, it has the same purpose as [Vue data](https://vuejs.org/v2/api/#Options-Data) but it can be asynchronous and receives the context as argument, please read the [async data documentation](/guide/async-data) to learn how it works. |
+| fetch | Used to fill the store before rendering the page, it's like the data method except it doesn't set the component data. See the [API Pages fetch documentation](/api/pages-fetch). |
+| head | Set specific Meta Tags for the current page, see [API Pages head documentation](/api/pages-head). |
+| layout | Specify a layout defined in the `layouts` directory, see [API Pages layouts documentation](/api/pages-layout). |
+| transition | Set a specific transition for the page, see [API Pages transition](/api/pages-transition). |
+| scrollToTop | Boolean, by default: `false`. Specify if you want the page to scroll to the top before rendering the page, it's used for [nested routes](/guide/routing#nested-routes). |
+| validate | Validator function for a [dynamic route](/guide/routing#dynamic-routes). |
+| middleware | Set a middleware for this page, the middleware will be called before rendering the page, see [routes middleware](/guide/routing#middleware). |
+
+More information about the pages properties usage: [API Pages](/api)
+
+## Layouts
+
+Nuxt.js lets you extend the main layout or create custom layouts by adding them in the `layouts` directory.
+
+### Default Layout
+
+You can extend the main layout by adding a `layouts/default.vue` file.
+
+*Make sure to add the `` component when creating a layout to display the page component.*
+
+The default layout source code is:
+```html
+
+
+
+```
+
+### Error Page
+
+You can customize the error page by adding a `layouts/error.vue` file.
+
+This layout is special since you should not include ` ` inside its template. You must see this layout as a component displayed when an error occurs (404, 500, etc).
+
+The default error page source code is [available on Github](https://github.com/nuxt/nuxt.js/blob/master/lib/app/components/nuxt-error.vue).
+
+Example of a custom error page in `layouts/error.vue`:
+```html
+
+
+
Page not found
+ An error occurred
+ Home page
+
+
+
+
+```
+
+### Custom Layout
+
+Every file (*first level*) in the `layouts` directory will create a custom layout accessible with the `layout` property in the page component.
+
+*Make sure to add the ` ` component when creating a layout to display the page component.*
+
+Example of `layouts/blog.vue`:
+```html
+
+
+
My blog navigation bar here
+
+
+
+```
+
+And then in `pages/posts.vue`, you can tell Nuxt.js to use your custom layout:
+```html
+
+```
+
+More information about the layout property: [API Pages layout](/api/pages-layout)
+
+Check the [demonstration video](https://www.youtube.com/watch?v=YOKnSTp7d38) to see it in action.
+
+## HTML Head
+
+Nuxt.js uses [vue-meta](https://github.com/declandewet/vue-meta) to update the `headers` and `html attributes` of your application.
+
+Nuxt.js configures `vue-meta` with these options:
+```js
+{
+ keyName: 'head', // the component option name that vue-meta looks for meta info on.
+ attribute: 'n-head', // the attribute name vue-meta adds to the tags it observes
+ ssrAttribute: 'n-head-ssr', // the attribute name that lets vue-meta know that meta info has already been server-rendered
+ tagIDKeyName: 'hid' // the property name that vue-meta uses to determine whether to overwrite or append a tag
+}
+```
+
+### Default Meta Tags
+
+Nuxt.js let you define all default meta for your application inside `nuxt.config.js`, use the same `head` property:
+
+Example of a custom viewport with a custom Google font:
+```js
+head: {
+ meta: [
+ { charset: 'utf-8' },
+ { name: 'viewport', content: 'width=device-width, initial-scale=1' }
+ ],
+ link: [
+ { rel: 'stylesheet', href: 'https://fonts.googleapis.com/css?family=Roboto' }
+ ]
+}
+```
+
+To know the list of options you can give to `head`, take a look at [vue-meta documentation](https://github.com/declandewet/vue-meta#recognized-metainfo-properties).
+
+More information about the head method: [API Configuration head](/api/configuration-head)
+
+### Custom Meta Tags for a Page
+
+More information about the head method: [API Pages head](/api/pages-head)
+
+To avoid any duplication when used in child component, please give a unique identifier with the `hid` key, please [read more about it](https://github.com/declandewet/vue-meta#lists-of-tags).
diff --git a/ja/guide/vuex-store.md b/ja/guide/vuex-store.md
new file mode 100644
index 000000000..6e87670e0
--- /dev/null
+++ b/ja/guide/vuex-store.md
@@ -0,0 +1,189 @@
+---
+title: Vuex Store
+description: Using a store to manage the state is important for every big application, that's why nuxt.js implement Vuex in its core.
+---
+
+> Using a store to manage the state is important to every big application, that's why nuxt.js implement [vuex](https://github.com/vuejs/vuex) in its core.
+
+## Activate the Store
+
+Nuxt.js will look for the `store` directory, if it exists, it will:
+
+1. Import Vuex
+2. Add `vuex` module in the vendors bundle
+3. Add the `store` option to the root `Vue` instance.
+
+Nuxt.js lets you have **2 modes of store**, choose the one you prefer:
+- **Classic:** `store/index.js` returns a store instance
+- **Modules:** every `.js` file inside the `store` directory is transformed as a [namespaced module](http://vuex.vuejs.org/en/modules.html) (`index` being the root module)
+
+## Classic mode
+
+To activate the store with the classic mode, we create the `store/index.js` file and export the store instance:
+
+```js
+import Vuex from 'vuex'
+
+const store = new Vuex.Store({
+ state: {
+ counter: 0
+ },
+ mutations: {
+ increment (state) {
+ state.counter++
+ }
+ }
+})
+
+export default store
+```
+
+> We don't need to install `vuex` since it's shipped with nuxt.js
+
+We can now use `this.$store` inside our components:
+
+```html
+
+ {{ $store.state.counter }}
+
+```
+
+## Modules mode
+
+> Nuxt.js lets you have a `store` directory with every file corresponding to a module.
+
+If you want this option, export the state, mutations and actions in `store/index.js` instead of a store instance:
+
+```js
+export const state = {
+ counter: 0
+}
+
+export const mutations = {
+ increment (state) {
+ state.counter++
+ }
+}
+```
+
+Then, you can have a `store/todos.js` file:
+```js
+export const state = {
+ list: []
+}
+
+export const mutations = {
+ add (state, text) {
+ state.list.push({
+ text: text,
+ done: false
+ })
+ },
+ delete (state, { todo }) {
+ state.list.splice(state.list.indexOf(todo), 1)
+ },
+ toggle (state, todo) {
+ todo.done = !todo.done
+ }
+}
+```
+
+The store will be as such:
+```js
+new Vuex.Store({
+ state: { counter: 0 },
+ mutations: {
+ increment (state) {
+ state.counter++
+ }
+ },
+ modules: {
+ todos: {
+ state: {
+ list: []
+ },
+ mutations: {
+ add (state, { text }) {
+ state.list.push({
+ text,
+ done: false
+ })
+ },
+ delete (state, { todo }) {
+ state.list.splice(state.list.indexOf(todo), 1)
+ },
+ toggle (state, { todo }) {
+ todo.done = !todo.done
+ }
+ }
+ }
+ }
+})
+```
+
+And in your `pages/todos.vue`, using the `todos` module:
+
+```html
+
+
+
+
+
+
+
+```
+
+You can also have modules by exporting a store instance, you will have to add them manually on your store.
+
+## The fetch Method
+
+> The fetch method is used to fill the store before rendering the page, it's like the data method except it doesn't set the component data.
+
+More information about the fetch method: [API Pages fetch](/api/pages-fetch)
+
+## The nuxtServerInit Action
+
+If the action `nuxtServerInit` is defined in the store, nuxt.js will call it with the context (only from the server-side). It's useful when we have some data on the server we want to give directly to the client-side.
+
+For example, let's say we have sessions on the server-side and we can access the connected user trough `req.session.user`. To give the authenticated user to our store, we update our `store/index.js` to the following:
+
+```js
+actions: {
+ nuxtServerInit ({ commit }, { req }) {
+ if (req.session.user) {
+ commit('user', req.session.user)
+ }
+ }
+}
+```
+
+> If you are using the _Modules_ mode of the Vuex store, only the primary module (in `store/index.js`) will receive this action. You'll need to chain your module actions from there.
+
+The context is given to `nuxtServerInit` as the 2nd argument, it is the same as the `data` or `fetch` method except that `context.redirect()` and `context.error()` are omitted.
diff --git a/ja/lang.json b/ja/lang.json
new file mode 100644
index 000000000..013f5bf5a
--- /dev/null
+++ b/ja/lang.json
@@ -0,0 +1,50 @@
+{
+ "iso": "en",
+ "links": {
+ "api": "API",
+ "blog": "Blog",
+ "chat": "Chat",
+ "documentation": "Documentation",
+ "download": "Download",
+ "examples": "Examples",
+ "ecosystem": "Ecosystem",
+ "faq": "FAQ",
+ "get_started": "get started",
+ "github": "Github",
+ "guide": "Guide",
+ "homepage": "Home page",
+ "live_demo": "Live Demo",
+ "live_edit": "Live Edit",
+ "twitter": "Twitter",
+ "vuejs": "Vue.js",
+ "vue_jobs": "Vue Jobs"
+ },
+ "text": {
+ "an_error_occured": "An error occured",
+ "api_page_not_found": "API page not found",
+ "example_file": "Example Files",
+ "please_wait": "Please wait...",
+ "please_define_title": "Please define a title in the front matter",
+ "please_define_description": "Please define a description in the front matter",
+ "search": "Search",
+ "version": "Version"
+ },
+ "homepage": {
+ "title": "Universal Vue.js Applications",
+ "meta": {
+ "title": "Nuxt.js - Universal Vue.js Applications",
+ "description": "Nuxt.js is a minimal framework for creating Vue.js applications with server side rendering, code-splitting, hot-reloading, static generation and more!"
+ }
+ },
+ "footer": {
+ "authors": "Made by Chopin Brothers"
+ },
+ "guide": {
+ "release_notes": "Release Notes",
+ "contribute": "Caught a mistake or want to contribute to the documentation?",
+ "edit_on_github": "Edit this page on Github!"
+ },
+ "examples": {
+ "source_code": "Source Code"
+ }
+}
From ab4a0d652fc46ee93a4aea172dca9b653c139357 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Sun, 19 Feb 2017 22:35:44 +0900
Subject: [PATCH 002/129] Translate ja/lang.json
---
ja/lang.json | 52 ++++++++++++++++++++++++++--------------------------
1 file changed, 26 insertions(+), 26 deletions(-)
diff --git a/ja/lang.json b/ja/lang.json
index 013f5bf5a..d7f32a139 100644
--- a/ja/lang.json
+++ b/ja/lang.json
@@ -1,50 +1,50 @@
{
- "iso": "en",
+ "iso": "ja",
"links": {
"api": "API",
- "blog": "Blog",
- "chat": "Chat",
- "documentation": "Documentation",
- "download": "Download",
- "examples": "Examples",
- "ecosystem": "Ecosystem",
+ "blog": "ããã°",
+ "chat": "ãã£ãã",
+ "documentation": "ããã¥ã¡ã³ã",
+ "download": "ããŠã³ããŒã",
+ "examples": "äŸ",
+ "ecosystem": "ãšã³ã·ã¹ãã ",
"faq": "FAQ",
- "get_started": "get started",
+ "get_started": "ã¯ããã",
"github": "Github",
"guide": "Guide",
- "homepage": "Home page",
- "live_demo": "Live Demo",
- "live_edit": "Live Edit",
+ "homepage": "ããŒã ããŒãž",
+ "live_demo": "ã©ã€ããã¢",
+ "live_edit": "ã©ã€ããšãã£ãã",
"twitter": "Twitter",
"vuejs": "Vue.js",
"vue_jobs": "Vue Jobs"
},
"text": {
- "an_error_occured": "An error occured",
- "api_page_not_found": "API page not found",
- "example_file": "Example Files",
- "please_wait": "Please wait...",
- "please_define_title": "Please define a title in the front matter",
- "please_define_description": "Please define a description in the front matter",
- "search": "Search",
- "version": "Version"
+ "an_error_occured": "ãšã©ãŒãçºçããŸãã",
+ "api_page_not_found": "API ããŒãžãèŠã€ãããŸãã",
+ "example_file": "ãµã³ãã«ãã¡ã€ã«",
+ "please_wait": "ãåŸ
ã¡ãã ãã...",
+ "please_define_title": "Frontmatter å
ã® title ãå®çŸ©ããŠãã ãã",
+ "please_define_description": "Frontmatter å
ã® description ãå®çŸ©ããŠãã ãã",
+ "search": "æ€çŽ¢",
+ "version": "ããŒãžã§ã³"
},
"homepage": {
- "title": "Universal Vue.js Applications",
+ "title": "ãŠãããŒãµã« Vue.js ã¢ããªã±ãŒã·ã§ã³",
"meta": {
- "title": "Nuxt.js - Universal Vue.js Applications",
- "description": "Nuxt.js is a minimal framework for creating Vue.js applications with server side rendering, code-splitting, hot-reloading, static generation and more!"
+ "title": "Nuxt.js - ãŠãããŒãµã« Vue.js ã¢ããªã±ãŒã·ã§ã³",
+ "description": "Nuxt.js ã¯ãµãŒããŒãµã€ãã¬ã³ããªã³ã°ãã³ãŒãåå²ãããããªããŒãã£ã³ã°ãéçãªãã¡ã€ã«çæãªã©ãåãã Vue.js ã¢ããªã±ãŒã·ã§ã³ãæ§ç¯ããããã®ãããã«ãªãã¬ãŒã ã¯ãŒã¯ã§ãïŒ"
}
},
"footer": {
"authors": "Made by Chopin Brothers"
},
"guide": {
- "release_notes": "Release Notes",
- "contribute": "Caught a mistake or want to contribute to the documentation?",
- "edit_on_github": "Edit this page on Github!"
+ "release_notes": "ãªãªãŒã¹ããŒã",
+ "contribute": "ééããèŠã€ããããŸãã¯ããã¥ã¡ã³ãã«è²¢ç®ãããã§ããïŒ",
+ "edit_on_github": "GitHub ã§ãã®ããŒãžãç·šéãã"
},
"examples": {
- "source_code": "Source Code"
+ "source_code": "ãœãŒã¹ã³ãŒã"
}
}
From f1abd2a9b4c08ecc5cf81245947e16ff68038067 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Sun, 19 Feb 2017 22:36:22 +0900
Subject: [PATCH 003/129] Translate ja/guide/index.md
---
ja/guide/index.md | 186 +++++++++++++++++++++++++++++++++-------------
1 file changed, 136 insertions(+), 50 deletions(-)
diff --git a/ja/guide/index.md b/ja/guide/index.md
index 04f7c0057..c2967d12b 100644
--- a/ja/guide/index.md
+++ b/ja/guide/index.md
@@ -1,75 +1,138 @@
---
-title: Introduction
-description: "The 25th of October 2016, the team behind zeit.co, announced Next.js, a framework for server-rendered React applications. Few hours after the announcement, the idea of creating server-rendered Vue.js applications the same way as Next.js was obvious: Nuxt.js was born."
+title: ã¯ããã«
+description: "2016幎10æ25æ¥ zeit.co ã®ããŒã ã React ã¢ããªã±ãŒã·ã§ã³ããµãŒããŒãµã€ãã¬ã³ããªã³ã°ããããã®ãã¬ãŒã ã¯ãŒã¯ Next.js ãçºè¡šããŸããããããŠãã®çºè¡šããæ°æéåŸãNext.js ãšåãããæ¹ã§ Vue.js ããµãŒããŒãµã€ãã¬ã³ããªã³ã°ããã¢ããªã±ãŒã·ã§ã³ãæ§ç¯ããã¢ã€ãã£ã¢ãçãŸããŸãããããªãã¡ Nuxt.js ã®èªçã§ãã"
---
-> The 25th of October 2016, the team behind [zeit.co](https://zeit.co/), announced [Next.js](https://zeit.co/blog/next), a framework for server-rendered React applications. Few hours after the announcement, the idea of creating server-rendered [Vue.js](https://vuejs.org) applications the same way as Next.js was obvious: **Nuxt.js** was born.
+
+
-## What is Nuxt.js ?
+
-Nuxt.js is a framework for creating Universal Vue.js Applications.
+> 2016幎10æ25æ¥ã[zeit.co](https://zeit.co/) ã®ããŒã ã React ã¢ããªã±ãŒã·ã§ã³ããµãŒããŒãµã€ãã¬ã³ããªã³ã°ããããã®ãã¬ãŒã ã¯ãŒã¯ [Next.js](https://zeit.co/blog/next) ãçºè¡šããŸããããããŠãã®çºè¡šãããããæ°æéåŸãNext.js ãšåãããæ¹ã§ [Vue.js](https://vuejs.org) ããµãŒããŒãµã€ãã¬ã³ããªã³ã°ããã¢ããªã±ãŒã·ã§ã³ãæ§ç¯ããã¢ã€ãã£ã¢ãçãŸããŸãããããªãã¡ **Nuxt.js** ã®èªçã§ãã
-Its main scope is **UI rendering** while abstracting away the client/server distribution.
+
-Our goal is to create a framework flexible enough so that you can use it as a main project base or in addition to your current project based on Node.js.
+## Nuxt.js ãšã¯äœã§ããïŒ
-Nuxt.js presets all the configuration needed to make your development of a Vue.js Application **Server Rendered** more enjoyable.
+
-In addition, we also provide another deployment option called: *nuxt generate*. It will build a **Static Generated** Vue.js Application.
-We believe that option could be the next big step in the development of Web Applications with microservices.
+Next.js ãšã¯ãŠãããŒãµã«ãª Vue.js ã¢ããªã±ãŒã·ã§ã³ãæ§ç¯ããããã®ãã¬ãŒã ã¯ãŒã¯ã§ãã
-As a framework, Nuxt.js comes with a lot of features to help you in your development between the client side and the server side such as Asynchronous Data, Middleware, Layouts, etc.
+
-## How it Works
+ã¯ã©ã€ã¢ã³ããµã€ããšãµãŒããŒãµã€ãã®ãã£ã¹ããªãã¥ãŒã·ã§ã³ãæœè±¡åããéã® **UI ã¬ã³ããªã³ã°** ã«çŠç¹ãåœãŠãŠããŸãã
+
+
+
+ç§ãã¡ã®ãŽãŒã«ã¯ããããããžã§ã¯ãã®åºç€ãšããŠå©çšãããããããã¯æ¢ã«é²è¡äžã® Node.js ããŒã¹ã®ãããžã§ã¯ãã«è¿œå ããããã«ååã«æè»ãªãã¬ãŒã ã¯ãŒã¯ãäœæããããšã§ãã
+
+
+
+Nuxt.js 㯠**ãµãŒããŒãµã€ãã¬ã³ããªã³ã°** ãã Vue.js ã¢ããªã±ãŒã·ã§ã³ã®éçºããã£ãšæ¥œããããããã«å¿
èŠãªå
šãŠã®èšå®ããããããçšæããŠããŸãã
+
+
+
+
+ããã«å ããŠã*nuxt genrate* ãšåŒã°ããå¥ã®éçºãªãã·ã§ã³ãæäŸããŸãããã㯠**éçã«çæããã** Vue.js ã¢ããªã±ãŒã·ã§ã³ãæ§ç¯ããããã®ãã®ã§ããç§ãã¡ã¯ãã®ãªãã·ã§ã³ãããã€ã¯ããµãŒãã¹ã§ãŠã§ãã¢ããªã±ãŒã·ã§ã³ãéçºããããã®æ¬¡ã®å€§ããªäžæ©ã«ãªãåŸããšä¿¡ããŠããŸãã
+
+
+
+Nuxt.js ã¯ãã¬ãŒã ã¯ãŒã¯ãšããŠãã¯ã©ã€ã¢ã³ããµã€ããšãµãŒããŒãµã€ãéã«ãŸãããéçºãæå©ãããããããã®æ©èœãåããŠããŸããäŸãã°ãåæã§ã®ããŒã¿ãããåãããããã«ãŠã§ã¢ãã¬ã€ã¢ãŠããªã©ã§ãã
+
+
+
+## ã©ã®ããã«åäœãããïŒ

-Nuxt.js includes the following to create a rich web application development:
+
+
+Nuxt.js ã¯ãªãããªãŠã§ãã¢ããªã±ãŒã·ã§ã³ãæ§ç¯ããããã«äžèšã®ãã®ãå«ãã§ããŸã:
+
- [Vue 2](https://github.com/vuejs/vue)
- [Vue-Router](https://github.com/vuejs/vue-router)
-- [Vuex](https://github.com/vuejs/vuex) (included only when using the [store option](/guide/vuex-store))
+- [Vuex](https://github.com/vuejs/vuex)ïŒ[store option](/guide/vuex-store) ãå©çšããŠãããšãã«éããŸãïŒ
- [Vue-Meta](https://github.com/declandewet/vue-meta)
-A total of only **28kb min+gzip** (31kb with vuex).
+
+
+ãã¹ãŠåãããŠãããã **28kb min+gzip** ã§ãïŒVuex å©çšæã¯ 31kbïŒ
+
+
+
+ãŸãããã³ãã«ãã³ãŒãåå²åã³ãããã¡ã€ããããã« [Webpack](https://github.com/webpack/webpack) ã [vue-Loader](https://github.com/vuejs/vue-loader) ãš [babel-loader](https://github.com/babel/babel-loader) ãšåãããŠäœ¿ããŸãã
-Under the hood we use [Webpack](https://github.com/webpack/webpack) with [vue-Loader](https://github.com/vuejs/vue-loader) and [babel-loader](https://github.com/babel/babel-loader) to bundle, code-split and minify your code.
+
-## Features
+## äž»ãªæ©èœ
-- Write Vue Files
-- Automatic Code Splitting
-- Server-Side Rendering
-- Powerful Routing System with Asynchronous Data
-- Static File Serving
-- ES6/ES7 Transpilation
-- Bundling and minifying of your JS & CSS
-- Managing Head Elements
-- Hot reloading in Development
-- Pre-processor: SASS, LESS, Stylus, etc
+
+
+
+
+
+
+
+
+
+
-## Schema
+- Vue ãã¡ã€ã«ã§èšè¿°ã§ããããš
+- ã³ãŒãã®èªååå²
+- ãµãŒããŒãµã€ãã¬ã³ããªã³ã°
+- éåæããŒã¿ã䌎ããã¯ãã«ãªã«ãŒãã£ã³ã°
+- éçãªãã¡ã€ã«é
ä¿¡
+- ES6/ES7 ã®ãã©ã³ã¹ãã€ã¬ãŒã·ã§ã³
+- JS ãš CSS ã®ãã³ãã«åã³ãããã¡ã€
+- Head ã¿ã°ïŒè𳿳š: ã¡ã¿ã¿ã°ïŒã®ç®¡ç
+- éçºã¢ãŒãã«ãããããããªããŒãã£ã³ã°
+- SASS, LESS, Stylus ãªã©ã®ããªããã»ããµã®ãµããŒã
-This schema shows what is called by nuxt.js when the server is called or when the user navigate through the app via ``:
+
+
+## å³è§£
+
+
+
+äžã®å³ã¯ããµãŒããŒãµã€ãã§å®è¡æããŠãŒã¶ãŒã `` ãéããŠé·ç§»ãããšãã« Nuxt.js ã«ãã£ãŠäœãåŒã°ãããã衚ããŠããŸãã

-## Server Rendered
+
+
+## ãµãŒããŒãµã€ãã¬ã³ããªã³ã°
-You can use nuxt.js as a framework to handle all the UI rendering of your project.
+
-When launching `nuxt`, it will start a development server with hot-reloading and vue-server-renderer configured to automatically server-render your application.
+Nuxt.js ããããžã§ã¯ãã® UI ã¬ã³ããªã³ã°å
šäœãæ
ããã¬ãŒã ã¯ãŒã¯ãšããŠäœ¿ãããšãã§ããŸãã
-Take a look at [the commands](/guide/commands) to learn more about it.
+
-If you already have a server, you can plug nuxt.js by using it as a middleware, there is no restriction at all when using nuxt.js for developing your Universal Web Applications, see the [Using Nuxt.js Programmatically](/api/nuxt) guide.
+`nuxt` ã³ãã³ããå®è¡ãããšãããããªããŒãã£ã³ã°åã³èªåçã«ã¢ããªã±ãŒã·ã§ã³ããµãŒããŒãµã€ãã¬ã³ããªã³ã°ããããèšå®ããã vue-server-render ãåããéçºãµãŒããŒãèµ·åãããŸãã
-## Static Generated
+
-The big innovation of nuxt.js comes here: `nuxt generate`
+ã³ãã³ãã«ã€ããŠããæ·±ãåŠã¶ã«ã¯ [ã³ãã³ã](/guide/commands) ãåç
§ããŠãã ããã
-When building your application it will generate the HTML of every of your routes to store it in a file.
+
-Example:
+æ¢ã«ãµãŒããŒããããªã Nuxt.js ãããã«ãŠã§ã¢ãšããŠè¿œå ããšãã§ããŸãããŠãããŒãµã«ãªãŠã§ãã¢ããªã±ãŒã·ã§ã³ãéçºããããã« Nuxt.js ãå©çšããã«ããã£ãŠäœãå¶éã¯ãããŸããã[Using Nuxt.js Programmatically](/api/nuxt) ã¬ã€ããèŠãŠã¿ãŠãã ããã
+
+
+
+## éçãªçæ
+
+
+
+`nuxt generate` ãšãã Nuxt.js ã®å€§ããªã€ãããŒã·ã§ã³ããã£ãŠããŸãã
+
+
+
+`nuxt generate` ã¯ã¢ããªã±ãŒã·ã§ã³ããã«ãããéã«ããã¹ãŠã®ã«ãŒãã£ã³ã°ã®ç¶æ
ããã¡ã€ã«äžã«ä¿åãã HTML ãçæããŸãã
+
+
+
+äŸ:
```bash
-| pages/
@@ -77,7 +140,10 @@ Example:
----| index.vue
```
-Will generate:
+
+
+äžèšãçæããŸã:
+
```
-| dist/
----| about/
@@ -85,18 +151,38 @@ Will generate:
----| index.html
```
-This way, you can host your generated web application on any static hosting!
+
+
+ãã®ããæ¹ã«ãããã©ããªéçãªãã¹ãã£ã³ã°ãµãŒãã¹ã§ããçæããããŠã§ãã¢ããªã±ãŒã·ã§ã³ããã¹ãããããšãã§ããããã«ãªããŸãã
+
+
+
+æãè¯ãäŸã¯ãã®ãŠã§ããµã€ãèªäœã§ãããã®ãµã€ãã¯çæãã GitHub Pages ã§ãã¹ããããŠããŸã:
+
+
+
+
+- [ãœãŒã¹ã³ãŒã](https://github.com/nuxt/nuxtjs.org) -->
+- [çæãããã³ãŒã](https://github.com/nuxt/nuxtjs.org/tree/gh-pages) -->
+
+
+
+ç§ãã¡ã¯ [docs ãªããžããª](https://github.com/nuxt/docs) ãæŽæ°ãããã³ã«æ¯åæåã§ã¢ããªã±ãŒã·ã§ã³ãçæããããªãã£ãã®ã§ãAWS Lambda funtion ããçææ©èœãå®è¡ããŠããŸã:
+
+
+
+
+
+
+1. [nuxtjs.org ãªããžããª](https://github.com/nuxt/nuxtjs.org) ãã¯ããŒã³ãã
+2. `npm install` ã§äŸåããŠããã©ã€ãã©ãªãã€ã³ã¹ããŒã«ãã
+3. `nuxt generate` ãå®è¡ãã
+4. `dist` ãã©ã«ããŒã `gh-pages` ãã©ã³ãã«ããã·ã¥ãã
-The best example is this website. It is generated and hosted on Github Pages:
-- [Source code](https://github.com/nuxt/nuxtjs.org)
-- [Generated code](https://github.com/nuxt/nuxtjs.org/tree/gh-pages)
+
-We don't want to manually generate the application every time we update the [docs repository](https://github.com/nuxt/docs), so each push made calls an AWS Lambda function which:
-1. Clone the [nuxtjs.org repository](https://github.com/nuxt/nuxtjs.org)
-2. Install the dependencies via `npm install`
-3. Run `nuxt generate`
-4. Push the `dist` folder to the `gh-pages` branch
+ããããŠç§ãã¡ã¯ **ãµãŒããŒã¬ã¹ã§éçã«çæããããŠã§ãã¢ããªã±ãŒã·ã§ã³** ãæã«å
¥ããã®ã§ããã:)
-We now have a **Serverless Static Generated Web Application** :)
+
-We can go further by thinking of an e-commerce web application made with `nuxt generate` and hosted on a CDN, and every time a product is out of stock or back in stock, we regenerate the web app. But if the user navigates through the web app in the meantime, it will be up to date thanks to the API calls made to the e-commerce API. No need to have multiple instances of a server + a cache anymore!
+ããã«é²ã㊠`nuxt generate` ã§çæããã E ã³ããŒã¹ã®ãŠã§ãã¢ããªã±ãŒã·ã§ã³ãèããŠã¿ãŸãããããã®ã¢ããªã±ãŒã·ã§ã³ã¯ CDN ã§ãã¹ããããååãåšåº«åãã«ãªã£ããå
¥è·ãããããããã³ã«ã¢ããªã±ãŒã·ã§ã³ãåçæãããŸãããŠãŒã¶ãŒãã¢ããªã±ãŒã·ã§ã³é·ç§»ããŠããéã«ãåšåº«ã®ç¶æ
ãïŒåçæã®ãããã§ïŒææ°ã®ç¶æ
ã«ãªãã®ã§ããã€ãŸãããµãŒããŒã§è€æ°ã®ã€ã³ã¹ã¿ã³ã¹åã³ãã£ãã·ã¥ãæã€å¿
èŠããªããªãã®ã§ãïŒ
From bf49efe47fdc287d7023ce1d249ca30c6dc79f19 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Mon, 20 Feb 2017 00:02:58 +0900
Subject: [PATCH 004/129] Translate ja/guide/contribution-guide.md
---
ja/guide/contribution-guide.md | 38 +++++++++++++++++++++++++---------
1 file changed, 28 insertions(+), 10 deletions(-)
diff --git a/ja/guide/contribution-guide.md b/ja/guide/contribution-guide.md
index 556b9f490..976473294 100644
--- a/ja/guide/contribution-guide.md
+++ b/ja/guide/contribution-guide.md
@@ -1,19 +1,37 @@
---
-title: Contribution Guide
-description: Any contribution to Nuxt.js is more than welcome!
+title: è²¢ç®ã¬ã€ã
+description: "Nuxt.js ãžã®ã©ããªè²¢ç®ã倧æè¿ããŸãïŒ"
---
-> Any contribution to Nuxt.js is more than welcome!
+
+
-## Reporting Issues
+
-A great way to contribute to the project is to send a detailed report when you encounter an issue. We always appreciate a well-written bug report, and will thank you for it! Before reporting an issue, please read carefully the documentation and search if any issue for your problem doesn't already exist: https://github.com/nuxt/nuxt.js/issues
+Nuxt.js ãžã®ã©ããªè²¢ç®ã倧æè¿ããŸãïŒ
-## Pull Requests
+
-We'd love to see your pull requests, even if it's just to fix a typo. Any significant improvement should be documented as [a GitHub issue](https://github.com/nuxt/nuxt.js/issues) before anybody starts working on it.
+## åé¡ã®å ±å
-### Convention
+
-- For a fix, the branch name should be `fix-XXX` where XXX is the issue number or the name of what your fix does
-- For a feature, the branch name should be `feature-XXX` where XXX is the issue number associated to this feature request
+ãã®ãããžã§ã¯ãã«è²¢ç®ããæ¹æ³ã®ã²ãšã€ã¯ãåé¡ã«ééãããšãã«è©³çްãªã¬ããŒããéãããšã§ããç§ãã¡ã¯äžæããŸãšãããããã°ã¬ããŒããšãããéã£ãŠãã ãã£ãæ¹ã«ãã€ãæè¬ããŠããŸãïŒåé¡ãå ±åããåã«ãããã¥ã¡ã³ããæ³šææ·±ãèªã¿ããŸããééããåé¡ãæ¢ã« https://github.com/nuxt/nuxt.js/issues ã«å ±åãããŠããªããã©ããæ€çŽ¢ããŠãã ããã
+
+
+
+## ãã«ãªã¯ãšã¹ã
+
+
+
+ããšããããåã«ã¿ã€ãã®ä¿®æ£ã§ãã£ãŠãããã²ãã«ãªã¯ãšã¹ããéã£ãŠãã ãããã©ããªéèŠãªæ¹åã§ãã£ãŠãã誰ããæãåããå§ããåã« [GitHub issue](https://github.com/nuxt/nuxt.js/issues) ã«èšèŒããŠãã ããã
+
+
+
+### æ
£äŸ
+
+
+
+
+- äžå
·åã®ä¿®æ£ã§ããã°ãã©ã³ãå㯠`fix-XXX` ã«ããŠãXXX ã«ã¯ issue çªå·ãŸãã¯ä¿®æ£ãããã®ã®ååãå
¥ããŠãã ãã
+- æ©èœã®ãã«ãªã¯ãšã¹ãã§ããã°ãã©ã³ãå㯠`feature-XXX` ã«ããŠãXXX ã«ã¯ãã®æ©èœã«é¢é£ãã issue çªå·ãå
¥ããŠãã ãã
From 1e8e5a41bd7cfe54353a4470a16998e043244dd4 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Mon, 20 Feb 2017 00:38:24 +0900
Subject: [PATCH 005/129] Translage ja/guide/installation.md
---
ja/guide/installation.md | 114 ++++++++++++++++++++++++++++++---------
1 file changed, 88 insertions(+), 26 deletions(-)
diff --git a/ja/guide/installation.md b/ja/guide/installation.md
index f20967e37..3eb79558f 100644
--- a/ja/guide/installation.md
+++ b/ja/guide/installation.md
@@ -1,53 +1,87 @@
---
-title: Installation
+title: ã€ã³ã¹ããŒã«
description: Nuxt.js is really easy to get started with. A simple project only need the `nuxt` dependency.
---
-> Nuxt.js is really easy to get started with. A simple project only need the `nuxt` dependency.
+
+
-## Using Nuxt.js starter template
+
-To start quickly, the Nuxt.js team has created a [starter template](https://github.com/nuxt/starter).
+Nuxt.js ã¯ãšãŠãç°¡åã«å§ããããŸããã·ã³ãã«ãªãããžã§ã¯ãã§ã¯å¿
èŠãªãã®ã¯ `nuxt` ã ãã§ãã
-[Download the .zip](https://github.com/nuxt/starter/archive/source.zip) starter template or install it with vue-cli:
+
+
+## Nuxt.js ã䜿ã£ãã¹ã¿ãŒã¿ãŒãã³ãã¬ãŒã
+
+
+
+çŽ æ©ãã¹ã¿ãŒãã§ããããã«ãããããNuxt.js ããŒã 㯠[ã¹ã¿ãŒã¿ãŒãã³ãã¬ãŒã](https://github.com/nuxt/starter) ãäœããŸããã
+
+
+
+[ZIP ãããŠã³ããŒã](https://github.com/nuxt/starter/archive/source.zip) ããããvue-cli ã䜿ã£ãŠã€ã³ã¹ããŒã«ããŠãã ãã:
```bash
$ vue init nuxt/starter
```
-> If [vue-cli](https://github.com/vuejs/vue-cli) is not installed, please install it with `npm install -g vue-cli`
+
-then install the dependencies:
+> ãã [vue-cli](https://github.com/vuejs/vue-cli) ãã€ã³ã¹ããŒã«ããŠããªããã°ã`npm install -g vue-cli` ã§ã€ã³ã¹ããŒã«ããŠãã ããã
+
+
+
+ããããäŸåããã©ã€ãã©ãªãã€ã³ã¹ããŒã«ããŠãã ãã:
```bash
$ cd
$ npm install
```
-and launch the project with:
+
+
+ãããŠãããžã§ã¯ããèµ·åããŠãã ãã:
+
```bash
$ npm run dev
```
-The application is now running on http://localhost:3000
-Nuxt.js will listen on the files changes inside the `pages` directory, so no need to restart the application when adding new pages
+
-To discover more about the directory structure of the project: [Directory Structure Documentation](/guide/directory-structure).
+ãããšã¢ããªã±ãŒã·ã§ã³ã¯ http://localhost:3000 ã§åããŸãã
-## Starting from scratch
+
-Creating a Nuxt.js application from scratch is also really easy, it only needs *1 file and 1 directory*. Let's create an empty directory to start working on the application:
+Nuxt.js 㯠`pages` ãã£ã¬ã¯ããªå
ã®ãã¡ã€ã«ã®æŽæ°ãç£èŠããŸãããã®ããæ°ããããŒãžã远å ããå Žåã«ã¢ããªã±ãŒã·ã§ã³ãåèµ·åããå¿
èŠã¯ãããŸãã
+
+
+
+ãããžã§ã¯ãã®ãã£ã¬ã¯ããªæ§é ã«ã€ããŠããæ·±ãçè§£ããã«ã¯ [ãã£ã¬ã¯ããªæ§é ã®ããã¥ã¡ã³ã](/guide/directory-structure) ãåç
§ããŠãã ããã
+
+
+
+## ã¹ã¯ã©ããããå§ãã
+
+
+
+Nuxt.js ã¢ããªã±ãŒã·ã§ã³ãã¹ã¯ã©ããããäœãããšããšãŠãç°¡åã§ãå¿
èŠãªãã®ã¯ *1ã€ã®ãã¡ã€ã«ãš 1ã€ã®ãã£ã¬ã¯ããª* ã ãã§ããã¢ããªã±ãŒã·ã§ã³ã§åãã空ã®ãã£ã¬ã¯ããªãäœããŸããã:
```bash
$ mkdir
$ cd
```
-*Info: replace project-name by the name of the project.*
+
+
+*ã¡ã¢: `` ã®ç®æã¯çœ®ãæããŠãã ããã*
### The package.json
-The project needs a `package.json` file to specify how to start `nuxt`:
+
+
+`nuxt` ãã©ã®ããã«èµ·åããããæå®ããããã« `package.json` ãã¡ã€ã«ãå¿
èŠã§ãã
+
```json
{
"name": "my-app",
@@ -56,37 +90,65 @@ The project needs a `package.json` file to specify how to start `nuxt`:
}
}
```
-`scripts` will launch Nuxt.js via `npm run dev`.
-### Installing `nuxt`
+
+
+`npm run dev` ãããš `scripts` ã Nuxt.js ãèµ·åãããŸãã
+
+
+
+### `nuxt` ã®ã€ã³ã¹ããŒã«
+
+
+
+äžæŠ `package.json` ãäœæããããšãNPM ã«ãã£ãŠãããžã§ã¯ãã« `nuxt` ã远å ãããŸã:
-Once the `package.json` has been created, add `nuxt` to the project via NPM:
```bash
npm install --save nuxt
```
-### The `pages` directory
+
+
+### `pages` ãã£ã¬ã¯ããª
+
+
+
+Nuxt.js 㯠`pages` ãã£ã¬ã¯ããªå
ã®å
šãŠã® `*.vue` ãã¡ã€ã«ãããã¡ã€ã«ããšã«ã¢ããªã±ãŒã·ã§ã³ã®ã²ãšã€ã®ã«ãŒããšããŠå€æããŸãã
+
+
-Nuxt.js will transform every `*.vue` file inside the `pages` directory as a route for the application.
+`pages` ãã£ã¬ã¯ããªãäœããŸã:
-Create the `pages` directory:
```bash
$ mkdir pages
```
-then create the first page in `pages/index.vue`:
+
+
+ããããæåã®ããŒãžã `pages/index.vue` ã«äœããŸã:
+
```html
Hello world!
```
-and launch the project with:
+
+
+ãããŠããããžã§ã¯ããèµ·åããŸã:
+
```bash
$ npm run dev
```
-The application is now running on http://localhost:3000
-Nuxt.js will listen on the files changes inside the `pages` directory, so no need to restart the application when adding new pages
+
+
+ãããšãã¢ããªã±ãŒã·ã§ã³ã¯ http://localhost:3000 ã§åããŠããŸãã
+
+
+
+Nuxt.js 㯠`pages` ãã£ã¬ã¯ããªå
ã®ãã¡ã€ã«ã®æŽæ°ãç£èŠããŸãããã®ããæ°ããããŒãžã远å ããå Žåã«ã¢ããªã±ãŒã·ã§ã³ãåèµ·åããå¿
èŠã¯ãããŸãã
+
+
-To discover more about the directory structure of the project: [Directory Structure Documentation](/guide/directory-structure).
+ãããžã§ã¯ãã®ãã£ã¬ã¯ããªæ§é ã«ã€ããŠããæ·±ãçè§£ããã«ã¯ [ãã£ã¬ã¯ããªæ§é ã®ããã¥ã¡ã³ã](/guide/directory-structure) ãåç
§ããŠãã ããã
From 11986064d758d4108c092d90a6283f3c77e55966 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Mon, 20 Feb 2017 20:45:41 +0900
Subject: [PATCH 006/129] Translate ja/guide/directory-structure.md
---
ja/guide/directory-structure.md | 177 ++++++++++++++++++++++++--------
1 file changed, 134 insertions(+), 43 deletions(-)
diff --git a/ja/guide/directory-structure.md b/ja/guide/directory-structure.md
index e3996480e..f648e0365 100644
--- a/ja/guide/directory-structure.md
+++ b/ja/guide/directory-structure.md
@@ -1,83 +1,167 @@
---
-title: Directory Structure
-description: The default Nuxt.js application structure is intended to provide a great starting point for both large and small applications.
+title: ãã£ã¬ã¯ããªæ§é
+description: ããã©ã«ãã® Nuxt.js ã¢ããªã±ãŒã·ã§ã³ã®æ§é ã¯ãå°èŠæš¡ã®ã¢ããªã±ãŒã·ã§ã³ãšå€§èŠæš¡ã®ã¢ããªã±ãŒã·ã§ã³ã®ã©ã¡ãã«ãé©ããŠããŸãã
---
-> The default Nuxt.js application structure is intended to provide a great starting point for both small and large applications. Of course, you are free to organize your application however you like.
+
+
-## Directories
+
-### The Assets Directory
+> ããã©ã«ãã® Nuxt.js ã¢ããªã±ãŒã·ã§ã³ã®æ§é ã¯ãå°èŠæš¡ã®ã¢ããªã±ãŒã·ã§ã³ãšå€§èŠæš¡ã®ã¢ããªã±ãŒã·ã§ã³ã®ã©ã¡ãã«ãé©ããŠããŸãããã¡ããã奜ããªããã«æ§æããããšãã§ããŸãã
-The `assets` directory contains your un-compiled assets such as LESS, SASS, or JavaScript.
+
-[More documentation about Assets integration](/guide/assets)
+## ãã£ã¬ã¯ããª
-### The Components Directory
+
-The `components` directory contains your Vue.js Components. Nuxt.js doesn't supercharge the data method on these components.
+### ã¢ã»ãããã£ã¬ã¯ããª
-### The Layouts Directory
+
-The `layouts` directory contains your Application Layouts.
+`assets` ãã£ã¬ã¯ããªã«ã¯ LESS ã SASSãJavaScript ã®ãããªã³ã³ãã€ã«ãããŠããªããã¡ã€ã«ãå
¥ããŸãã
-_This directory can not be renamed._
+
-[More documentation about Layouts integration](/guide/views#layouts)
+ã¢ã»ãããã¡ã€ã«ã®çµ±åã«ã€ããŠããæ·±ãçè§£ããã«ã¯ [ãã¡ãã®ããã¥ã¡ã³ã](/guide/assets) ãåç
§ããŠãã ããã
-### The Middleware Directory
+
+
+### ã³ã³ããŒãã³ããã£ã¬ã¯ããª
+
+
+
+`components` ãã£ã¬ã¯ããªã«ã¯ Vue.js ã®ã³ã³ããŒãã³ããã¡ã€ã«ãå
¥ããŸããNuxt.js ã¯ãããã®ã³ã³ããŒãã³ãã® data ã¡ãœããã«é絊ããŸããïŒèš³ã«èªä¿¡ãªããåæã¯ Nuxt.js doesn't supercharge the data method on these components.ïŒ
+
+
+
+### ã¬ã€ã¢ãŠããã£ã¬ã¯ããª
+
+
+
+`layouts` ãã£ã¬ã¯ããªã«ã¯ã¢ããªã±ãŒã·ã§ã³ã®ã¬ã€ã¢ãŠããã¡ã€ã«ãå
¥ããŸãã
+
+
+
+_ãã®ãã£ã¬ã¯ããªåã¯å€æŽã§ããŸããã_
+
+
+
+ã¬ã€ã¢ãŠããã¡ã€ã«ã®çµ±åã«ã€ããŠããæ·±ãçè§£ããã«ã¯ [ãã¡ãã®ããã¥ã¡ã³ã](/guide/views#layouts) ãåç
§ããŠãã ããã
+
+
+
+### ããã«ãŠã§ã¢ãã£ã¬ã¯ããª
_Coming soon_
-### The Pages Directory
+
+
+### ããŒãžãã£ã¬ã¯ããª
+
+
+
+`pages` ãã£ã¬ã¯ããªã«ã¯ã¢ããªã±ãŒã·ã§ã³ã®ãã¥ãŒåã³ã«ãŒãã£ã³ã°ãã¡ã€ã«ãå
¥ããŸããNuxt.js ãã¬ãŒã ã¯ãŒã¯ã¯ãã®ãã£ã¬ã¯ããªå
ã®å
šãŠã® `.vue` ãã¡ã€ã«ãèªã¿èŸŒã¿ãã¢ããªã±ãŒã·ã§ã³ã®ã«ãŒã¿ãŒãäœæããŸãã
+
+
+
+_ãã®ãã£ã¬ã¯ããªåã¯å€æŽã§ããŸããã_
+
+
+
+ããŒãžãã¡ã€ã«ã®çµ±åã«ã€ããŠããæ·±ãçè§£ããã«ã¯ [ãã¡ãã®ããã¥ã¡ã³ã](/guide/views) ãåç
§ããŠãã ããã
-The `pages` directory contains your Application Views and Routes. The framework reads all the `.vue` files inside this directory and create the router of your application.
+
-_This directory can not be renamed._
+### ãã©ã°ã€ã³ãã£ã¬ã¯ããª
-[More documentation about Pages integration](/guide/views)
+
-### The Plugins Directory
+`plugins` ãã£ã¬ã¯ããªã«ã¯ãã«ãŒãã® vue.js ã¢ããªã±ãŒã·ã§ã³ãã€ã³ã¹ã¿ã³ã¹åããåã«å®è¡ããã Javascript ãã©ã°ã€ã³ãå
¥ããŸãã
-The `plugins` directory contains your Javascript plugins that you want to run before instantiating the root vue.js application.
+
-[More documentation about Plugins integration](/guide/plugins)
+ãã©ã°ã€ã³ã®çµ±åã«ã€ããŠããæ·±ãçè§£ããã«ã¯ [ãã¡ãã®ããã¥ã¡ã³ã](/guide/plugins) ãåç
§ããŠãã ããã
-### The Static Directory
+
-The `static` directory contains your static files. Each files inside this directory is mapped to /.
+### ã¹ã¿ãã£ãã¯ãã£ã¬ã¯ããª
-**Example:** /static/robots.txt is mapped as /robots.txt
+
-_This directory can not be renamed._
+`static` ãã£ã¬ã¯ããªã«ã¯éçãªãã¡ã€ã«ãå
¥ããŸãããã®ãã£ã¬ã¯ããªå
ã®ãã¡ã€ã«ã¯ãããã `/` ã«é
眮ãããŸãã
-[More documentation about Static integration](/guide/assets#static)
+
-### The Store Directory
+**äŸ:** /static/robots.txt 㯠/robots.txt ã«é
眮ãããŸãã
-The `store` directory contains your [Vuex Store](http://vuex.vuejs.org) files. Vuex Store option is implemented in the Nuxt.js framework. Creating a `index.js` file in this directory activate the option in the framework automatically.
+
-_This directory can not be renamed._
+_ãã®ãã£ã¬ã¯ããªåã¯å€æŽã§ããŸããã_
-[More documentation about Store integration](/guide/vuex-store)
+
-### The nuxt.config.js File
+éçãªãã¡ã€ã«ã®çµ±åã«ã€ããŠããæ·±ãçè§£ããã«ã¯ [ãã¡ãã®ããã¥ã¡ã³ã](/guide/assets#static) ãåç
§ããŠãã ããã
-The `nuxt.config.js` file contains your Nuxt.js custom configuration.
+
-_This file can not be renamed._
+### ã¹ãã¢ãã£ã¬ã¯ããª
-[More documentation about nuxt.config.js integration](/guide/configuration)
+
-### The package.json File
+`store` ãã£ã¬ã¯ããªã«ã¯ [Vuex Store](http://vuex.vuejs.org) ã®ãã¡ã€ã«ãå
¥ããŸããVuex Store 㯠Nuxt.js ãã¬ãŒã ã¯ãŒã¯ã§ã¯ãªãã·ã§ã³ãšããŠå®è£
ãããŠããŸãããã®ãã£ã¬ã¯ããªå
ã« `index.js` ãã¡ã€ã«ãäœæãããšãNuxt.js ãã¬ãŒã ã¯ãŒã¯å
ã§ãã®ãªãã·ã§ã³ãèªåçã«æå¹ã«ãªããŸãã
-The `package.json` file contains your Application dependencies and scripts.
+
-_This file can not be renamed._
+_ãã®ãã£ã¬ã¯ããªåã¯å€æŽã§ããŸããã_
-## Aliases
+
-| Alias | Directory |
+ã¹ãã¢ãã¡ã€ã«ã®çµ±åã«ã€ããŠããæ·±ãçè§£ããã«ã¯ [ãã¡ãã®ããã¥ã¡ã³ã](/guide/vuex-store) ãåç
§ããŠãã ããã
+
+
+
+### nuxt.config.js ãã¡ã€ã«
+
+
+
+`nuxt.config.js` ãã¡ã€ã«ã«ã¯ Nuxt.js ã®ã«ã¹ã¿ã èšå®ãèšè¿°ããŸãã
+
+
+
+_ãã®ãã¡ã€ã«åã¯å€æŽã§ããŸããã_
+
+
+
+nuxt.config.js ã«ã€ããŠããæ·±ãçè§£ããã«ã¯ [ãã¡ãã®ããã¥ã¡ã³ã](/guide/configuration) ãåç
§ããŠãã ããã
+
+
+
+### package.json ãã¡ã€ã«
+
+
+
+`package.json` ãã¡ã€ã«ã«ã¯ã¢ããªã±ãŒã·ã§ã³ãäŸåããã©ã€ãã©ãªãã¹ã¯ãªãããèšè¿°ããŸãã
+
+
+
+_ãã®ãã¡ã€ã«åã¯å€æŽã§ããŸããã_
+
+
+
+## ãšã€ãªã¢ã¹ïŒå¥åïŒ
+
+
+
+
+
+
+
+
+
+
+| ãšã€ãªã¢ã¹ | ãã£ã¬ã¯ã㪠|
|-----|------|
| ~ | / |
| ~assets | /assets |
@@ -86,9 +170,16 @@ _This file can not be renamed._
| ~plugins | /plugins |
| ~static | /static |
-Aliases which link to files:
+
+
+ãã¡ã€ã«ãžãªã³ã¯ãããšã€ãªã¢ã¹:
+
+
+
+
+
-| Alias | Usage | Description |
+| ãšã€ãªã¢ã¹ | äœ¿ãæ¹ | 説æ |
|-------|------|--------------|
-| ~store | `const store = require('~store')` | Import the `vuex` store instance. |
-| ~router | `const router = require('~router')`| Import the `vue-router` instance. |
+| ~store | `const store = require('~store')` | `vuex` ã¹ãã¢ã®ã€ã³ã¹ã¿ã³ã¹ãã€ã³ããŒãããŸã |
+| ~router | `const router = require('~router')`| `vue-router` ã®ã€ã³ã¹ã¿ã³ã¹ãã€ã³ããŒãããŸã |
From 95aed6b29020ee333b2fddb084b1ffc7536c88e2 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Mon, 20 Feb 2017 21:13:44 +0900
Subject: [PATCH 007/129] Translate ja/guide/configuration.md
---
ja/guide/configuration.md | 115 ++++++++++++++++++++++++++++----------
1 file changed, 86 insertions(+), 29 deletions(-)
diff --git a/ja/guide/configuration.md b/ja/guide/configuration.md
index 4307a9a69..15250af2a 100644
--- a/ja/guide/configuration.md
+++ b/ja/guide/configuration.md
@@ -1,84 +1,141 @@
---
-title: Configuration
-description: The Nuxt.js default configuration covers most of usages. However, the nuxt.config.js file lets you overwrite it.
+title: èšå®
+description: Nuxt.js ã§ã¯ããã©ã«ãã®èšå®ã§ã»ãšãã©ã®ãŠãŒã¹ã±ãŒã¹ãã«ããŒããŠããŸããããã nuxt.config.js ã§èšå®ãäžæžãããããšãã§ããŸãã
---
-> The Nuxt.js default configuration covers most of usages. However, the nuxt.config.js file lets you overwrite it.
+
+
+
+
+
+> Nuxt.js ã§ã¯ããã©ã«ãã®èšå®ã§ã»ãšãã©ã®ãŠãŒã¹ã±ãŒã¹ãã«ããŒããŠããŸããããã nuxt.config.js ã§èšå®ãäžæžãããããšãã§ããŸãã
### build
-This option lets you add modules inside the vendor.bundle.js file generated to reduce the size of the app bundle. It's really useful when using external modules
+
+
+ãã®ãªãã·ã§ã³ã§ãã¢ããªã±ãŒã·ã§ã³ã®ãã³ãã«ãã¡ã€ã«ã®ãµã€ãºãåæžããããã«çæããã vendor.bundle.js ãã¡ã€ã«å
ã«ã¢ãžã¥ãŒã«ã远å ã§ããŸããå€éšã®ã¢ãžã¥ãŒã«ã䜿ããšãã«åœ¹ã«ç«ã¡ãŸãã
+
+
-[Documentation about build integration](/api/configuration-build)
+[build ãªãã·ã§ã³ã«é¢ããããã¥ã¡ã³ã](/api/configuration-build)
### cache
-This option lets you enable cached components for better render performances.
+
-[Documentation about cache integration](/api/configuration-cache)
+ãã®ãªãã·ã§ã³ã§ãã¬ã³ããªã³ã°ã®ããã©ãŒãã³ã¹ãåäžãããããã«ã³ã³ããŒãã³ãããã£ãã·ã¥ã§ããŸãã
+
+
+
+[cache ãªãã·ã§ã³ã«é¢ããããã¥ã¡ã³ã](/api/configuration-cache)
### css
-This option lets you define the CSS files/modules/libraries you want to set as globals (included in every pages).
+
+
+ãã®ãªãã·ã§ã³ã§ãã°ããŒãã«ã«å©çšãããïŒã©ã®ãã¡ã€ã«ã«ãã€ã³ã¯ã«ãŒããããïŒCSS ãã¡ã€ã«/ã¢ãžã¥ãŒã«/ã©ã€ãã©ãªãæå®ã§ããŸãã
-[Documentation about css integration](/api/configuration-css)
+
+
+[css ãªãã·ã§ã³ã«é¢ããããã¥ã¡ã³ã](/api/configuration-css)
### dev
-This option lets you define the development or production mode of nuxt.js
+
+
+ãã®ãªãã·ã§ã³ã§ãNuxt.js ã®éçºã¢ãŒããŸãã¯ãããã¯ã·ã§ã³ã¢ãŒããå®çŸ©ã§ããŸãã
-[Documentation about dev integration](/api/configuration-dev)
+
+
+[dev ãªãã·ã§ã³ã«é¢ããããã¥ã¡ã³ã](/api/configuration-css)
### env
-This option lets you define environment variables available both client and server side.
+
+
+ãã®ãªãã·ã§ã³ã§ãã¯ã©ã€ã¢ã³ããµã€ãã§ããµãŒããŒãµã€ãã§ã䜿ããç°å¢å€æ°ãæå®ã§ããŸãã
-[Documentation about env integration](/api/configuration-env)
+
+
+[env ãªãã·ã§ã³ã«é¢ããããã¥ã¡ã³ã](/api/configuration-env)
### generate
-This option lets you to define each params value for every dynamic routes in your application that Nuxt.js transforms into HTML files.
+
+
+ãã®ãªãã·ã§ã³ã§ãNuxt.js ã HTML ãã¡ã€ã«ã«å€æããã¢ããªã±ãŒã·ã§ã³å
ã®åçãªã«ãŒãã£ã³ã°ã®ããã®ãã©ã¡ãŒã¿ãæå®ã§ããŸããïŒèš³ã«èªä¿¡ãªããåæã¯ This option lets you to define each params value for every dynamic routes in your application that Nuxt.js transforms into HTML files.ïŒ
+
+
-[Documentation about generate integration](/api/configuration-generate)
+[generate ãªãã·ã§ã³ã«é¢ããããã¥ã¡ã³ã](/api/configuration-generate)
### head
-This option lets you to define all the defaults metas for your application.
+
-[Documentation about head integration](/api/configuration-head)
+ãã®ãªãã·ã§ã³ã§ãã¢ããªã±ãŒã·ã§ã³ã®ããã©ã«ãã®ã¡ã¿æ
å ±ïŒè𳿳š: head ã¿ã°å
ã®ã¡ã¿ã¿ã°ã®æ
å ±ïŒãæå®ã§ããŸãã
+
+
+
+[head ãªãã·ã§ã³ã«é¢ããããã¥ã¡ã³ã](/api/configuration-head)
### loading
-This option lets you to customize the loading component load by default with Nuxt.js.
+
+
+ãã®ãªãã·ã§ã³ã§ãNuxt.js ã®ããã©ã«ãã®ããŒãã£ã³ã°ã³ã³ããŒãã³ããã«ã¹ã¿ãã€ãºã§ããŸãã
+
+
-[Documentation about loading integration](/api/configuration-loading)
+[loading ãªãã·ã§ã³ã«é¢ããããã¥ã¡ã³ã](/api/configuration-loading)
### plugins
-This option lets you to define Javascript plugins to be ran before instantiating the root vue.js application.
+
-[Documentation about plugins integration](/api/configuration-plugins)
+ãã®ãªãã·ã§ã³ã§ãã«ãŒãã® vue.js ã¢ããªã±ãŒã·ã§ã³ãã€ã³ã¹ã¿ã³ã¹åããåã«å®è¡ããã Javascript plugin ãæå®ã§ããŸãã
+
+
+
+[plugings ãªãã·ã§ã³ã«é¢ããããã¥ã¡ã³ã](/api/configuration-plugins)
### rootDir
-This option lets you define the workspace of your nuxt.js application.
+
+
+ãã®ãªãã·ã§ã³ã§ãNuxt.js ã¢ããªã±ãŒã·ã§ã³ã®ã¯ãŒã¯ã¹ããŒã¹ãæå®ã§ããŸãã
-[Documentation about rootDir integration](/api/configuration-rootdir)
+
+
+[rootDir ãªãã·ã§ã³ã«é¢ããããã¥ã¡ã³ã](/api/configuration-rootdir)
### router
-This option lets you to overwrite the default Nuxt.js configuration of vue-router.
+
+
+ãã®ãªãã·ã§ã³ã§ãNuxt.js ã®ããã©ã«ãã® vue-router èšå®ãäžæžãã§ããŸãã
-[Documentation about router integration](/api/configuration-router)
+
+
+[router ãªãã·ã§ã³ã«é¢ããããã¥ã¡ã³ã](/api/configuration-router)
### srcDir
-This option lets you define the source directory of your nuxt.js application.
+
+
+ãã®ãªãã·ã§ã³ã§ãNuxt.js ã®ãœãŒã¹ãã£ã¬ã¯ããªãæå®ã§ããŸãã
-[Documentation about srcDir integration](/api/configuration-srcdir)
+
+
+[srcDir ãªãã·ã§ã³ã«é¢ããããã¥ã¡ã³ã](/api/configuration-srcdir)
### transition
-This option lets you define the default properties of the pages transitions.
+
+
+ãã®ãªãã·ã§ã³ã§ãããŒãžéã®é·ç§»ã®ããã©ã«ãèšå®ãæå®ã§ããŸãã
+
+
-[Documentation about transition integration](/api/configuration-transition)
+[transition ãªãã·ã§ã³ã«é¢ããããã¥ã¡ã³ã](/api/configuration-transition)
From 7f0af184e2daa8b534ba4596bb87ff345fe9d3eb Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Tue, 21 Feb 2017 04:35:45 +0900
Subject: [PATCH 008/129] Translate ja/guide/routing.md
---
ja/guide/routing.md | 216 +++++++++++++++++++++++++++++++++-----------
1 file changed, 165 insertions(+), 51 deletions(-)
diff --git a/ja/guide/routing.md b/ja/guide/routing.md
index cbfbe464c..0e31539a8 100644
--- a/ja/guide/routing.md
+++ b/ja/guide/routing.md
@@ -1,13 +1,22 @@
---
-title: Routing
-description: Nuxt.js use the file-system to generate the routes of your web applications, it's as simple as PHP to create routes.
+title: ã«ãŒãã£ã³ã°
+description: Nuxt.js ã¯ãŠã§ãã¢ããªã±ãŒã·ã§ã³ã®ã«ãŒãã£ã³ã°ãçæããããã«ãã¡ã€ã«ã·ã¹ãã ãå©çšããŸãããã㯠PHP ãã«ãŒãã£ã³ã°ãçæããããã«ã·ã³ãã«ã§ãã
---
-> Nuxt.js generates automatically the [vue-router](https://github.com/vuejs/vue-router) configuration according to your file tree of Vue files inside the `pages` directory.
+
+
-## Basic Routes
+
-This file tree:
+> Nuxt.js 㯠`pages` ãã£ã¬ã¯ããªå
ã® Vue ãã¡ã€ã«ã®æšæ§é ã«æ²¿ã£ãŠãèªåçã« [vue-router](https://github.com/vuejs/vue-router) ã®èšå®ãçæããŸãã
+
+
+
+## ã«ãŒãã£ã³ã°ã®åºç€
+
+
+
+äžèšã®ãããªãã¡ã€ã«ã®æšæ§é ã®ãšã:
```bash
pages/
@@ -17,7 +26,9 @@ pages/
--| index.vue
```
-will automatically generate:
+
+
+èªåçã«ä»¥äžãçæãããŸã:
```js
router: {
@@ -41,11 +52,17 @@ router: {
}
```
-## Dynamic Routes
+
+
+## åçãªã«ãŒãã£ã³ã°
+
+
-To define a dynamic route with a param, you need to define a .vue file OR a directory **prefixed by an underscore**.
+ãã©ã¡ãŒã¿ã䜿ã£ãŠåçãªã«ãŒãã£ã³ã°ãå®çŸ©ããã«ã¯ã.vue ãã¡ã€ã«åãŸãã¯ãã£ã¬ã¯ããªåã« **ã¢ã³ããŒã¹ã³ã¢ã®ãã¬ãã£ãã¯ã¹** ãä»ããå¿
èŠããããŸãã
-This file tree:
+
+
+äžèšã®ãããªæšæ§é ã®ãšã:
```bash
pages/
@@ -57,7 +74,9 @@ pages/
--| index.vue
```
-will automatically generate:
+
+
+èªåçã«ä»¥äžãçæãããŸã:
```js
router: {
@@ -86,36 +105,67 @@ router: {
}
```
-As you can see the route named `users-id` has the path `:id?` which makes it optional, if you want to make it required, create an `index.vue` file in the `users` directory.
+
+
+`user-id` ãšåä»ããããã«ãŒãã« `:id?` ãšãããã¹ããããŸãããããã¯ãã® `:id` ãå¿
é ã§ã¯ãªãããšã衚ããŸããããå¿
é ã«ãããå Žå㯠`users` ãã£ã¬ã¯ããªå
ã« `index.vue` ãã¡ã€ã«ãäœæããŠãã ããïŒè𳿳š: `users/_id` ãã£ã¬ã¯ããªå
ã« `index.vue` ãã¡ã€ã«ãäœæããã®ã§ã¯ïŒïŒ
+
+
+
+### ã«ãŒãã£ã³ã°ã®ãã©ã¡ãŒã¿ã®ããªããŒã·ã§ã³
+
+
+
+Nuxt.js ã§ã¯ãåçãªã«ãŒãã£ã³ã°ãããã³ã³ããŒãã³ãå
ã«ããã©ã¡ãŒã¿ãããªããŒã·ã§ã³ããã¡ãœãããå®çŸ©ããããšãã§ããŸãã
-### Validate Route Params
+
-Nuxt.js lets you define a validator method inside your dynamic route component.
+äŸãã° `pages/users/_id.vue` å
ã«ãã®ããã«æžããŸã:
-In this example: `pages/users/_id.vue`
+
+
+
+
+
+
+
+
```js
export default {
validate ({ params }) {
- // Must be a number
+ // æ°å€ã§ãªããã°ãªããªã
return /^\d+$/.test(params.id)
}
}
```
-If the validate method does not return `true`, Nuxt.js will automatically load the 404 error page.
+
-More information about the validate method: [API Pages validate](/api/pages-validate)
+ããããªããŒã·ã§ã³ã®ã¡ãœããã `true` ãè¿ããªãã£ãå Žåã¯ãNuxt.js ã¯èªåçã« 404 ãšã©ãŒããŒãžãããŒãããŸãã
-## Nested Routes
+
-Nuxt.js lets you create nested route by using the children routes of vue-router.
+ããªããŒã·ã§ã³ã®ã¡ãœããã«ã€ããŠããæ·±ãçè§£ãããå Žå㯠[ããŒãžããªããŒã·ã§ã³ã® API](/api/pages-validate) ãåç
§ããŠãã ããã
-To define a nested route, you need to create a Vue file with the **same name as the directory** which contain your children views.
+
-Don't forget to write ` ` inside the parent component (.vue file).
+## ãã¹ãããã«ãŒãã£ã³ã°
-This file tree:
+
+
+Nuxt.js ã§ã¯ vue-router ã®åã«ãŒãã£ã³ã°ã䜿ã£ãŠã«ãŒãã£ã³ã°ããã¹ããããããšãã§ããŸãã
+
+
+
+ãã¹ãããã«ãŒãã£ã³ã°ãå®çŸ©ããã«ã¯ãåãã¥ãŒãå«ã **ãã£ã¬ã¯ããªãšåãåå** ã® Vue ãã¡ã€ã«ãäœæããå¿
èŠããããŸãã
+
+
+
+芪ã³ã³ããŒãã³ãïŒ.vue ãã¡ã€ã«ïŒå
ã« ` ` ãæžãããšãèŠããŠãããŠãã ããã
+
+
+
+äžèšã®ãããªãã¡ã€ã«ã®æšæ§é ã®ãšã:
```bash
pages/
@@ -125,7 +175,9 @@ pages/
--| users.vue
```
-will automatically generate:
+
+
+èªåçã«ä»¥äžãçæãããŸã:
```js
router: {
@@ -150,11 +202,17 @@ router: {
}
```
-## Dynamic Nested Routes
+
+
+## åçã§ãã¹ãããã«ãŒãã£ã³ã°
+
+
+
+ãã®ã·ããªãªã¯ããŸã远å ãã¹ãã§ã¯ãªãã®ã§ãããNuxt.js ã§ã¯åçãªèŠªã«ãŒãã£ã³ã°ã®äžã«åçãªåã«ãŒãã£ã³ã°ãæã€ããšãå¯èœã§ãïŒè𳿳š: ååéšåãããŸãèš³ããŸããã§ãããåæã¯ This scenario should not often append, but it is possible with Nuxt.js: having dynamic children inside dynamic parents.ïŒ
-This scenario should not often append, but it is possible with Nuxt.js: having dynamic children inside dynamic parents.
+
-This file tree:
+äžèšã®ãããªãã¡ã€ã«ã®æšæ§é ã®ãšã:
```bash
pages/
@@ -168,7 +226,9 @@ pages/
--| index.vue
```
-will automatically generate:
+
+
+èªåçã«ä»¥äžãçæãããŸã:
```js
router: {
@@ -209,17 +269,30 @@ router: {
}
```
-## Transitions
+
+
+## ãã©ã³ãžã·ã§ã³
+
+
-Nuxt.js uses the [<transition>](http://vuejs.org/v2/guide/transitions.html#Transitioning-Single-Elements-Components) component to let you create amazing transitions/animations between your routes.
+Nuxt.js ã§ã¯ [<transition>](http://vuejs.org/v2/guide/transitions.html#Transitioning-Single-Elements-Components) ã³ã³ããŒãã³ãã䜿ã£ãŠãããŒãžéãé·ç§»ããéã®ãã©ã³ãžã·ã§ã³/ã¢ãã¡ãŒã·ã§ã³ãè¡ãããšãã§ããŸãã
-### Global Settings
+
-Nuxt.js default transition name is `"page"`.
+### ã°ããŒãã«ãªèšå®
-To add a fade transition to every page of your application, we need a CSS file that is shared across all our routes, so we start by creating a file in the `assets` folder.
+
+
+Nuxt.js ã®ããã©ã«ãã®ãã©ã³ãžã·ã§ã³å㯠`"page"` ã§ãã
+
+
+
+ã¢ããªã±ãŒã·ã§ã³ã®å
šãŠã®ããŒãžã§ãã§ãŒãããããã©ã³ãžã·ã§ã³ãå®çŸ©ã«ã¯ãã«ãŒãã£ã³ã°å
šäœã«é©çšãããŠãã CSS ãã¡ã€ã«ãå¿
èŠã§ãããŸã㯠`assets` ãã£ã¬ã¯ããªå
ã«ãã¡ã€ã«ãäœæãããšããããå§ããŸã:
+
+
+
+`assets/main.css` å
ã«ã°ããŒãã«ãª CSS ãæžããŸã:
-Our global css in `assets/main.css`:
```css
.page-enter-active, .page-leave-active {
transition: opacity .5s;
@@ -229,7 +302,10 @@ Our global css in `assets/main.css`:
}
```
-We add its path in our `nuxt.config.js` file:
+
+
+`nuxt.config.js` ãã¡ã€ã«ã« CSS ãã¡ã€ã«ã®ãã¹ãæå®ããŸã:
+
```js
module.exports = {
css: [
@@ -238,13 +314,22 @@ module.exports = {
}
```
-More information about the transition key: [API Configuration transition](/api/pages-transition)
+
-### Page Settings
+ãã©ã³ãžã·ã§ã³ã«ã€ããŠããæ·±ãçè§£ãããå Žå㯠[ãã©ã³ãžã·ã§ã³ãèšå®ãã API](/api/pages-transition) ãåç
§ããŠãã ããã
-You can also define a custom transition for only one page with the `transition` property.
+
+
+### ç¹å®ã®ããŒãžã«å¯Ÿããèšå®
+
+
+
+`transition` ããããã£ã䜿ãããšã§ãç¹å®ã®ããŒãžã®ã¿ã«å¯ŸããŠã«ã¹ã¿ã ãã©ã³ãžã·ã§ã³ãå®çŸ©ããããšãã§ããŸãã
+
+
+
+`assets/main.css` å
ã«æ°ãã CSS å®çŸ©ã远å ããŸã:
-We add a new class in our global css in `assets/main.css`:
```css
.test-enter-active, .test-leave-active {
transition: opacity .5s;
@@ -254,22 +339,35 @@ We add a new class in our global css in `assets/main.css`:
}
```
-then, we use the transition property to define the class name to use for this page transition:
+
+
+ããããããã®ããŒãžãã©ã³ãžã·ã§ã³ãå©çšããããã®ã¯ã©ã¹åã transition ããããã£ã§æå®ããŸã:
+
```js
export default {
transition: 'test'
}
```
-More information about the transition property: [API Pages transition](/api/pages-transition)
+
-## Middleware
+ãã©ã³ãžã·ã§ã³ããããã£ã«ã€ããŠããæ·±ãçè§£ãããå Žå㯠[ããŒãžãã©ã³ãžã·ã§ã³ API](/api/pages-transition) ãåç
§ããŠãã ããã
-> The middleware lets you define custom function to be ran before rendering a page or a group of pages.
+
-**Every middleware should be placed in the `middleware/` directory.** The filename will be the name of the middleware (`middleware/auth.js` will be the `auth` middleware).
+## ããã«ãŠã§ã¢
-A middleware receive [the context](/api#the-context) as first argument:
+
+
+> ããã«ãŠã§ã¢ã䜿ã£ãŠãããããŒãžãŸãã¯ããããŒãžã®ã°ã«ãŒããã¬ã³ããªã³ã°ãããåã«å®è¡ããã颿°ãå®çŸ©ããããšãã§ããŸãã
+
+
+
+**ããã«ãŠã§ã¢ã¯ `middleware/` ãã£ã¬ã¯ããªã«å
¥ããŸãã** ãã¡ã€ã«åã¯ããã«ãŠã§ã¢ã®ååãšãªããŸãïŒ`middleware/auth.js` 㯠`auth` ããã«ãŠã§ã¢ã«ãªããŸãïŒ
+
+
+
+ããã«ãŠã§ã¢ã¯ç¬¬äžåŒæ°ãšã㊠[context](/api#the-context) ãåãåããŸã:
```js
export default function (context) {
@@ -277,14 +375,23 @@ export default function (context) {
}
```
-The middleware will be executed in series in this order:
+
+
+
+
+
+ããã«ãŠã§ã¢ã¯äžèšã®é ã«å®è¡ãããŸã:
+
1. `nuxt.config.js`
-2. Matched layouts
-3. Matched pages
+2. ãããããã¬ã€ã¢ãŠã
+3. ãããããããŒãž
-A middleware can be asynchronous, simply return a `Promise` or use the 2nd `callback` argument:
+
+
+ããã«ãŠã§ã¢ã¯ã`Promise` ãè¿ãããã«ãããããããã¯ç¬¬äºåŒæ°ã® `callback` ã䜿ã£ãŠãéåæã«å®è¡ããããšãã§ããŸã:
`middleware/stats.js`
+
```js
import axios from 'axios'
@@ -295,9 +402,12 @@ export default function ({ route }) {
}
```
-Then, in your `nuxt.config.js`, layout or page, use the `middleware` key:
+
+
+ãã㊠`nuxt.config.js` ãã¬ã€ã¢ãŠããããã¯ããŒãžå
ã§ `middleware` ããŒã䜿ããŸã:
`nuxt.config.js`
+
```js
module.exports = {
router: {
@@ -306,6 +416,10 @@ module.exports = {
}
```
-The `stats` middleware will be called for every route changes.
+
+
+`stats` ããã«ãŠã§ã¢ã¯å
šãŠã®ã«ãŒã倿޿ã«åŒã³åºãããããã«ãªããŸãã
+
+
-To see a real-life example using the middleware, please see [example-auth0](https://github.com/nuxt/example-auth0) on GitHub.
+ããã«ãŠã§ã¢ã䜿ã£ãå®éã®äŸãèŠããå Žå㯠GitHub äžã«ãã [example-auth0](https://github.com/nuxt/example-auth0) ãèŠãŠã¿ãŠãã ããã
From 705d9fab12d92b01c99d50c8d02627744bbb8624 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Tue, 21 Feb 2017 21:40:16 +0900
Subject: [PATCH 009/129] Translate ja/guide/views.md
---
ja/guide/views.md | 260 ++++++++++++++++++++++++++++++++++++----------
1 file changed, 203 insertions(+), 57 deletions(-)
diff --git a/ja/guide/views.md b/ja/guide/views.md
index a65de291f..414577bc5 100644
--- a/ja/guide/views.md
+++ b/ja/guide/views.md
@@ -1,13 +1,51 @@
---
-title: Views
-description: The Views section describes all you need to configure data and views for a specific route in your Nuxt.js application. (Pages, layouts and HTML Head)
+title: ãã¥ãŒ
+description: ãã¥ãŒã»ã¯ã·ã§ã³ã§ã¯ Nuxt.js ã¢ããªã±ãŒã·ã§ã³ã®ç¹å®ã®ã«ãŒãã«ããŒã¿ãšãã¥ãŒãèšå®ããããã«å¿
èŠãªããšå
šãŠã説æããŸãïŒããŒãžãã¬ã€ã¢ãŠããHTML ã® head ã¿ã°ã®ã¡ã¿æ
å ±ãªã©ãå«ã¿ãŸãïŒ
---
-> The Views section describes all you need to configure data and views for a specific route in your Nuxt.js application. (Pages, layouts and HTML Head)
+
+
-## Pages
+
-Every Page component is a Vue component, but Nuxt.js adds special keys to make the development of your universal application the easiest way possible.
+> ãã¥ãŒã»ã¯ã·ã§ã³ã§ã¯ Nuxt.js ã¢ããªã±ãŒã·ã§ã³ã®ç¹å®ã®ã«ãŒãã«ããŒã¿ãšãã¥ãŒãèšå®ããããã«å¿
èŠãªããšå
šãŠã説æããŸãïŒããŒãžãã¬ã€ã¢ãŠããHTML ã® head ã¿ã°ã®ã¡ã¿æ
å ±ãªã©ãå«ã¿ãŸãïŒ
+
+
+
+## ããŒãž
+
+
+
+å
šãŠã®ããŒãžã³ã³ããŒãã³ã㯠Vue ã³ã³ããŒãã³ãã§ãããNuxt.js ã¯ãŠãããŒãµã«ãªã¢ããªã±ãŒã·ã§ã³ãæãç°¡åãªããæ¹ã§éçºããããšãå¯èœã«ããã«ãç¹å¥ãªããŒã远å ããŸãã
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
```html
@@ -17,16 +55,16 @@ Every Page component is a Vue component, but Nuxt.js adds special keys to make t
@@ -38,52 +76,104 @@ export default {
```
-
-| Attribute | Description |
+
+
+
+
+
+
+
+
+
+
+
+| 屿§ | 説æ |
|-----------|-------------|
-| data | The most important key, it has the same purpose as [Vue data](https://vuejs.org/v2/api/#Options-Data) but it can be asynchronous and receives the context as argument, please read the [async data documentation](/guide/async-data) to learn how it works. |
-| fetch | Used to fill the store before rendering the page, it's like the data method except it doesn't set the component data. See the [API Pages fetch documentation](/api/pages-fetch). |
-| head | Set specific Meta Tags for the current page, see [API Pages head documentation](/api/pages-head). |
-| layout | Specify a layout defined in the `layouts` directory, see [API Pages layouts documentation](/api/pages-layout). |
-| transition | Set a specific transition for the page, see [API Pages transition](/api/pages-transition). |
-| scrollToTop | Boolean, by default: `false`. Specify if you want the page to scroll to the top before rendering the page, it's used for [nested routes](/guide/routing#nested-routes). |
-| validate | Validator function for a [dynamic route](/guide/routing#dynamic-routes). |
-| middleware | Set a middleware for this page, the middleware will be called before rendering the page, see [routes middleware](/guide/routing#middleware). |
+| data | æãéèŠãªããŒã§ãã [Vue data](https://vuejs.org/v2/api/#Options-Data) ãšåãæçŸ©ãæã£ãŠããŸãããããéåæã«åäœãããŸãåŒæ°ãšã㊠context ãåãåããŸããã©ã®ããã«åäœããããç¥ãã«ã¯ [éåæããŒã¿ã«é¢ããããã¥ã¡ã³ã](/guide/async-data) ãåç
§ããŠãã ããã |
+| fetch | ããŒãžãã¬ã³ããªã³ã°ãããåã«ãããŒã¿ãã¹ãã¢ã«å
¥ããããã«äœ¿ããŸããã³ã³ããŒãã³ãã®ããŒã¿ãã»ããããããšä»¥å€ã¯ data ã¡ãœãããšäŒŒãŠããŸãã[ããŒãžã®ãã§ãã API ã«é¢ããããã¥ã¡ã³ã](/api/pages-fetch) ãåç
§ããŠãã ããã |
+| head | çŸåšã®ããŒãžã®ç¹å®ã®ã¡ã¿ã¿ã°ãèšå®ããŸãã[ããŒãžã® head API ã«é¢ããããã¥ã¡ã³ã](/api/pages-head) ãåç
§ããŠãã ããã |
+| layout | `layouts` ãã£ã¬ã¯ããªå
ã®ã¬ã€ã¢ãŠããæå®ããŸãã[ããŒãžã®ã¬ã€ã¢ãŠã API ã«é¢ããããã¥ã¡ã³ã](/api/pages-layout) ãåç
§ããŠãã ããã |
+| transition | ããŒãžã«ç¹å®ã®ãã©ã³ãžã·ã§ã³ãèšå®ããŸãã[ããŒãžã®ãã©ã³ãžã·ã§ã³ API ã«é¢ããããã¥ã¡ã³ã](/api/pages-transition) ãåç
§ããŠãã ããã |
+| scrollToTop | ããŒãªã¢ã³ã§æå®ããããã©ã«ã㯠`false` ã§ããããŒãžãã¬ã³ããªã³ã°ããåã«ããããŸã§ã¹ã¯ããŒã«ããããåŠããæå®ããŸãããã㯠[ãã¹ãããã«ãŒãã£ã³ã°](/guide/routing#nested-routes) ã§äœ¿ãããŸãã |
+| validate | [åçãªã«ãŒãã£ã³ã°](/guide/routing#dynamic-routes) ã®ããã®ããªããŒã·ã§ã³é¢æ°ã§ãã |
+| middleware | ãã®ããŒãžã®ããã«ããã«ãŠã§ã¢ãèšå®ããããã«ãŠã§ã¢ã¯ããŒãžãã¬ã³ããªã³ã°ãããåã«åŒã³åºãããŸãã[ã«ãŒãã£ã³ã°ã®ããã«ãŠã§ã¢](/guide/routing#middleware) ãåç
§ããŠãã ããã |
+
+
+
+ããŒãžã®ããããã£ã®äœ¿ãæ¹ã«ã€ããŠããæ·±ãçè§£ããããšã㯠[ããŒãž API](/api) ãåç
§ããŠãã ããã
+
+
+
+## ã¬ã€ã¢ãŠã
-More information about the pages properties usage: [API Pages](/api)
+
-## Layouts
+Nuxt.js ã§ã¯ã¡ã€ã³ã¬ã€ã¢ãŠããæ¡åŒµããããã«ã¹ã¿ã ã¬ã€ã¢ãŠãã `layouts` ãã£ã¬ã¯ããªã«å
¥ããŠã¬ã€ã¢ãŠãã远å ãããããããšãã§ããŸãã
-Nuxt.js lets you extend the main layout or create custom layouts by adding them in the `layouts` directory.
+
-### Default Layout
+### ããã©ã«ãã¬ã€ã¢ãŠã
-You can extend the main layout by adding a `layouts/default.vue` file.
+
-*Make sure to add the `` component when creating a layout to display the page component.*
+`layouts/default.vue` ãã¡ã€ã«ã远å ããããšã§ã¡ã€ã³ã¬ã€ã¢ãŠããæ¡åŒµã§ããŸãã
+
+
+
+*ããŒãžã³ã³ããŒãã³ãã衚瀺ããã¬ã€ã¢ãŠããäœæãããšãã¯ãå¿
ã ` ` ã³ã³ããŒãã³ããå
¥ããŠããããšãèŠããŠãããŠãã ããã*
+
+
+
+ããã©ã«ãã®ã¬ã€ã¢ãŠãã®ãœãŒã¹ã³ãŒãã¯äžèšã®ããã«ãªã£ãŠããŸã:
-The default layout source code is:
```html
```
-### Error Page
+
+
+### ãšã©ãŒããŒãž
+
+
+
+`layouts/error.vue` ãã¡ã€ã«ã远å ããããšã§ãšã©ãŒããŒãžãã«ã¹ã¿ãã€ãºã§ããŸãã
+
+
+
+ãã®ã¬ã€ã¢ãŠãã¯ãã³ãã¬ãŒãå
ã« ` ` ãå«ãŸãªããšããæå³ã§ç¹æ®ã§ãããã®ã¬ã€ã¢ãŠã㯠404 ã 500 ãšã©ãŒãªã©ãçºçãããšãã«è¡šç€ºãããã³ã³ããŒãã³ããšããŠèŠãããšã«ãªããŸãã
+
+
+
+ããã©ã«ãã®ãšã©ãŒããŒãžã®ãœãŒã¹ã³ãŒã㯠[Github](https://github.com/nuxt/nuxt.js/blob/master/lib/app/components/nuxt-error.vue) ã§ç¢ºèªã§ããŸãã
+
+
-You can customize the error page by adding a `layouts/error.vue` file.
+`layouts/error.vue` ã«ã«ã¹ã¿ã ãšã©ãŒããŒãžãæžããšãã®äŸ:
-This layout is special since you should not include ` ` inside its template. You must see this layout as a component displayed when an error occurs (404, 500, etc).
+
+
+
+
+
+
+
+
-The default error page source code is [available on Github](https://github.com/nuxt/nuxt.js/blob/master/lib/app/components/nuxt-error.vue).
+
+
+
+
+
+
-Example of a custom error page in `layouts/error.vue`:
```html
-
Page not found
- An error occurred
- Home page
+ ããŒãžãèŠã€ãããŸãã
+ ãšã©ãŒãçºçããŸãã
+ ããŒã
@@ -94,23 +184,44 @@ export default {
```
-### Custom Layout
+
-Every file (*first level*) in the `layouts` directory will create a custom layout accessible with the `layout` property in the page component.
+### ã«ã¹ã¿ã ã¬ã€ã¢ãŠã
-*Make sure to add the ` ` component when creating a layout to display the page component.*
+
+
+`layouts` ãã£ã¬ã¯ããªã® *第äžéå±€* ã®ãã¡ã€ã«ã§ãããŒãžã³ã³ããŒãã³ãå
ã® `layout` ããããã£ã§æå®ã§ããã«ã¹ã¿ã ã¬ã€ã¢ãŠããäœæã§ããŸãã
+
+
+
+*ããŒãžã³ã³ããŒãã³ãã衚瀺ããã¬ã€ã¢ãŠããäœæãããšãã¯ãå¿
ã ` ` ã³ã³ããŒãã³ããå
¥ããŠããããšãèŠããŠãããŠãã ããã*
+
+
+
+`layouts/blog.vue` ã®äŸ:
+
+
+
+
+
+
+
+
+
-Example of `layouts/blog.vue`:
```html
-
My blog navigation bar here
+
ããã°ã®ããã²ãŒã·ã§ã³ããŒãããã«èšçœ®ããŸã
```
-And then in `pages/posts.vue`, you can tell Nuxt.js to use your custom layout:
+
+
+ãããã `pages/posts.vue` ãã¡ã€ã«å
ã§ãã«ã¹ã¿ã ã¬ã€ã¢ãŠãã䜿ãããšã Nuxt.js ã«äŒããŸã:
+
```html
```
-More information about the layout property: [API Pages layout](/api/pages-layout)
+
+
+layout ããããã£ã«ã€ããŠããæ·±ãçè§£ããã«ã¯ [ããŒãžã¬ã€ã¢ãŠã API](/api/pages-layout) ãåç
§ããŠãã ããã
+
+ãŸããåäœããæ§åã [ãã¢åç»](https://www.youtube.com/watch?v=YOKnSTp7d38) ã§ç¢ºèªããŠã¿ãŠãã ããã
+
+
+
+## HTML ã® head æ
å ±
-Check the [demonstration video](https://www.youtube.com/watch?v=YOKnSTp7d38) to see it in action.
+
-## HTML Head
+Nuxt.js ã¯ã¢ããªã±ãŒã·ã§ã³ã® `headers` åã³ `html attributes` ãæŽæ°ããããã« [vue-meta](https://github.com/declandewet/vue-meta) ã䜿ããŸãã
-Nuxt.js uses [vue-meta](https://github.com/declandewet/vue-meta) to update the `headers` and `html attributes` of your application.
+
+
+Nuxt.js ã§ã¯äžèšã®ãªãã·ã§ã³ã§ `vue-meta` ãèšå®ããŸã:
+
+
+
+
+
+
+
+
+
-Nuxt.js configures `vue-meta` with these options:
```js
{
- keyName: 'head', // the component option name that vue-meta looks for meta info on.
- attribute: 'n-head', // the attribute name vue-meta adds to the tags it observes
- ssrAttribute: 'n-head-ssr', // the attribute name that lets vue-meta know that meta info has already been server-rendered
- tagIDKeyName: 'hid' // the property name that vue-meta uses to determine whether to overwrite or append a tag
+ keyName: 'head', // vue-meta ãã¡ã¿æ
å ±ãæ¢ãããã®ã³ã³ããŒãã³ããªãã·ã§ã³ã®åå
+ attribute: 'n-head', // vue-meta ãã¿ã°ãç£èŠããããã«ã¿ã°ã«è¿œå ãã屿§å
+ ssrAttribute: 'n-head-ssr', // ã¡ã¿æ
å ±ãæ¢ã«ãµãŒããŒãµã€ãã§ã¬ã³ããªã³ã°ãããŠããããšã vue-meta ã«ç¥ãããããã®å±æ§å
+ tagIDKeyName: 'hid' // vue-meta ãã¿ã°ãäžæžããã¹ããã¿ã°ã远å ãã¹ãã倿ããããã«çšããããããã£å
}
```
-### Default Meta Tags
+
+
+### ããã©ã«ãã®ã¡ã¿ã¿ã°
+
+
+
+Nuxt.js ã§ã¯ã¢ããªã±ãŒã·ã§ã³ã®ããã©ã«ãã®ã¡ã¿æ
å ±ã `nuxt.config.js` ã§èšå®ã§ããŸãã`head` ããããã£ã䜿çšããŸã:
+
+
-Nuxt.js let you define all default meta for your application inside `nuxt.config.js`, use the same `head` property:
+ã«ã¹ã¿ã viewport åã³ Google ãã©ã³ããå®çŸ©ããäŸ:
-Example of a custom viewport with a custom Google font:
```js
head: {
meta: [
@@ -154,12 +290,22 @@ head: {
}
```
-To know the list of options you can give to `head`, take a look at [vue-meta documentation](https://github.com/declandewet/vue-meta#recognized-metainfo-properties).
+
+
+`head` ã«æž¡ãããªãã·ã§ã³ã®ãªã¹ãã確èªããã«ã¯ [vue-meta ã®ããã¥ã¡ã³ã](https://github.com/declandewet/vue-meta#recognized-metainfo-properties) ãèŠãŠã¿ãŠãã ããã
+
+
+
+head ã¡ãœããã«ã€ããŠããæ·±ãçè§£ããããã«ã¯ [head èšå® API](/api/configuration-head) ãåç
§ããŠãã ããã
+
+
+
+### ç¹å®ã®ããŒãžã«ã¡ã¿ã¿ã°ãèšå®ãã
-More information about the head method: [API Configuration head](/api/configuration-head)
+
-### Custom Meta Tags for a Page
+ç¹å®ã®ããŒãžã«ã¡ã¿ã¿ã°ãèšå®ããæ¹æ³ã«ã€ã㊠[ããŒãž head API](/api/pages-head) ãåç
§ããŠãã ããã
-More information about the head method: [API Pages head](/api/pages-head)
+
-To avoid any duplication when used in child component, please give a unique identifier with the `hid` key, please [read more about it](https://github.com/declandewet/vue-meta#lists-of-tags).
+åã³ã³ããŒãã³ãã§å©çšããããšãã«ã¡ã¿æ
å ±ãéè€ããŠããŸãããšãé¿ããããã« `hid` ããŒã§ãŠããŒã¯èå¥åãäžããŠãã ããããŸããããã«ã€ããŠããæ·±ãçè§£ããããã«ã¯ [ãã¡ã](https://github.com/declandewet/vue-meta#lists-of-tags) ãåç
§ããŠãã ããã
From 88eaf81127659fd631eac0e96273b6a8686cc4be Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Wed, 22 Feb 2017 00:01:25 +0900
Subject: [PATCH 010/129] Translate ja/guide/async-data.md
---
ja/guide/async-data.md | 130 +++++++++++++++++++++++++++++++++--------
1 file changed, 105 insertions(+), 25 deletions(-)
diff --git a/ja/guide/async-data.md b/ja/guide/async-data.md
index de3f3fb2e..b99db8c1f 100644
--- a/ja/guide/async-data.md
+++ b/ja/guide/async-data.md
@@ -1,23 +1,45 @@
---
-title: Async Data
-description: Nuxt.js supercharges the data method from vue.js to let you handle async operation before setting the component data.
+title: éåæãªããŒã¿
+description: Nuxt.js ã¯ãã³ã³ããŒãã³ãã®ããŒã¿ãã»ããããåã«éåæã®åŠçãè¡ããããã«ããããã«ãVue.js ã® data ã¡ãœãããé絊ããŸã
---
-> Nuxt.js *supercharges* the `data` method from vue.js to let you handle async operation before setting the component data.
+
+
-## The data Method
+
-`data` is called every time before loading the component (**only for pages components**). It can be called from the server-side or before navigating to the corresponding route. This method receives [the context](/api#context) as the first argument, you can use it to fetch some data and return the component data.
+> Nuxt.js ã¯ãã³ã³ããŒãã³ãã®ããŒã¿ãã»ããããåã«éåæã®åŠçãè¡ããããã«ããããã«ãVue.js ã® `data` ã¡ãœããã *é絊* ããŸãïŒè𳿳š: supercharges ãããŸãèš³ããŸããã§ãããåæã¯ Nuxt.js *supercharges* the `data` method from vue.js to let you handle async operation before setting the component data.ïŒ
-You do **NOT** have access of the component instance trough `this` inside `data` because it is called **before initiating** the component.
+
+
+## data ã¡ãœãã
+
+
+
+`data` ã¡ãœããã¯ã³ã³ããŒãã³ãïŒããŒãžã³ã³ããŒãã³ãã«éããŸãïŒãèªã¿èŸŒãŸããåã«æ¯ååŒã³åºãããŸãããµãŒããŒãµã€ãã¬ã³ããªã³ã°ãããŠãŒã¶ãŒãããŒãžãé·ç§»ããåã«ãåŒã³åºãããŸãããããŠãã®ã¡ãœããã¯ç¬¬äžåŒæ°ãšã㊠[context](/api#context) ãåãåããcontext ããããŒã¿ããã§ãããããã³ã³ããŒãã³ãã®ããŒã¿ãè¿ãããã«äœ¿ãããšãã§ããŸãã
+
+
+
+`data` ã¡ãœããå
ã® `this` ãéããŠã³ã³ããŒãã³ãã®ã€ã³ã¹ã¿ã³ã¹ã«ã¢ã¯ã»ã¹ããããšã¯ **ã§ããŸãã**ãããã¯ã³ã³ããŒãã³ããã€ã³ã¹ã¿ã³ã¹åãããåã« data ã¡ãœãããåŒã³åºãããããã§ãã
+
+
To make the data method asynchronous, nuxt.js offers you different ways, choose the one you're the most familiar with:
-1. returning a `Promise`, nuxt.js will wait for the promise to be resolved before rendering the component.
-2. Using the [async/await proposal](https://github.com/lukehoban/ecmascript-asyncawait) ([learn more about it](https://zeit.co/blog/async-and-await))
-3. Define a callback as second argument. It has to be called like this: `callback(err, data)`
+Nuxt.js ã§ã¯ data ã¡ãœãããéåæã«ããããã«ãããã€ãã®ç°ãªãããæ¹ãããã®ã§ãæããªãããã®ãéžæããŠãã ãã:
+
+
+
+
+
+1. `Promise` ãè¿ããNuxt.js ã¯ã³ã³ããŒãã³ããã¬ã³ããªã³ã°ãããåã« Promise ã解決ããããŸã§åŸ
ã¡ãŸãã
+2. [async/await](https://github.com/lukehoban/ecmascript-asyncawait) ã䜿ããïŒ[ããæ·±ãçè§£ãã](https://zeit.co/blog/async-and-await)ïŒ
+3. 第äºåŒæ°ãšããŠã³ãŒã«ããã¯ãå®çŸ©ãããå³ã®ããã«åŒã³åºãããå¿
èŠããããŸã: `callback(err, data)`
+
+
+
+### Promise ãè¿ã
-### Returning a Promise
```js
export default {
data ({ params }) {
@@ -29,7 +51,10 @@ export default {
}
```
-### Using async/await
+
+
+### async/await ã䜿ã
+
```js
export default {
async data ({ params }) {
@@ -39,7 +64,10 @@ export default {
}
```
-### Using a callback
+
+
+### ã³ãŒã«ããã¯ã䜿ã
+
```js
export default {
data ({ params }, callback) {
@@ -51,9 +79,13 @@ export default {
}
```
-### Returning an Object
+
+
+### ãªããžã§ã¯ããè¿ã
-If you don't need to do any asynchronous call, you can simply return an object:
+
+
+ããéåæã«å®è¡ããå¿
èŠããªããã°ãã·ã³ãã«ã«ãªããžã§ã¯ããè¿ãã°è¯ãã§ã:
```js
export default {
@@ -63,9 +95,13 @@ export default {
}
```
-### Displaying the data
+
+
+### ããŒã¿ã衚瀺ãã
-When the data method set, you can display the data inside your template like you used to do:
+
+
+data ã¡ãœãããã»ããããããšãäžèšã®ããã« template ã®å
åŽã§ããŒã¿ã衚瀺ããããšãã§ããŸã:
```html
@@ -73,15 +109,40 @@ When the data method set, you can display the data inside your template like you
```
-## The Context
+
+
+## ã³ã³ããã¹ã
+
+
+
+`context` å
ã§å©çšã§ããããŒã®äžèЧã確èªããã«ã¯ [ããŒãž data API](/api) ãã芧ãã ããã
+
+
-To see the list of available keys in `context`, take a look at the [API Pages data](/api).
+## ãšã©ãŒåŠç
-## Handling Errors
+
-Nuxt.js add the `error(params)` method in the `context`, you can call it to display the error page. `params.statusCode` will be also used to render the proper status code form the server-side.
+Nuxt.js 㯠`context` ã®äžã« `error(params)` ã¡ãœããã远å ããŸããããããåŒã³åºãããšã§ãšã©ãŒããŒãžã衚瀺ã§ããŸãã
+
+
+
+`Promise` ã䜿ã£ãäŸ:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-Example with a `Promise`:
```js
export default {
data ({ params, error }) {
@@ -90,13 +151,30 @@ export default {
return { title: res.data.title }
})
.catch((e) => {
- error({ statusCode: 404, message: 'Post not found' })
+ error({ statusCode: 404, message: 'ããŒãžãèŠã€ãããŸãã' })
})
}
}
```
-If you're using the `callback` argument, you can call it directly with the error, nuxt.js will call the `error` method for you:
+
+
+`callback` åŒæ°ã䜿ã£ãŠãããšãã¯ãçŽæ¥ããšã©ãŒå
容ãšå
±ã« callback ãåŒã³åºãããšãã§ãããããããš Nuxt.js 㯠`error` ã¡ãœãããå®è¡ããŸãã
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
```js
export default {
data ({ params }, callback) {
@@ -105,10 +183,12 @@ export default {
callback(null, { title: res.data.title })
})
.catch((e) => {
- callback({ statusCode: 404, message: 'Post not found' })
+ callback({ statusCode: 404, message: 'ããŒãžãèŠã€ãããŸãã' })
})
}
}
```
-To customize the error page, take a look at the [VIEWS layouts section](/guide/views#layouts).
+
+
+ãšã©ãŒããŒãžãã«ã¹ã¿ãã€ãºããããã«ã¯ [ãã¥ãŒããŒãžã®ã¬ã€ã¢ãŠãã»ã¯ã·ã§ã³](/guide/views#layouts) ãåç
§ããŠãã ããã
From f5898517ce81a0f05bde83d47a0f74ede4cc7bbf Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Wed, 22 Feb 2017 23:54:50 +0900
Subject: [PATCH 011/129] Translate ja/guide/assets.md
---
ja/guide/assets.md | 105 ++++++++++++++++++++++++++++++++++-----------
1 file changed, 80 insertions(+), 25 deletions(-)
diff --git a/ja/guide/assets.md b/ja/guide/assets.md
index 7b6faba44..442ad5935 100644
--- a/ja/guide/assets.md
+++ b/ja/guide/assets.md
@@ -1,15 +1,26 @@
---
-title: Assets
-description: Nuxt uses vue-loader, file-loader and url-loader for Webpack by default for strong assets serving, but you can also use Static directory for static assets.
+title: ã¢ã»ãã
+description: Nuxt.js ã¯ã¢ã»ãããã¡ã€ã«ãé
ä¿¡ããããã« Webpack ã®ããŒããŒãšããŠããã©ã«ãã§ vue-loaderãfile-loader åã³ url-loader ã䜿ããŸãããéçãã¡ã€ã«ã®ããã®ãã£ã¬ã¯ããªã䜿ãããšãã§ããŸãã
---
-> Nuxt uses vue-loader, file-loader and url-loader for Webpack by default for strong assets serving, but you can also use Static directory for static assets.
+
+
-## Webpacked
+
-By default, [vue-loader](http://vue-loader.vuejs.org/en/) automatically processes your style and template files with `css-loader` and the Vue template compiler. In this compilation process, all asset URLs such as ` `, `background: url(...)` and CSS `@import` are resolved as module dependencies.
+> Nuxt.js ã¯ã¢ã»ãããã¡ã€ã«ãé
ä¿¡ããããã« Webpack ã®ããŒããŒãšããŠããã©ã«ãã§ vue-loaderãfile-loader åã³ url-loader ã䜿ããŸãããéçãã¡ã€ã«ã®ããã®ãã£ã¬ã¯ããªã䜿ãããšãã§ããŸãã
-For example, we have this file tree:
+
+
+## Webpack
+
+
+
+ããã©ã«ãã§ã¯ [vue-loader](http://vue-loader.vuejs.org/en/) ãã¹ã¿ã€ã«ããã³ãã¬ãŒããã¡ã€ã«ã `css-loader` ã Vue ãã³ãã¬ãŒãã³ã³ãã€ã©ãçšããŠèªåçã«åŠçããŸãããã®ã³ã³ãã€ã«åŠçã®äžã§ã` ` ã `background: url(...)` ã CSS `@import` ãªã©ã®å
šãŠã® URL ã¯ã¢ãžã¥ãŒã«ã®äŸåé¢ä¿ã®ããã«è§£æ±ºãããŸãã
+
+
+
+äŸãã°ããã®ãããªãã¡ã€ã«ããããšããŸã:
```bash
-| assets/
@@ -18,28 +29,45 @@ For example, we have this file tree:
----| index.vue
```
-In my CSS, if I use `url('~assets/image.png')`, it will be translated into `require('~assets/image.png')`.
+
+
+CSS ã§ `url('~assets/image.png')` ãšæžããŠãããããã㯠`require('~assets/image.png')` ã«å€æãããŸãã
+
+
+
+ããã㯠`pages/index.vue` ã®äžã§äžèšã®ããã«æžããŠãããšããŸã:
-Or if in my `pages/index.vue`, I use:
```html
```
-It will be compiled into:
+
+
+ããã¯æ¬¡ã®ããã«ã³ã³ãã€ã«ãããŸã:
```js
createElement('img', { attrs: { src: require('~assets/image.png') }})
```
-Because `.png` is not a JavaScript file, nuxt.js configures Webpack to use [file-loader](https://github.com/webpack/file-loader) and [url-loader](https://github.com/webpack/url-loader) to handle them for you.
+
+
+`.png` 㯠JavaScript ãã¡ã€ã«ã§ã¯ãªããããNuxt.js 㯠Webpack ã PNG ãã¡ã€ã«ãæ±ããããã« [file-loader](https://github.com/webpack/file-loader) ãš [url-loader](https://github.com/webpack/url-loader) ã䜿ãèšå®ãè¡ããŸãã
+
+
+
+file-loader ãš url-loader ã䜿ãã¡ãªãã:
+
+
+
-The benefits of them are:
-- `file-loader` lets you designate where to copy and place the asset file, and how to name it using version hashes for better caching.
-- `url-loader` allows you to conditionally inline a file as base-64 data URL if they are smaller than a given threshold. This can reduce a number of HTTP requests for trivial files. If the file is larger than the threshold, it automatically falls back to `file-loader`.
+- `file-loader` ã¯ã¢ã»ãããã¡ã€ã«ãã©ãã«ã³ããŒãé
眮ãã¹ããããŸããããè¯ããã£ãã·ã³ã°ã®ããã«ããŒãžã§ã³ã®ããã·ã¥å€ã䜿ã£ãŠããªããšãããã¡ã€ã«åã«ãã¹ãããæå®ããŸãã
+- `url-loader` ã¯ãããã¡ã€ã«ãµã€ãºãéŸå€ãããå°ãããã°ããã¡ã€ã«ã BASE64 ããŒã¿ãšããŠåã蟌ã¿ãŸããããã«ããå°ããªãã¡ã€ã«ãååŸããããã® HTTP ãªã¯ãšã¹ãã®æ°ãæžããããšãã§ããŸãããããã¡ã€ã«ãµã€ãºãéŸå€ããã倧ãããã°ãèªåçã« `file-loader` ã«ãã©ãŒã«ããã¯ããŸãã
-Actually, Nuxt.js default loaders configuration is:
+
+
+å®éã«ã¯ Nuxt.js ã®ããã©ã«ãã®ããŒããŒèšå®ã¯æ¬¡ã®ããã«ãªã£ãŠããŸã:
```js
[
@@ -62,9 +90,13 @@ Actually, Nuxt.js default loaders configuration is:
]
```
-Which means that every file below 1 KO will be inlined as base-64 data URL. Otherwise, the image/font will be copied in its corresponding folder (under the `.nuxt` directory) with a name containing a version hashes for better caching.
+
+
+ãã¡ã€ã«ãµã€ãºã 1KO ãäžåããã¡ã€ã«ã¯ãã¹ãŠ base-64 ããŒã¿ãšããŠåã蟌ãŸããŸããå察㫠1KO ãäžåãç»åããã©ã³ãã¯ïŒ`.nuxt` ãã£ã¬ã¯ããªé
äžã®ïŒå¯Ÿå¿ãããã£ã¬ã¯ããªã«ããè¯ããã£ãã·ã³ã°ã®ããã®ããŒãžã§ã³ã®ããã·ã¥å€ãå«ãã ãã¡ã€ã«åã§ã³ããŒãããŸãã
-When launching our application with `nuxt`, our template in `pages/index.vue`:
+
+
+ã¢ããªã±ãŒã·ã§ã³ã `nuxt` ã³ãã³ãã§èµ·åãããšãã`pages/index.vue` å
ã®ãã³ãã¬ãŒãã¯äžèšã®ããã«ãªã£ãŠããŠ:
```html
@@ -72,27 +104,50 @@ When launching our application with `nuxt`, our template in `pages/index.vue`:
```
-Will be generated into:
+
+
+ããããæ¬¡ã®ããã«çæãããŸã:
+
```html
```
-If you want to update these loaders or disable them, please take a look at the [loaders configuration](/api/configuration-build#loaders).
+
+
+ãããã®ããŒããŒã®èšå®ãæŽæ°ããããããŒããŒã䜿ããªãããã«ãããããã«ã¯ã[ããŒããŒèšå®](/api/configuration-build#loaders) ãåç
§ããŠãã ããã
+
+
+
+## éçãªãã¡ã€ã«
+
+
+
+ãã Webpack ã§æ±ã察象ãšãªã `assets` ãã£ã¬ã¯ããªã䜿ããããªãå Žåã¯ããããžã§ã¯ãã®ã«ãŒããã£ã¬ã¯ããªã« `static` ãã£ã¬ã¯ããªãäœæããŠå©çšããããšãã§ããŸãã
+
+
+
+ãããã®ãã¡ã€ã«ã¯èªåçã« Nuxt.js ã«ããé
ä¿¡ããããŸããããžã§ã¯ãã®ã«ãŒã URL ããã¢ã¯ã»ã¹å¯èœã«ãªããŸãã
+
+
-## Static
+ãã®ãªãã·ã§ã³ã¯ `robots.txt` ã `sitemap.xml` ãªã©ã®ãã¡ã€ã«ã«åœ¹ã«ç«ã¡ãŸãã
-If you don't want to use Webpacked Assets from the `assets` directory, you can create and use the `static` directory in your project root directory.
+
-These files will be automatically serve by Nuxt and accessible in your project root URL.
+`/` URL ãããããã®ãã¡ã€ã«ãåç
§ã§ããŸã:
-This option is helpful for files like `robots.txt` or `sitemap.xml`.
+
+
+
-From your code you can then reference those files with `/` URLs:
+
+
+
```html
-
+
-
+
```
From d73d9940a7fd0f2dd7dcd45c660475f1c76f5c98 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Fri, 24 Feb 2017 00:15:07 +0900
Subject: [PATCH 012/129] Translate ja/guide/plugins.md
---
ja/guide/plugins.md | 83 ++++++++++++++++++++++++++++++++++-----------
1 file changed, 63 insertions(+), 20 deletions(-)
diff --git a/ja/guide/plugins.md b/ja/guide/plugins.md
index 03a8f04b0..710985fcd 100644
--- a/ja/guide/plugins.md
+++ b/ja/guide/plugins.md
@@ -1,23 +1,38 @@
---
-title: Plugins
-description: Nuxt.js allows you to define js plugins to be ran before instantiating the root vue.js application, it can be to use your own library or external modules.
+title: ãã©ã°ã€ã³
+description: Nuxt.js ã§ã¯ã«ãŒãã® Vue.js ã¢ããªã±ãŒã·ã§ã³ãã€ã³ã¹ã¿ã³ã¹åãããåã«å®è¡ããã js ãã©ã°ã€ã³ãå®çŸ©ããããšãã§ããŸãããã©ã°ã€ã³ãšããŠèªåã®ã©ã€ãã©ãªãå€éšã¢ãžã¥ãŒã«ã䜿ãããšãã§ããŸãã
---
-> Nuxt.js allows you to define js plugins to be ran before instantiating the root vue.js application, it can be to use your own library or external modules.
+
+
-It is important to know that in any Vue [instance lifecycle](https://vuejs.org/v2/guide/instance.html#Lifecycle-Diagram), only `beforeCreate` and `created` hooks are called **both from client-side and server-side**. All other hooks are called only from the client-side.
+
-## External Packages
+> Nuxt.js ã§ã¯ã«ãŒãã® Vue.js ã¢ããªã±ãŒã·ã§ã³ãã€ã³ã¹ã¿ã³ã¹åãããåã«å®è¡ããã js ãã©ã°ã€ã³ãå®çŸ©ããããšãã§ããŸãããã©ã°ã€ã³ãšããŠèªåã®ã©ã€ãã©ãªãå€éšã¢ãžã¥ãŒã«ã䜿ãããšãã§ããŸãã
-We may want to use external packages/modules in our application, one great example is [axios](https://github.com/mzabriskie/axios) for making HTTP request for both server and client.
+
-We install it via NPM:
+ã©ã® Vue [ã€ã³ã¹ã¿ã³ã¹ã®ã©ã€ããµã€ã¯ã«](https://vuejs.org/v2/guide/instance.html#Lifecycle-Diagram) ã«ãããŠãã`beforeCreate` ãš `created` ããã¯ã®ã¿ã **ã¯ã©ã€ã¢ã³ããµã€ããšãµãŒããŒãµã€ãã®äž¡æ¹** ã§åŒã³åºãããããšãç¥ã£ãŠããããšã¯ãšãŠãéèŠã§ãããã以å€ã®å
šãŠã®ããã¯ã¯ã¯ã©ã€ã¢ã³ããµã€ãã§ã®ã¿åŒã³åºãããŸãã
+
+
+
+## å€éšããã±ãŒãž
+
+
+
+ã¢ããªã±ãŒã·ã§ã³ã«å€éšããã±ãŒãž/ã¢ãžã¥ãŒã«ã䜿ããããšãããããããããŸãããäŸãã°ãµãŒããŒã§ãã¯ã©ã€ã¢ã³ãã§ã HTTP ãªã¯ãšã¹ããéããããã«ããããã® [axios](https://github.com/mzabriskie/axios) ãè¯ãäŸã§ãã
+
+
+
+NPM çµç±ã§ã€ã³ã¹ããŒã«ããŸã:
```bash
npm install --save axios
```
-Then, we can use it directly in our pages:
+
+
+ãããŠããŒãžå
ã§çŽæ¥ããã䜿ãããšãã§ããŸã:
```html
@@ -36,7 +51,9 @@ export default {
```
-But there is **one problem here**, if we import axios in another page, it will be included again for the page bundle. We want to include `axios` only once in our application, for this, we use the `build.vendor` key in our `nuxt.config.js`:
+
+
+ãããã**ã²ãšã€åé¡ããã£ãŠ**ãä»®ã«å¥ã®ããŒãžã§ axios ãã€ã³ããŒããããšããã®ããŒãžã§ããŸãã€ã³ã¯ã«ãŒããããŠããŸããŸãããã®åé¡ã«å¯ŸããŠã`axios` ãã¢ããªã±ãŒã·ã§ã³å
ã§äžåºŠã ãã€ã³ã¯ã«ãŒãããããšæãã`nuxt.config.js` å
ã§ `build.vendor` ããŒã䜿ãããã«ããŸããã
```js
module.exports = {
@@ -46,13 +63,22 @@ module.exports = {
}
```
-Then, I can import `axios` anywhere without having to worry about making the bundle bigger!
+
+
+ãããããšãã³ãã«ãã¡ã€ã«ãèšãäžããå¿é
ãªãã« `axios` ãã©ãã§ãã€ã³ããŒãã§ããŸãã
+
+
+
+## Vue ãã©ã°ã€ã³
+
+
-## Vue Plugins
+ã¢ããªã±ãŒã·ã§ã³å
ã§éç¥ã衚瀺ããããã« [vue-notifications](https://github.com/se-panfilov/vue-notifications) ã䜿ããããšãã«ã¯ãã¢ããªã±ãŒã·ã§ã³ãèµ·åããåã«ãã©ã°ã€ã³ãã»ããã¢ããããå¿
èŠããããŸãã
-If we want to use [vue-notifications](https://github.com/se-panfilov/vue-notifications) to display notification in our application, we need to setup the plugin before launching the app.
+
+
+`plugins/vue-notifications.js` ãã¡ã€ã«ã次ã®ããã«ããŸã:
-File `plugins/vue-notifications.js`:
```js
import Vue from 'vue'
import VueNotifications from 'vue-notifications'
@@ -60,18 +86,28 @@ import VueNotifications from 'vue-notifications'
Vue.use(VueNotifications)
```
-Then, we add the file inside the `plugins` key of `nuxt.config.js`:
+
+
+ãããã `nuxt.config.js` ã® `plugins` ããŒã«ãã¡ã€ã«ãèšè¿°ããŸã:
+
```js
module.exports = {
plugins: ['~plugins/vue-notifications']
}
```
-To learn more about the `plugins` configuration key, check out the [plugins api](/api/configuration-plugins).
+
+
+`plugins` èšå®ããŒã«ã€ããŠããæ·±ãçè§£ããã«ã¯ [plugins API](/api/configuration-plugins) ãåç
§ããŠãã ããã
+
+
+
+å®ã¯ `vue-notifications` 㯠app bundle ãã¡ã€ã«ã«å«ãŸããŸãããããã©ã€ãã©ãªãªã®ã§ãããŸããã£ãã·ã¥ãããããã« vendor bundle ãã¡ã€ã«ã«å«ããããšããŸãã
-Actually, `vue-notifications` will be included in the app bundle, but because it's a library, we want to include it in the vendor bundle for better caching.
+
+
+`nuxt.config.js` ãæŽæ°ã㊠vendor bundle ã®äžã« `vue-notifications` ãå
¥ããŸã:
-We can update our `nuxt.config.js` to add `vue-notifications` in the vendor bundle:
```js
module.exports = {
build: {
@@ -81,11 +117,16 @@ module.exports = {
}
```
-## Client-side only
+
+
+## ã¯ã©ã€ã¢ã³ããµã€ãã®ã¿
+
+
-Some plugins might work **only for the browser**, you can use the `process.BROWSER_BUILD` variable to check if the plugin will run from the client-side.
+ããã€ãã®ãã©ã°ã€ã³ã¯ **ãã©ãŠã¶ã§ã®ã¿** åäœããŸãã`process.BROWSER_BUILD` 倿°ã䜿ã£ãŠããã®ãã©ã°ã€ã³ãã¯ã©ã€ã¢ã³ããµã€ãã§åäœããã確èªããããšãã§ããŸãã
Example:
+
```js
import Vue from 'vue'
import VueNotifications from 'vue-notifications'
@@ -95,4 +136,6 @@ if (process.BROWSER_BUILD) {
}
```
-In case you need to require some libraries only for the server, you can use the `process.SERVER_BUILD` variable set to `true` when webpack is creating the `server.bundle.js` file.
+
+
+ãããµãŒããŒãµã€ãã§ã®ã¿ã©ã€ãã©ãªãèªã¿èŸŒãå¿
èŠãããå Žåã¯ãWebpack ã `server.bundle.js` ãã¡ã€ã«ãäœæãããšãã« `true` ãã»ããããã `process.SERVER_BUILD` 倿°ã䜿ãããšãã§ããŸãã
From ccf0932805c7f1cac2ededba3f7684cadc129243 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Fri, 24 Feb 2017 00:42:46 +0900
Subject: [PATCH 013/129] Make ja/guide/plugins.md natural Japanese
---
ja/guide/plugins.md | 34 ++++++++++++++++++----------------
1 file changed, 18 insertions(+), 16 deletions(-)
diff --git a/ja/guide/plugins.md b/ja/guide/plugins.md
index 710985fcd..6ea60ea50 100644
--- a/ja/guide/plugins.md
+++ b/ja/guide/plugins.md
@@ -1,6 +1,6 @@
---
title: ãã©ã°ã€ã³
-description: Nuxt.js ã§ã¯ã«ãŒãã® Vue.js ã¢ããªã±ãŒã·ã§ã³ãã€ã³ã¹ã¿ã³ã¹åãããåã«å®è¡ããã js ãã©ã°ã€ã³ãå®çŸ©ããããšãã§ããŸãããã©ã°ã€ã³ãšããŠèªåã®ã©ã€ãã©ãªãå€éšã¢ãžã¥ãŒã«ã䜿ãããšãã§ããŸãã
+description: Nuxt.js ã§ã¯ js ãã©ã°ã€ã³ãå®çŸ©ããããšãã§ããããã¯ã«ãŒãã® Vue.js ã¢ããªã±ãŒã·ã§ã³ãã€ã³ã¹ã¿ã³ã¹åãããåã«å®è¡ãããŸãããã©ã°ã€ã³ãšããŠèªåã®ã©ã€ãã©ãªãæå®ããããšããå€éšã®ã¢ãžã¥ãŒã«ãæå®ããããšãã§ããŸãã
---
@@ -8,23 +8,23 @@ description: Nuxt.js ã§ã¯ã«ãŒãã® Vue.js ã¢ããªã±ãŒã·ã§ã³ãã€ã³
-> Nuxt.js ã§ã¯ã«ãŒãã® Vue.js ã¢ããªã±ãŒã·ã§ã³ãã€ã³ã¹ã¿ã³ã¹åãããåã«å®è¡ããã js ãã©ã°ã€ã³ãå®çŸ©ããããšãã§ããŸãããã©ã°ã€ã³ãšããŠèªåã®ã©ã€ãã©ãªãå€éšã¢ãžã¥ãŒã«ã䜿ãããšãã§ããŸãã
+> Nuxt.js ã§ã¯ js ãã©ã°ã€ã³ãå®çŸ©ããããšãã§ããããã¯ã«ãŒãã® Vue.js ã¢ããªã±ãŒã·ã§ã³ãã€ã³ã¹ã¿ã³ã¹åãããåã«å®è¡ãããŸãããã©ã°ã€ã³ãšããŠèªåã®ã©ã€ãã©ãªãæå®ããããšããå€éšã®ã¢ãžã¥ãŒã«ãæå®ããããšãã§ããŸãã
-ã©ã® Vue [ã€ã³ã¹ã¿ã³ã¹ã®ã©ã€ããµã€ã¯ã«](https://vuejs.org/v2/guide/instance.html#Lifecycle-Diagram) ã«ãããŠãã`beforeCreate` ãš `created` ããã¯ã®ã¿ã **ã¯ã©ã€ã¢ã³ããµã€ããšãµãŒããŒãµã€ãã®äž¡æ¹** ã§åŒã³åºãããããšãç¥ã£ãŠããããšã¯ãšãŠãéèŠã§ãããã以å€ã®å
šãŠã®ããã¯ã¯ã¯ã©ã€ã¢ã³ããµã€ãã§ã®ã¿åŒã³åºãããŸãã
+Vue ã€ã³ã¹ã¿ã³ã¹ã® [ã©ã€ããµã€ã¯ã«](https://vuejs.org/v2/guide/instance.html#Lifecycle-Diagram) ã«ãããŠã`beforeCreate` ãš `created` ããã¯ã®ã¿ã **ã¯ã©ã€ã¢ã³ããµã€ããšãµãŒããŒãµã€ãã®äž¡æ¹** ã§åŒã³åºãããããšã«æ³šæããŠãã ããããã以å€ã®ãã¹ãŠã®ããã¯ã¯ã¯ã©ã€ã¢ã³ããµã€ãã§ã®ã¿åŒã³åºãããŸãã
-## å€éšããã±ãŒãž
+## å€éšããã±ãŒãžã®å©çš
-ã¢ããªã±ãŒã·ã§ã³ã«å€éšããã±ãŒãž/ã¢ãžã¥ãŒã«ã䜿ããããšãããããããããŸãããäŸãã°ãµãŒããŒã§ãã¯ã©ã€ã¢ã³ãã§ã HTTP ãªã¯ãšã¹ããéããããã«ããããã® [axios](https://github.com/mzabriskie/axios) ãè¯ãäŸã§ãã
+ã¢ããªã±ãŒã·ã§ã³ã«å€éšããã±ãŒãž/ã¢ãžã¥ãŒã«ã䜿ããããšããããã§ããããäŸãã°ãµãŒããŒã§ãã¯ã©ã€ã¢ã³ãã§ã HTTP ãªã¯ãšã¹ããéãã [axios](https://github.com/mzabriskie/axios) ãªã©ãè¯ãäŸã§ãã
-NPM çµç±ã§ã€ã³ã¹ããŒã«ããŸã:
+å€éšããã±ãŒãžã¯ NPM çµç±ã§ã€ã³ã¹ããŒã«ããŸã:
```bash
npm install --save axios
@@ -32,7 +32,7 @@ npm install --save axios
-ãããŠããŒãžå
ã§çŽæ¥ããã䜿ãããšãã§ããŸã:
+ãããããšæ¬¡ã®ããã«ããŒãžå
ã§çŽæ¥ããã䜿ãããšãã§ããŸã:
```html
@@ -53,7 +53,7 @@ export default {
-ãããã**ã²ãšã€åé¡ããã£ãŠ**ãä»®ã«å¥ã®ããŒãžã§ axios ãã€ã³ããŒããããšããã®ããŒãžã§ããŸãã€ã³ã¯ã«ãŒããããŠããŸããŸãããã®åé¡ã«å¯ŸããŠã`axios` ãã¢ããªã±ãŒã·ã§ã³å
ã§äžåºŠã ãã€ã³ã¯ã«ãŒãããããšæãã`nuxt.config.js` å
ã§ `build.vendor` ããŒã䜿ãããã«ããŸããã
+ãã ãããã§ **ã²ãšã€åé¡ããã**ãããå¥ã®ããŒãžã§ã import axios ãšæžããšãaxios ã¯éè€ããŠãã³ãã«ãã¡ã€ã«ã«å«ãŸããŠããŸããŸããããã§ `axios` ãã¢ããªã±ãŒã·ã§ã³å
ã§äžåºŠã ãã€ã³ã¯ã«ãŒãããã«ã¯ `nuxt.config.js` å
ã§ `build.vendor` ããŒã䜿ããŸã:
```js
module.exports = {
@@ -65,7 +65,7 @@ module.exports = {
-ãããããšãã³ãã«ãã¡ã€ã«ãèšãäžããå¿é
ãªãã« `axios` ãã©ãã§ãã€ã³ããŒãã§ããŸãã
+ããããã°ããã³ãã«ãã¡ã€ã«ãèšãäžããããšãªããã©ã®å Žæã«ã `import axios` ãšæžãããšãã§ããŸãã
@@ -77,7 +77,7 @@ module.exports = {
-`plugins/vue-notifications.js` ãã¡ã€ã«ã次ã®ããã«ããŸã:
+ãã®ããã«ã¯ `plugins/vue-notifications.js` ãã¡ã€ã«ã次ã®ããã«èšè¿°ããŸã:
```js
import Vue from 'vue'
@@ -102,11 +102,11 @@ module.exports = {
-å®ã¯ `vue-notifications` 㯠app bundle ãã¡ã€ã«ã«å«ãŸããŸãããããã©ã€ãã©ãªãªã®ã§ãããŸããã£ãã·ã¥ãããããã« vendor bundle ãã¡ã€ã«ã«å«ããããšããŸãã
+ããŠãäžã®æžãæ¹ã§ã¯ãå®ã¯ `vue-notifications` 㯠app ãšãããã³ãã«ãã¡ã€ã«ã«å«ãŸããŸããããã `vue-notifications` ã¯ã©ã€ãã©ãªãªã®ã§ãvendor ãšãããã³ãã«ãã¡ã€ã«ã«å«ããŠãããŸããã£ãã·ã¥ãããããšèããŸãã
-`nuxt.config.js` ãæŽæ°ã㊠vendor bundle ã®äžã« `vue-notifications` ãå
¥ããŸã:
+ããããã«ã¯ `nuxt.config.js` ãæŽæ°ã㊠vendor ãšãããã³ãã«ãã¡ã€ã«ã®èšå®ã®äžã« `vue-notifications` ãå
¥ããŸã:
```js
module.exports = {
@@ -119,13 +119,15 @@ module.exports = {
-## ã¯ã©ã€ã¢ã³ããµã€ãã®ã¿
+## ã¯ã©ã€ã¢ã³ããµã€ãéå®ã®ã©ã€ãã©ãªå©çš
-ããã€ãã®ãã©ã°ã€ã³ã¯ **ãã©ãŠã¶ã§ã®ã¿** åäœããŸãã`process.BROWSER_BUILD` 倿°ã䜿ã£ãŠããã®ãã©ã°ã€ã³ãã¯ã©ã€ã¢ã³ããµã€ãã§åäœããã確èªããããšãã§ããŸãã
+ãã©ã°ã€ã³ã®ããã€ã㯠**ãã©ãŠã¶ã§ã®ã¿** åãããããšããŸãããã®å Žå㯠`process.BROWSER_BUILD` 倿°ã䜿ã£ãŠããããã©ã°ã€ã³ãã¯ã©ã€ã¢ã³ããµã€ãã§åäœãããããšãå¯èœã§ãã
-Example:
+
+
+äŸ:
```js
import Vue from 'vue'
@@ -138,4 +140,4 @@ if (process.BROWSER_BUILD) {
-ãããµãŒããŒãµã€ãã§ã®ã¿ã©ã€ãã©ãªãèªã¿èŸŒãå¿
èŠãããå Žåã¯ãWebpack ã `server.bundle.js` ãã¡ã€ã«ãäœæãããšãã« `true` ãã»ããããã `process.SERVER_BUILD` 倿°ã䜿ãããšãã§ããŸãã
+éã«ããµãŒããŒãµã€ãã§ã®ã¿ã©ã€ãã©ãªãèªã¿èŸŒãå¿
èŠãããå Žåã¯ã`process.SERVER_BUILD` 倿°ã䜿ãããšãã§ããŸãããã㯠Webpack ã `server.bundle.js` ãã¡ã€ã«ãäœæããã¿ã€ãã³ã°ã§ `true` ãã»ããããã倿°ã§ãã
From 4eb7a9226e1d163d350ab9bc0706592b02f101b0 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Fri, 24 Feb 2017 01:05:12 +0900
Subject: [PATCH 014/129] Make ja/guide/assets.md natural Japanese
---
ja/guide/assets.md | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/ja/guide/assets.md b/ja/guide/assets.md
index 442ad5935..fc5cd34a5 100644
--- a/ja/guide/assets.md
+++ b/ja/guide/assets.md
@@ -1,6 +1,6 @@
---
title: ã¢ã»ãã
-description: Nuxt.js ã¯ã¢ã»ãããã¡ã€ã«ãé
ä¿¡ããããã« Webpack ã®ããŒããŒãšããŠããã©ã«ãã§ vue-loaderãfile-loader åã³ url-loader ã䜿ããŸãããéçãã¡ã€ã«ã®ããã®ãã£ã¬ã¯ããªã䜿ãããšãã§ããŸãã
+description: Nuxt.js ã¯ã¢ã»ãããã¡ã€ã«ãé
ä¿¡ããããã«ïŒããã©ã«ãã§ã¯ïŒWebpack ã®ããŒããŒãšã㊠vue-loaderãfile-loader åã³ url-loader ã䜿ããŸããããã Webpack ã®åãæ±ã察象ãšããªãéçãã¡ã€ã«å°çšã®ãã£ã¬ã¯ããªã䜿ãããšãã§ããŸãã
---
@@ -8,15 +8,15 @@ description: Nuxt.js ã¯ã¢ã»ãããã¡ã€ã«ãé
ä¿¡ããããã« Webpack
-> Nuxt.js ã¯ã¢ã»ãããã¡ã€ã«ãé
ä¿¡ããããã« Webpack ã®ããŒããŒãšããŠããã©ã«ãã§ vue-loaderãfile-loader åã³ url-loader ã䜿ããŸãããéçãã¡ã€ã«ã®ããã®ãã£ã¬ã¯ããªã䜿ãããšãã§ããŸãã
+> Nuxt.js ã¯ã¢ã»ãããã¡ã€ã«ãé
ä¿¡ããããã«ïŒããã©ã«ãã§ã¯ïŒWebpack ã®ããŒããŒãšã㊠vue-loaderãfile-loader åã³ url-loader ã䜿ããŸããããã Webpack ã®åãæ±ã察象ãšããªãéçãã¡ã€ã«å°çšã®ãã£ã¬ã¯ããªã䜿ãããšãã§ããŸãã
-## Webpack
+## Webpack ã§åãæ±ã
-ããã©ã«ãã§ã¯ [vue-loader](http://vue-loader.vuejs.org/en/) ãã¹ã¿ã€ã«ããã³ãã¬ãŒããã¡ã€ã«ã `css-loader` ã Vue ãã³ãã¬ãŒãã³ã³ãã€ã©ãçšããŠèªåçã«åŠçããŸãããã®ã³ã³ãã€ã«åŠçã®äžã§ã` ` ã `background: url(...)` ã CSS `@import` ãªã©ã®å
šãŠã® URL ã¯ã¢ãžã¥ãŒã«ã®äŸåé¢ä¿ã®ããã«è§£æ±ºãããŸãã
+ããã©ã«ãã§ã¯ [vue-loader](http://vue-loader.vuejs.org/en/) 㯠`css-loader` åã³ Vue ãã³ãã¬ãŒãã³ã³ãã€ã©ãçšããŠãã¹ã¿ã€ã«ããã³ãã¬ãŒããã¡ã€ã«ãåŠçããŸãããã®ã³ã³ãã€ã«åŠçã®äžã§ã` ` ã `background: url(...)` ã CSS `@import` ãªã©ã®ãã¹ãŠã® URL ã¯ã¢ãžã¥ãŒã«ã®äŸåé¢ä¿ã®ããã«è§£æ±ºãããŸãã
@@ -53,17 +53,17 @@ createElement('img', { attrs: { src: require('~assets/image.png') }})
-`.png` 㯠JavaScript ãã¡ã€ã«ã§ã¯ãªããããNuxt.js 㯠Webpack ã PNG ãã¡ã€ã«ãæ±ããããã« [file-loader](https://github.com/webpack/file-loader) ãš [url-loader](https://github.com/webpack/url-loader) ã䜿ãèšå®ãè¡ããŸãã
+PNG ãã¡ã€ã« JavaScript ãã¡ã€ã«ã§ã¯ãªããããNuxt.js 㯠Webpack ã PNG ãã¡ã€ã«ãæ±ããããã« [file-loader](https://github.com/webpack/file-loader) ãš [url-loader](https://github.com/webpack/url-loader) ã䜿ãèšå®ãè¡ããŸãã
-file-loader ãš url-loader ã䜿ãã¡ãªãã:
+file-loader ãš url-loader ã®åœ¹å²:
-- `file-loader` ã¯ã¢ã»ãããã¡ã€ã«ãã©ãã«ã³ããŒãé
眮ãã¹ããããŸããããè¯ããã£ãã·ã³ã°ã®ããã«ããŒãžã§ã³ã®ããã·ã¥å€ã䜿ã£ãŠããªããšãããã¡ã€ã«åã«ãã¹ãããæå®ããŸãã
-- `url-loader` ã¯ãããã¡ã€ã«ãµã€ãºãéŸå€ãããå°ãããã°ããã¡ã€ã«ã BASE64 ããŒã¿ãšããŠåã蟌ã¿ãŸããããã«ããå°ããªãã¡ã€ã«ãååŸããããã® HTTP ãªã¯ãšã¹ãã®æ°ãæžããããšãã§ããŸãããããã¡ã€ã«ãµã€ãºãéŸå€ããã倧ãããã°ãèªåçã« `file-loader` ã«ãã©ãŒã«ããã¯ããŸãã
+- `file-loader` ã¯ã¢ã»ãããã¡ã€ã«ãã©ãã«ã³ããŒãé
眮ãã¹ããããŸãããã¡ã€ã«åãã©ããã¹ãããæ±ºå®ããŸãããã¡ã€ã«åã¯äžæã«ãã£ãã·ã¥ããããã«ããŒãžã§ã³ã®ããã·ã¥å€ãå«ããçãè¡ããŸãã
+- `url-loader` ã¯ãããã¡ã€ã«ãµã€ãºãéŸå€ãããå°ãããã°ããã¡ã€ã«ã®å
容ã Base64 ãšã³ã³ãŒãããŠåã蟌ã¿ãŸãããããããšå°ããªãã¡ã€ã«ãååŸããããã® HTTP ãªã¯ãšã¹ãã®æ°ãæžããããšãã§ããŸããäžæ¹ã§ããããã¡ã€ã«ãµã€ãºãéŸå€ããã倧ãããã°ãèªåçã« `file-loader` ã«ãã©ãŒã«ããã¯ããŸãã
@@ -92,11 +92,11 @@ file-loader ãš url-loader ã䜿ãã¡ãªãã:
-ãã¡ã€ã«ãµã€ãºã 1KO ãäžåããã¡ã€ã«ã¯ãã¹ãŠ base-64 ããŒã¿ãšããŠåã蟌ãŸããŸããå察㫠1KO ãäžåãç»åããã©ã³ãã¯ïŒ`.nuxt` ãã£ã¬ã¯ããªé
äžã®ïŒå¯Ÿå¿ãããã£ã¬ã¯ããªã«ããè¯ããã£ãã·ã³ã°ã®ããã®ããŒãžã§ã³ã®ããã·ã¥å€ãå«ãã ãã¡ã€ã«åã§ã³ããŒãããŸãã
+ãã¡ã€ã«ãµã€ãºã 1KB ãäžåããã¡ã€ã«ã¯ãã¹ãŠ Base64 ãšã³ã³ãŒããããŠåã蟌ãŸããŸããå察㫠1KB ãäžåãç»åããã©ã³ãã¯ïŒ`.nuxt` ãã£ã¬ã¯ããªé
äžã®ïŒå¯Ÿå¿ãããã£ã¬ã¯ããªã«ã³ããŒãããŸãããã®ãšããã¡ã€ã«åã¯ããŸããã£ãã·ã¥ãããããã«ããŒãžã§ã³ã®ããã·ã¥å€ãå«ãã ãã®ã«ãªããŸãã
-ã¢ããªã±ãŒã·ã§ã³ã `nuxt` ã³ãã³ãã§èµ·åãããšãã`pages/index.vue` å
ã®ãã³ãã¬ãŒãã¯äžèšã®ããã«ãªã£ãŠããŠ:
+ã¢ããªã±ãŒã·ã§ã³ã `nuxt` ã³ãã³ãã§èµ·åãããšãã`pages/index.vue` å
ã®ãã³ãã¬ãŒãã¯äžèšã®ããã«ãªã£ãŠãã:
```html
From 5b7728aaadb0b00de2090996bad26f74b4d79465 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Fri, 24 Feb 2017 01:06:35 +0900
Subject: [PATCH 015/129] Improve a heading
---
ja/guide/assets.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ja/guide/assets.md b/ja/guide/assets.md
index fc5cd34a5..ff8a56219 100644
--- a/ja/guide/assets.md
+++ b/ja/guide/assets.md
@@ -118,7 +118,7 @@ file-loader ãš url-loader ã®åœ¹å²:
-## éçãªãã¡ã€ã«
+## Webpack ã§æ±ããªãéçãã¡ã€ã«
From 094b6154eca4481b79c3a527733bf4d8660e124d Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Fri, 24 Feb 2017 22:28:54 +0900
Subject: [PATCH 016/129] Translate ja/guide/vuex-store.md
---
ja/guide/vuex-store.md | 117 +++++++++++++++++++++++++++++++----------
1 file changed, 88 insertions(+), 29 deletions(-)
diff --git a/ja/guide/vuex-store.md b/ja/guide/vuex-store.md
index 6e87670e0..2244a940d 100644
--- a/ja/guide/vuex-store.md
+++ b/ja/guide/vuex-store.md
@@ -1,25 +1,48 @@
---
-title: Vuex Store
-description: Using a store to manage the state is important for every big application, that's why nuxt.js implement Vuex in its core.
+title: Vuex ã¹ãã¢
+description: ç¶æ
ã管çããããã«ã¹ãã¢ã䜿ãããšã¯ãã¹ãŠã®å€§èŠæš¡ãªã¢ããªã±ãŒã·ã§ã³ã«ãšã£ãŠéèŠã§ããNuxt.js ã Vuex ãã³ã¢ã«çµã¿å
¥ããã®ã¯ãã®ãããªçç±ããã§ãã
---
-> Using a store to manage the state is important to every big application, that's why nuxt.js implement [vuex](https://github.com/vuejs/vuex) in its core.
+
+
-## Activate the Store
+
-Nuxt.js will look for the `store` directory, if it exists, it will:
+> ç¶æ
ã管çããããã«ã¹ãã¢ã䜿ãããšã¯ãã¹ãŠã®å€§èŠæš¡ãªã¢ããªã±ãŒã·ã§ã³ã«ãšã£ãŠéèŠã§ããNuxt.js ã [Vuex](https://github.com/vuejs/vuex) ãã³ã¢ã«çµã¿å
¥ããã®ã¯ãã®ãããªçç±ããã§ãã
-1. Import Vuex
-2. Add `vuex` module in the vendors bundle
-3. Add the `store` option to the root `Vue` instance.
+
-Nuxt.js lets you have **2 modes of store**, choose the one you prefer:
-- **Classic:** `store/index.js` returns a store instance
-- **Modules:** every `.js` file inside the `store` directory is transformed as a [namespaced module](http://vuex.vuejs.org/en/modules.html) (`index` being the root module)
+## ã¹ãã¢ãæå¹ã«ãã
-## Classic mode
+
-To activate the store with the classic mode, we create the `store/index.js` file and export the store instance:
+Nuxt.js 㯠`store` ãã£ã¬ã¯ããååšãããšãã«ã¯ãã¡ããæ¢ãã«è¡ããŸã:
+
+
+
+
+
+1. Vuex ãã€ã³ããŒãããŸã
+2. `vuex` ãã¢ãžã¥ãŒã«ã vendor ã®ãã³ãã«ãã¡ã€ã«ã«è¿œå ããŸã
+3. `store` ãªãã·ã§ã³ãã«ãŒãã® `Vue` ã€ã³ã¹ã¿ã³ã¹ã«è¿œå ããŸã
+
+
+
+Nuxt.js ã§ã¯ **2ã€ã®ã¢ãŒãã®ã¹ãã¢** ãæã€ããšãã§ããŸãããããã奜ã¿ã®ã»ããéžãã§ãã ãã:
+
+
+
+
+- **ã¯ã©ã·ãã¯:** `store/index.js` ãã¹ãã¢ã€ã³ã¹ã¿ã³ã¹ãè¿ããŸã
+- **ã¢ãžã¥ãŒã«:** `store` ãã£ã¬ã¯ããªå
ã®ãã¹ãŠã® `.js` ãã¡ã€ã«ã [Namespaced ã¢ãžã¥ãŒã«](http://vuex.vuejs.org/en/modules.html) ã«å€æãããŸãïŒ`index` ã¯ã«ãŒãã¢ãžã¥ãŒã«ãšããŠååšããŸãïŒ
+
+
+
+## ã¯ã©ã·ãã¯ã¢ãŒã
+
+
+
+ã¹ãã¢ãã¯ã©ã·ãã¯ã¢ãŒãã§æå¹ã«ããã«ã¯ `store/index.js` ãã¡ã€ã«ãäœæããã¹ãã¢ã€ã³ã¹ã¿ã³ã¹ããšã¯ã¹ããŒãããŸã:
```js
import Vuex from 'vuex'
@@ -38,9 +61,13 @@ const store = new Vuex.Store({
export default store
```
-> We don't need to install `vuex` since it's shipped with nuxt.js
+
+
+> `vuex` 㯠Nuxt.js ã«ãã£ãŠåã蟌ãŸããŠãããããå¥éã€ã³ã¹ããŒã«ããå¿
èŠã¯ãããŸãã
+
+
-We can now use `this.$store` inside our components:
+ã¯ã©ã·ãã¯ã¢ãŒããæå¹ã«ãããšãã³ã³ããŒãã³ãå
ã§ `this.$store` ã䜿ãããšãã§ããŸã:
```html
@@ -48,11 +75,17 @@ We can now use `this.$store` inside our components:
```
-## Modules mode
+
+
+## ã¢ãžã¥ãŒã«ã¢ãŒã
+
+
+
+> Nuxt.js ã§ã¯ `store` ãã£ã¬ã¯ããªå
ã«ã¢ãžã¥ãŒã«ãšå¯Ÿå¿ãããã¡ã€ã«ãæã€ããšãã§ããŸãã
-> Nuxt.js lets you have a `store` directory with every file corresponding to a module.
+
-If you want this option, export the state, mutations and actions in `store/index.js` instead of a store instance:
+ãã®ãªãã·ã§ã³ã䜿ããããšãã¯ãã¹ãã¢ã€ã³ã¹ã¿ã³ã¹ã®ä»£ããã«ã`store/index.js` å
ã®ã¹ãã¢ããã¥ãŒããŒã·ã§ã³ãã¢ã¯ã·ã§ã³ããšã¯ã¹ããŒãããŠãã ãã:
```js
export const state = {
@@ -66,7 +99,10 @@ export const mutations = {
}
```
-Then, you can have a `store/todos.js` file:
+
+
+ãããšæ¬¡ã®ãã㪠`store/todos.js` ãã¡ã€ã«ãæã€ããšãã§ããŸã:
+
```js
export const state = {
list: []
@@ -88,7 +124,10 @@ export const mutations = {
}
```
-The store will be as such:
+
+
+ã¹ãã¢ã¯äžèšã®ããã«ãªããŸã:
+
```js
new Vuex.Store({
state: { counter: 0 },
@@ -121,7 +160,9 @@ new Vuex.Store({
})
```
-And in your `pages/todos.vue`, using the `todos` module:
+
+
+ãã㊠`pages/todos.vue` å
ã§ `todos` ã¢ãžã¥ãŒã«ãäžèšã®ããã«äœ¿ãããšãã§ããŸã:
```html
@@ -160,19 +201,33 @@ export default {
```
-You can also have modules by exporting a store instance, you will have to add them manually on your store.
+
+
+ã¹ãã¢ã€ã³ã¹ã¿ã³ã¹ããšã¯ã¹ããŒãããããšã§ã¢ãžã¥ãŒã«ãæã€ããšãã§ããŸãããã®éã«ã¯ã¢ãžã¥ãŒã«ãã¹ãã¢ã«æåã§è¿œå ããå¿
èŠããããŸãã
+
+
-## The fetch Method
+## fetch ã¡ãœãã
-> The fetch method is used to fill the store before rendering the page, it's like the data method except it doesn't set the component data.
+
-More information about the fetch method: [API Pages fetch](/api/pages-fetch)
+fetch ã¡ãœããã¯ãããŒãžãã¬ã³ããªã³ã°ãããåã«ãããŒã¿ãã¹ãã¢ã«å
¥ããããã«äœ¿ãããŸããã³ã³ããŒãã³ãã®ããŒã¿ãã»ããããªããšããç¹ãé€ããŠã¯ data ã¡ãœãããšãã䌌ãŠããŸãã
-## The nuxtServerInit Action
+
-If the action `nuxtServerInit` is defined in the store, nuxt.js will call it with the context (only from the server-side). It's useful when we have some data on the server we want to give directly to the client-side.
+fetch ã¡ãœããã«ã€ããŠããæ·±ãçè§£ããããã«ã¯ [API Pages fetch](/api/pages-fetch) ãåç
§ããŠãã ããã
-For example, let's say we have sessions on the server-side and we can access the connected user trough `req.session.user`. To give the authenticated user to our store, we update our `store/index.js` to the following:
+
+
+## nuxtServerInit ã¢ã¯ã·ã§ã³
+
+
+
+`nuxtServerInit` ãšããã¢ã¯ã·ã§ã³ãã¹ãã¢å
ã«å®çŸ©ãããŠãããšãã¯ãNuxt.js ã¯ããã context ãšãšãã«åŒã³åºããŸãïŒãµãŒããŒãµã€ãã§ã®ã¿ïŒãã¯ã©ã€ã¢ã³ããµã€ãã«çŽæ¥æž¡ãããããŒã¿ããµãŒããŒäžã«ãããšãã«äŸ¿å©ã§ãã
+
+
+
+äŸãã°ããµãŒããŒãµã€ãã§ã»ãã·ã§ã³ãæã£ãŠããŠãæ¥ç¶ããŠãããŠãŒã¶ãŒã« `req.session.user` ãéããŠã¢ã¯ã»ã¹ã§ãããšããŸããèªèšŒããããŠãŒã¶ãŒã«ã¹ãã¢ãæž¡ãããã« `store/index.js` äžèšã®ããã«æžãæããŸã:
```js
actions: {
@@ -184,6 +239,10 @@ actions: {
}
```
-> If you are using the _Modules_ mode of the Vuex store, only the primary module (in `store/index.js`) will receive this action. You'll need to chain your module actions from there.
+
+
+> ãã Vuex ã¹ãã¢ã® _ã¢ãžã¥ãŒã«_ ã¢ãŒãã䜿ã£ãŠãããªããïŒ`store/index.js` å
ã®ïŒãã©ã€ããªã¢ãŒãã®ã¿ããã®ã¢ã¯ã·ã§ã³ãåãåãããšãã§ããŸããããããã¢ãžã¥ãŒã«ã®ã¢ã¯ã·ã§ã³ãã€ãªãå¿
èŠããããŸãã
The context is given to `nuxtServerInit` as the 2nd argument, it is the same as the `data` or `fetch` method except that `context.redirect()` and `context.error()` are omitted.
+
+context 㯠`nuxtServerInit` ãžç¬¬äºåŒæ°ãšããŠæž¡ãããŸãã`context.redirect()` ã `context.error()` ãé€å€ãããç¹ãé€ããŠã¯ `data` ã¡ãœããã `fetch` ã¡ãœãããšå
±éããŠããŸãã
From c5aefff56687fcde350abdc95a57f15100766523 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Fri, 24 Feb 2017 22:46:17 +0900
Subject: [PATCH 017/129] Make ja/guide/vuex-store.md natural
---
ja/guide/vuex-store.md | 28 ++++++++++++++--------------
1 file changed, 14 insertions(+), 14 deletions(-)
diff --git a/ja/guide/vuex-store.md b/ja/guide/vuex-store.md
index 2244a940d..7bfb67bcf 100644
--- a/ja/guide/vuex-store.md
+++ b/ja/guide/vuex-store.md
@@ -1,6 +1,6 @@
---
title: Vuex ã¹ãã¢
-description: ç¶æ
ã管çããããã«ã¹ãã¢ã䜿ãããšã¯ãã¹ãŠã®å€§èŠæš¡ãªã¢ããªã±ãŒã·ã§ã³ã«ãšã£ãŠéèŠã§ããNuxt.js ã Vuex ãã³ã¢ã«çµã¿å
¥ããã®ã¯ãã®ãããªçç±ããã§ãã
+description: ç¶æ
ã管çããŠããã Vuex ã¹ãã¢ã¯ãããããå€§èŠæš¡ã¢ããªã±ãŒã·ã§ã³ã«ãšãŠã圹ã«ç«ã¡ãŸããNuxt.js ã Vuex ãã³ã¢ã«çµã¿å
¥ããã®ã¯ãã®ãããªçç±ããã§ãã
---
@@ -8,7 +8,7 @@ description: ç¶æ
ã管çããããã«ã¹ãã¢ã䜿ãããšã¯ãã¹ãŠ
-> ç¶æ
ã管çããããã«ã¹ãã¢ã䜿ãããšã¯ãã¹ãŠã®å€§èŠæš¡ãªã¢ããªã±ãŒã·ã§ã³ã«ãšã£ãŠéèŠã§ããNuxt.js ã [Vuex](https://github.com/vuejs/vuex) ãã³ã¢ã«çµã¿å
¥ããã®ã¯ãã®ãããªçç±ããã§ãã
+> ç¶æ
ã管çããŠããã Vuex ã¹ãã¢ã¯ãããããå€§èŠæš¡ã¢ããªã±ãŒã·ã§ã³ã«ãšãŠã圹ã«ç«ã¡ãŸããNuxt.js ã [Vuex](https://github.com/vuejs/vuex) ãã³ã¢ã«çµã¿å
¥ããã®ã¯ãã®ãããªçç±ããã§ãã
@@ -16,25 +16,25 @@ description: ç¶æ
ã管çããããã«ã¹ãã¢ã䜿ãããšã¯ãã¹ãŠ
-Nuxt.js 㯠`store` ãã£ã¬ã¯ããååšãããšãã«ã¯ãã¡ããæ¢ãã«è¡ããŸã:
+Nuxt.js 㯠`store` ãã£ã¬ã¯ããååšãããšãã«ã¯ãã¡ããæ¢çŽ¢ããŸã:
1. Vuex ãã€ã³ããŒãããŸã
-2. `vuex` ãã¢ãžã¥ãŒã«ã vendor ã®ãã³ãã«ãã¡ã€ã«ã«è¿œå ããŸã
+2. `vuex` ã¢ãžã¥ãŒã«ã vendor ã®ãã³ãã«ãã¡ã€ã«ã«è¿œå ããŸã
3. `store` ãªãã·ã§ã³ãã«ãŒãã® `Vue` ã€ã³ã¹ã¿ã³ã¹ã«è¿œå ããŸã
-Nuxt.js ã§ã¯ **2ã€ã®ã¢ãŒãã®ã¹ãã¢** ãæã€ããšãã§ããŸãããããã奜ã¿ã®ã»ããéžãã§ãã ãã:
+Nuxt.js ã§ã¯ **2ã€ã®ã¢ãŒãã®ã¹ãã¢** ããããŸããã©ã¡ãã奜ã¿ã®ã»ããéžãã§äœ¿ã£ãŠãã ãã:
-- **ã¯ã©ã·ãã¯:** `store/index.js` ãã¹ãã¢ã€ã³ã¹ã¿ã³ã¹ãè¿ããŸã
-- **ã¢ãžã¥ãŒã«:** `store` ãã£ã¬ã¯ããªå
ã®ãã¹ãŠã® `.js` ãã¡ã€ã«ã [Namespaced ã¢ãžã¥ãŒã«](http://vuex.vuejs.org/en/modules.html) ã«å€æãããŸãïŒ`index` ã¯ã«ãŒãã¢ãžã¥ãŒã«ãšããŠååšããŸãïŒ
+- **ã¯ã©ã·ãã¯ã¢ãŒã:** `store/index.js` ãã¹ãã¢ã€ã³ã¹ã¿ã³ã¹ãè¿ããŸã
+- **ã¢ãžã¥ãŒã«ã¢ãŒã:** `store` ãã£ã¬ã¯ããªå
ã®ãã¹ãŠã® `.js` ãã¡ã€ã«ã [ã¢ãžã¥ãŒã«](http://vuex.vuejs.org/en/modules.html) ã«å€æãããŸãïŒ`index` ã¯ã«ãŒãã¢ãžã¥ãŒã«ãšããŠååšããŸãïŒ
@@ -85,7 +85,7 @@ export default store
-ãã®ãªãã·ã§ã³ã䜿ããããšãã¯ãã¹ãã¢ã€ã³ã¹ã¿ã³ã¹ã®ä»£ããã«ã`store/index.js` å
ã®ã¹ãã¢ããã¥ãŒããŒã·ã§ã³ãã¢ã¯ã·ã§ã³ããšã¯ã¹ããŒãããŠãã ãã:
+ãã®ãªãã·ã§ã³ã䜿ããããšãã¯ãã¹ãã¢ã€ã³ã¹ã¿ã³ã¹ã®ä»£ããã«ã`store/index.js` å
ã®ã¹ãã¢ããã¥ãŒããŒã·ã§ã³ãã¢ã¯ã·ã§ã³ããšã¯ã¹ããŒãããŸã:
```js
export const state = {
@@ -101,7 +101,7 @@ export const mutations = {
-ãããšæ¬¡ã®ãã㪠`store/todos.js` ãã¡ã€ã«ãæã€ããšãã§ããŸã:
+ãŸããæ¬¡ã®ãã㪠`store/todos.js` ãã¡ã€ã«ãäœæã§ããŸã:
```js
export const state = {
@@ -215,7 +215,7 @@ fetch ã¡ãœããã¯ãããŒãžãã¬ã³ããªã³ã°ãããåã«ãããŒ
-fetch ã¡ãœããã«ã€ããŠããæ·±ãçè§£ããããã«ã¯ [API Pages fetch](/api/pages-fetch) ãåç
§ããŠãã ããã
+fetch ã¡ãœããã«ã€ããŠããæ·±ãçè§£ããããã«ã¯ [ããŒãžã® fetch ã¡ãœãã API](/api/pages-fetch) ãåç
§ããŠãã ããã
@@ -223,11 +223,11 @@ fetch ã¡ãœããã«ã€ããŠããæ·±ãçè§£ããããã«ã¯ [API Pages fe
-`nuxtServerInit` ãšããã¢ã¯ã·ã§ã³ãã¹ãã¢å
ã«å®çŸ©ãããŠãããšãã¯ãNuxt.js ã¯ããã context ãšãšãã«åŒã³åºããŸãïŒãµãŒããŒãµã€ãã§ã®ã¿ïŒãã¯ã©ã€ã¢ã³ããµã€ãã«çŽæ¥æž¡ãããããŒã¿ããµãŒããŒäžã«ãããšãã«äŸ¿å©ã§ãã
+`nuxtServerInit` ãšããã¢ã¯ã·ã§ã³ãã¹ãã¢å
ã«å®çŸ©ãããŠãããšãã¯ãNuxt.js ã¯ããã context ãšãšãã«åŒã³åºããŸãïŒãã ããµãŒããŒãµã€ãã«éããŸãïŒããµãŒããŒäžã«ãã¯ã©ã€ã¢ã³ããµã€ãã«çŽæ¥æž¡ãããããŒã¿ããããšãã«äŸ¿å©ã§ãã
-äŸãã°ããµãŒããŒãµã€ãã§ã»ãã·ã§ã³ãæã£ãŠããŠãæ¥ç¶ããŠãããŠãŒã¶ãŒã« `req.session.user` ãéããŠã¢ã¯ã»ã¹ã§ãããšããŸããèªèšŒããããŠãŒã¶ãŒã«ã¹ãã¢ãæž¡ãããã« `store/index.js` äžèšã®ããã«æžãæããŸã:
+äŸãã°ããµãŒããŒãµã€ãã§ã»ãã·ã§ã³ãæã£ãŠããŠãæ¥ç¶ããŠãããŠãŒã¶ãŒã« `req.session.user` ãéããŠã¢ã¯ã»ã¹ã§ãããšããŸããèªèšŒããããŠãŒã¶ãŒã«ã¹ãã¢ãæž¡ãããã« `store/index.js` äžèšã®ããã«æžãæããŸã:
```js
actions: {
@@ -241,8 +241,8 @@ actions: {
-> ãã Vuex ã¹ãã¢ã® _ã¢ãžã¥ãŒã«_ ã¢ãŒãã䜿ã£ãŠãããªããïŒ`store/index.js` å
ã®ïŒãã©ã€ããªã¢ãŒãã®ã¿ããã®ã¢ã¯ã·ã§ã³ãåãåãããšãã§ããŸããããããã¢ãžã¥ãŒã«ã®ã¢ã¯ã·ã§ã³ãã€ãªãå¿
èŠããããŸãã
+> ãã Vuex ã¹ãã¢ã® _ã¢ãžã¥ãŒã«_ ã¢ãŒãã䜿ã£ãŠãããªããïŒ`store/index.js` å
ã®ïŒãã©ã€ããªã¢ãŒãã®ã¿ããã®ã¢ã¯ã·ã§ã³ãåãåãããšãã§ããŸããããããã¢ãžã¥ãŒã«ã®ã¢ã¯ã·ã§ã³ãã€ãªãå¿
èŠããããŸããïŒè𳿳š: èš³ã«èªä¿¡ãªããåæã¯ If you are using the _Modules_ mode of the Vuex store, only the primary module (in `store/index.js`) will receive this action. You'll need to chain your module actions from there.ïŒ
-The context is given to `nuxtServerInit` as the 2nd argument, it is the same as the `data` or `fetch` method except that `context.redirect()` and `context.error()` are omitted.
+
context 㯠`nuxtServerInit` ãžç¬¬äºåŒæ°ãšããŠæž¡ãããŸãã`context.redirect()` ã `context.error()` ãé€å€ãããç¹ãé€ããŠã¯ `data` ã¡ãœããã `fetch` ã¡ãœãããšå
±éããŠããŸãã
From b9218db2cd6b13b978464e64b308755d860d6b1a Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Fri, 24 Feb 2017 22:48:25 +0900
Subject: [PATCH 018/129] Make ja/lang.json natural
---
ja/lang.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ja/lang.json b/ja/lang.json
index d7f32a139..e12c28e76 100644
--- a/ja/lang.json
+++ b/ja/lang.json
@@ -12,7 +12,7 @@
"get_started": "ã¯ããã",
"github": "Github",
"guide": "Guide",
- "homepage": "ããŒã ããŒãž",
+ "homepage": "ããŒã ",
"live_demo": "ã©ã€ããã¢",
"live_edit": "ã©ã€ããšãã£ãã",
"twitter": "Twitter",
From a71faa7223ff44045af3be7faf777eff60723919 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Fri, 24 Feb 2017 23:21:14 +0900
Subject: [PATCH 019/129] Make ja/guide/index.md natural
---
ja/guide/index.md | 40 ++++++++++++++++++++--------------------
1 file changed, 20 insertions(+), 20 deletions(-)
diff --git a/ja/guide/index.md b/ja/guide/index.md
index c2967d12b..b4f2ba85e 100644
--- a/ja/guide/index.md
+++ b/ja/guide/index.md
@@ -1,6 +1,6 @@
---
title: ã¯ããã«
-description: "2016幎10æ25æ¥ zeit.co ã®ããŒã ã React ã¢ããªã±ãŒã·ã§ã³ããµãŒããŒãµã€ãã¬ã³ããªã³ã°ããããã®ãã¬ãŒã ã¯ãŒã¯ Next.js ãçºè¡šããŸããããããŠãã®çºè¡šããæ°æéåŸãNext.js ãšåãããæ¹ã§ Vue.js ããµãŒããŒãµã€ãã¬ã³ããªã³ã°ããã¢ããªã±ãŒã·ã§ã³ãæ§ç¯ããã¢ã€ãã£ã¢ãçãŸããŸãããããªãã¡ Nuxt.js ã®èªçã§ãã"
+description: "2016幎10æ25æ¥ãzeit.co ã®ããŒã ã React ã¢ããªã±ãŒã·ã§ã³ããµãŒããŒãµã€ãã¬ã³ããªã³ã°ããããã®ãã¬ãŒã ã¯ãŒã¯ Next.js ãçºè¡šããŸããããããŠãã®çºè¡šããæ°æéåŸãNext.js ãšåãããæ¹ã§ããããä»åºŠã¯ Vue.js ããµãŒããŒãµã€ãã¬ã³ããªã³ã°ããã¢ããªã±ãŒã·ã§ã³ãæ§ç¯ããã¢ã€ãã£ã¢ãçãŸããŸãããããªãã¡ Nuxt.js ã®èªçã§ãã"
---
@@ -8,7 +8,7 @@ description: "2016幎10æ25æ¥ zeit.co ã®ããŒã ã React ã¢ããªã±ãŒã·
-> 2016幎10æ25æ¥ã[zeit.co](https://zeit.co/) ã®ããŒã ã React ã¢ããªã±ãŒã·ã§ã³ããµãŒããŒãµã€ãã¬ã³ããªã³ã°ããããã®ãã¬ãŒã ã¯ãŒã¯ [Next.js](https://zeit.co/blog/next) ãçºè¡šããŸããããããŠãã®çºè¡šãããããæ°æéåŸãNext.js ãšåãããæ¹ã§ [Vue.js](https://vuejs.org) ããµãŒããŒãµã€ãã¬ã³ããªã³ã°ããã¢ããªã±ãŒã·ã§ã³ãæ§ç¯ããã¢ã€ãã£ã¢ãçãŸããŸãããããªãã¡ **Nuxt.js** ã®èªçã§ãã
+> 2016幎10æ25æ¥ã[zeit.co](https://zeit.co/) ã®ããŒã ã React ã¢ããªã±ãŒã·ã§ã³ããµãŒããŒãµã€ãã¬ã³ããªã³ã°ããããã®ãã¬ãŒã ã¯ãŒã¯ [Next.js](https://zeit.co/blog/next) ãçºè¡šããŸããããããŠãã®çºè¡šãããããæ°æéåŸãNext.js ãšåãããæ¹ã§ããããä»åºŠã¯ [Vue.js](https://vuejs.org) ããµãŒããŒãµã€ãã¬ã³ããªã³ã°ããã¢ããªã±ãŒã·ã§ã³ãæ§ç¯ããã¢ã€ãã£ã¢ãçãŸããŸãããããªãã¡ **Nuxt.js** ã®èªçã§ãã
@@ -20,15 +20,15 @@ Next.js ãšã¯ãŠãããŒãµã«ãª Vue.js ã¢ããªã±ãŒã·ã§ã³ãæ§ç¯ã
-ã¯ã©ã€ã¢ã³ããµã€ããšãµãŒããŒãµã€ãã®ãã£ã¹ããªãã¥ãŒã·ã§ã³ãæœè±¡åããéã® **UI ã¬ã³ããªã³ã°** ã«çŠç¹ãåœãŠãŠããŸãã
+ã¯ã©ã€ã¢ã³ããµã€ããšãµãŒããŒãµã€ãã®ãã£ã¹ããªãã¥ãŒã·ã§ã³ãæœè±¡åããŠããéã® **UI ã¬ã³ããªã³ã°** ã«çŠç¹ãåœãŠãŠããŸãã
-ç§ãã¡ã®ãŽãŒã«ã¯ããããããžã§ã¯ãã®åºç€ãšããŠå©çšãããããããã¯æ¢ã«é²è¡äžã® Node.js ããŒã¹ã®ãããžã§ã¯ãã«è¿œå ããããã«ååã«æè»ãªãã¬ãŒã ã¯ãŒã¯ãäœæããããšã§ãã
+ç§ãã¡ã®ãŽãŒã«ã¯ããããããžã§ã¯ãã®åºç€ãšããŠå©çšãããããããã¯æ¢ã«é²è¡äžã® Node.js ããŒã¹ã®ãããžã§ã¯ãã«è¿œå ã§ãããæè»ãªãã¬ãŒã ã¯ãŒã¯ãäœæããããšã§ãã
-Nuxt.js 㯠**ãµãŒããŒãµã€ãã¬ã³ããªã³ã°** ãã Vue.js ã¢ããªã±ãŒã·ã§ã³ã®éçºããã£ãšæ¥œããããããã«å¿
èŠãªå
šãŠã®èšå®ããããããçšæããŠããŸãã
+Nuxt.js 㯠**ãµãŒããŒãµã€ãã¬ã³ããªã³ã°** ãã Vue.js ã¢ããªã±ãŒã·ã§ã³ã®éçºããã£ãšæ¥œããããããã«å¿
èŠãªèšå®ãçšæããŠããŸãã
@@ -37,7 +37,7 @@ Nuxt.js 㯠**ãµãŒããŒãµã€ãã¬ã³ããªã³ã°** ãã Vue.js ã¢ããª
-Nuxt.js ã¯ãã¬ãŒã ã¯ãŒã¯ãšããŠãã¯ã©ã€ã¢ã³ããµã€ããšãµãŒããŒãµã€ãéã«ãŸãããéçºãæå©ãããããããã®æ©èœãåããŠããŸããäŸãã°ãåæã§ã®ããŒã¿ãããåãããããã«ãŠã§ã¢ãã¬ã€ã¢ãŠããªã©ã§ãã
+Nuxt.js ã¯ãã¬ãŒã ã¯ãŒã¯ãšããŠãã¯ã©ã€ã¢ã³ããµã€ããšãµãŒããŒãµã€ãéã«ãŸãããéçºãæå©ããããããããã®æ©èœãåããŠããŸããäŸãã°ãéåæã§ã®ããŒã¿ãããåãããããã«ãŠã§ã¢ãã¬ã€ã¢ãŠããªã©ã§ãã
@@ -51,7 +51,7 @@ Nuxt.js ã¯ãªãããªãŠã§ãã¢ããªã±ãŒã·ã§ã³ãæ§ç¯ããããã«
- [Vue 2](https://github.com/vuejs/vue)
- [Vue-Router](https://github.com/vuejs/vue-router)
-- [Vuex](https://github.com/vuejs/vuex)ïŒ[store option](/guide/vuex-store) ãå©çšããŠãããšãã«éããŸãïŒ
+- [Vuex](https://github.com/vuejs/vuex)ïŒ[Vuex ã¹ãã¢ã®ãªãã·ã§ã³](/guide/vuex-store) ãå©çšããŠãããšãã«éããŸãïŒ
- [Vue-Meta](https://github.com/declandewet/vue-meta)
@@ -60,7 +60,7 @@ Nuxt.js ã¯ãªãããªãŠã§ãã¢ããªã±ãŒã·ã§ã³ãæ§ç¯ããããã«
-ãŸãããã³ãã«ãã³ãŒãåå²åã³ãããã¡ã€ããããã« [Webpack](https://github.com/webpack/webpack) ã [vue-Loader](https://github.com/vuejs/vue-loader) ãš [babel-loader](https://github.com/babel/babel-loader) ãšåãããŠäœ¿ããŸãã
+ãŸãããœãŒã¹ã³ãŒãã®ãã³ãã«ãåå²åã³ãããã¡ã€ããããã« [Webpack](https://github.com/webpack/webpack) ã䜿ããŸãã[vue-Loader](https://github.com/vuejs/vue-loader) ãš [babel-loader](https://github.com/babel/babel-loader) ãåãããŠäœ¿ããŸãã
@@ -78,10 +78,10 @@ Nuxt.js ã¯ãªãããªãŠã§ãã¢ããªã±ãŒã·ã§ã³ãæ§ç¯ããããã«
- Vue ãã¡ã€ã«ã§èšè¿°ã§ããããš
-- ã³ãŒãã®èªååå²
+- ã³ãŒããèªåçã«åå²ããããš
- ãµãŒããŒãµã€ãã¬ã³ããªã³ã°
- éåæããŒã¿ã䌎ããã¯ãã«ãªã«ãŒãã£ã³ã°
-- éçãªãã¡ã€ã«é
ä¿¡
+- éçãªãã¡ã€ã«ã®é
ä¿¡
- ES6/ES7 ã®ãã©ã³ã¹ãã€ã¬ãŒã·ã§ã³
- JS ãš CSS ã®ãã³ãã«åã³ãããã¡ã€
- Head ã¿ã°ïŒè𳿳š: ã¡ã¿ã¿ã°ïŒã®ç®¡ç
@@ -94,7 +94,7 @@ Nuxt.js ã¯ãªãããªãŠã§ãã¢ããªã±ãŒã·ã§ã³ãæ§ç¯ããããã«
-äžã®å³ã¯ããµãŒããŒãµã€ãã§å®è¡æããŠãŒã¶ãŒã `` ãéããŠé·ç§»ãããšãã« Nuxt.js ã«ãã£ãŠäœãåŒã°ãããã衚ããŠããŸãã
+äžã®å³ã¯ããµãŒããŒãµã€ãã§åŠçãå®è¡ããããšããããŠãŒã¶ãŒã `` ãéããŠé·ç§»ãããšãã«ãNuxt.js ã«ãã£ãŠäœãåŒã³åºããããã衚ããŠããŸã:

@@ -108,15 +108,15 @@ Nuxt.js ããããžã§ã¯ãã® UI ã¬ã³ããªã³ã°å
šäœãæ
ããã¬ãŒ
-`nuxt` ã³ãã³ããå®è¡ãããšãããããªããŒãã£ã³ã°åã³èªåçã«ã¢ããªã±ãŒã·ã§ã³ããµãŒããŒãµã€ãã¬ã³ããªã³ã°ããããèšå®ããã vue-server-render ãåããéçºãµãŒããŒãèµ·åãããŸãã
+`nuxt` ã³ãã³ããå®è¡ãããšéçºãµãŒããŒãèµ·åãããŸãããã®ãµãŒããŒã¯ããããªããŒãã£ã³ã°åã³ vue-server-render ãåããŠãããvue-server-render ã¯èªåçã«ã¢ããªã±ãŒã·ã§ã³ããµãŒããŒãµã€ãã¬ã³ããªã³ã°ããããèšå®ãããŠããŸãã
-ã³ãã³ãã«ã€ããŠããæ·±ãåŠã¶ã«ã¯ [ã³ãã³ã](/guide/commands) ãåç
§ããŠãã ããã
+ã³ãã³ãã«ã€ããŠããæ·±ãçè§£ããã«ã¯ [ã³ãã³ã](/guide/commands) ãåç
§ããŠãã ããã
-æ¢ã«ãµãŒããŒããããªã Nuxt.js ãããã«ãŠã§ã¢ãšããŠè¿œå ããšãã§ããŸãããŠãããŒãµã«ãªãŠã§ãã¢ããªã±ãŒã·ã§ã³ãéçºããããã« Nuxt.js ãå©çšããã«ããã£ãŠäœãå¶éã¯ãããŸããã[Using Nuxt.js Programmatically](/api/nuxt) ã¬ã€ããèŠãŠã¿ãŠãã ããã
+æ¢ã«ãµãŒããŒããããªãã° Nuxt.js ãããã«ãŠã§ã¢ãšããŠè¿œå ããšãã§ããŸãããŠãããŒãµã«ãªãŠã§ãã¢ããªã±ãŒã·ã§ã³ãéçºããããã« Nuxt.js ãå©çšããã«ããã£ãŠäœãå¶éã¯ãããŸããã[Nuxt.js](/api/nuxt) ã¬ã€ããèŠãŠã¿ãŠãã ããã
@@ -128,11 +128,11 @@ Nuxt.js ããããžã§ã¯ãã® UI ã¬ã³ããªã³ã°å
šäœãæ
ããã¬ãŒ
-`nuxt generate` ã¯ã¢ããªã±ãŒã·ã§ã³ããã«ãããéã«ããã¹ãŠã®ã«ãŒãã£ã³ã°ã®ç¶æ
ããã¡ã€ã«äžã«ä¿åãã HTML ãçæããŸãã
+`nuxt generate` ã¯ã¢ããªã±ãŒã·ã§ã³ããã«ãããéã«ãåã«ãŒãããšã® HTML ãçæããŸãã
-äŸ:
+äŸãã°ãäžèšã®ãã¡ã€ã«çŸ€ãããå Žå:
```bash
-| pages/
@@ -142,7 +142,7 @@ Nuxt.js ããããžã§ã¯ãã® UI ã¬ã³ããªã³ã°å
šäœãæ
ããã¬ãŒ
-äžèšãçæããŸã:
+次ã®ãã¡ã€ã«ãçæãããŸã:
```
-| dist/
@@ -153,7 +153,7 @@ Nuxt.js ããããžã§ã¯ãã® UI ã¬ã³ããªã³ã°å
šäœãæ
ããã¬ãŒ
-ãã®ããæ¹ã«ãããã©ããªéçãªãã¹ãã£ã³ã°ãµãŒãã¹ã§ããçæããããŠã§ãã¢ããªã±ãŒã·ã§ã³ããã¹ãããããšãã§ããããã«ãªããŸãã
+ãã®ããæ¹ã«ãããéçãªãã¡ã€ã«ããã¹ãã£ã³ã°ãããµãŒãã¹ã§ãã£ãŠããçæããããŠã§ãã¢ããªã±ãŒã·ã§ã³ããã¹ãã§ããŸãã
@@ -167,7 +167,7 @@ Nuxt.js ããããžã§ã¯ãã® UI ã¬ã³ããªã³ã°å
šäœãæ
ããã¬ãŒ
-ç§ãã¡ã¯ [docs ãªããžããª](https://github.com/nuxt/docs) ãæŽæ°ãããã³ã«æ¯åæåã§ã¢ããªã±ãŒã·ã§ã³ãçæããããªãã£ãã®ã§ãAWS Lambda funtion ããçææ©èœãå®è¡ããŠããŸã:
+ç§ãã¡ã¯ [docs ãªããžããª](https://github.com/nuxt/docs) ãæŽæ°ãããã³ã«æ¯åæåã§ã¢ããªã±ãŒã·ã§ã³ãçæããã®ã¯é¢åã ã£ãã®ã§ãAWS Lambda funtion ããçææ©èœãå®è¡ããŠããŸã:
@@ -185,4 +185,4 @@ Nuxt.js ããããžã§ã¯ãã® UI ã¬ã³ããªã³ã°å
šäœãæ
ããã¬ãŒ
-ããã«é²ã㊠`nuxt generate` ã§çæããã E ã³ããŒã¹ã®ãŠã§ãã¢ããªã±ãŒã·ã§ã³ãèããŠã¿ãŸãããããã®ã¢ããªã±ãŒã·ã§ã³ã¯ CDN ã§ãã¹ããããååãåšåº«åãã«ãªã£ããå
¥è·ãããããããã³ã«ã¢ããªã±ãŒã·ã§ã³ãåçæãããŸãããŠãŒã¶ãŒãã¢ããªã±ãŒã·ã§ã³é·ç§»ããŠããéã«ãåšåº«ã®ç¶æ
ãïŒåçæã®ãããã§ïŒææ°ã®ç¶æ
ã«ãªãã®ã§ããã€ãŸãããµãŒããŒã§è€æ°ã®ã€ã³ã¹ã¿ã³ã¹åã³ãã£ãã·ã¥ãæã€å¿
èŠããªããªãã®ã§ãïŒ
+ããã«é²ã㊠`nuxt generate` ã§çæããã E ã³ããŒã¹ã®ãŠã§ãã¢ããªã±ãŒã·ã§ã³ãèããŠã¿ãŸãããããã®ã¢ããªã±ãŒã·ã§ã³ã¯ CDN ã§ãã¹ããããååãåšåº«åãã«ãªã£ããå
¥è·ãããããããã³ã«ã¢ããªã±ãŒã·ã§ã³ãåçæãããŸãããŠãŒã¶ãŒãã¢ããªã±ãŒã·ã§ã³é·ç§»ããŠããéã«ãåšåº«ã®ç¶æ
ãïŒåçæã®ãããã§ïŒææ°ã®ç¶æ
ã«ãªãã®ã§ããã€ãŸãããµãŒããŒã§ãããããªã€ã³ã¹ã¿ã³ã¹ãèµ·åãããããã£ãã·ã¥ãæã£ããããå¿
èŠããªããªãã®ã§ãïŒ
From 64fd61c07df77a71f1f31d7192fb139d60fe74bf Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Fri, 24 Feb 2017 23:27:02 +0900
Subject: [PATCH 020/129] Make ja/guide/contribution-guide.md natural
---
ja/guide/contribution-guide.md | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/ja/guide/contribution-guide.md b/ja/guide/contribution-guide.md
index 976473294..76a69f0f1 100644
--- a/ja/guide/contribution-guide.md
+++ b/ja/guide/contribution-guide.md
@@ -1,6 +1,6 @@
---
title: è²¢ç®ã¬ã€ã
-description: "Nuxt.js ãžã®ã©ããªè²¢ç®ã倧æè¿ããŸãïŒ"
+description: Nuxt.js ãžã®è²¢ç®ã¯ã©ããªãã®ã§ã倧æè¿ã§ãïŒ
---
@@ -8,7 +8,7 @@ description: "Nuxt.js ãžã®ã©ããªè²¢ç®ã倧æè¿ããŸãïŒ"
-Nuxt.js ãžã®ã©ããªè²¢ç®ã倧æè¿ããŸãïŒ
+Nuxt.js ãžã®è²¢ç®ã¯ã©ããªãã®ã§ã倧æè¿ã§ãïŒ
@@ -24,7 +24,7 @@ Nuxt.js ãžã®ã©ããªè²¢ç®ã倧æè¿ããŸãïŒ
-ããšããããåã«ã¿ã€ãã®ä¿®æ£ã§ãã£ãŠãããã²ãã«ãªã¯ãšã¹ããéã£ãŠãã ãããã©ããªéèŠãªæ¹åã§ãã£ãŠãã誰ããæãåããå§ããåã« [GitHub issue](https://github.com/nuxt/nuxt.js/issues) ã«èšèŒããŠãã ããã
+ããšããããåã«ã¿ã€ããã¹ã®ä¿®æ£ã§ãã£ãŠãããã²ãã«ãªã¯ãšã¹ããéã£ãŠãã ãããã©ããªéèŠãªæ¹åã§ãã£ãŠãã誰ããæãåããå§ããåã« [GitHub issue](https://github.com/nuxt/nuxt.js/issues) ã«èšèŒããŠãã ããã
From 430545ea8cd4269749adf238c1d48b185b1d78f0 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Sat, 25 Feb 2017 19:09:05 +0900
Subject: [PATCH 021/129] Translate ja/guide/commands.md
---
ja/guide/commands.md | 105 ++++++++++++++++++++++++++++++++-----------
1 file changed, 79 insertions(+), 26 deletions(-)
diff --git a/ja/guide/commands.md b/ja/guide/commands.md
index aab7fce28..7c473353b 100644
--- a/ja/guide/commands.md
+++ b/ja/guide/commands.md
@@ -1,20 +1,36 @@
---
-title: Commands
-description: Nuxt.js comes with a set of useful commands, both for development and production purpose.
+title: ã³ãã³ã
+description: Nuxt.js ã¯ã²ãšãšããã®äŸ¿å©ã³ãã³ããåããŠããŸããéçºçšéã®ãã®ããããã¯ã·ã§ã³çšéã®ãã®ããããŸãã
---
-> Nuxt.js comes with a set of useful commands, both for development and production purpose.
+
+
-## List of Commands
+
-| Command | Description |
+> Nuxt.js ã¯ã²ãšãšããã®äŸ¿å©ã³ãã³ããåããŠããŸããéçºçšéã®ãã®ããããã¯ã·ã§ã³çšéã®ãã®ããããŸãã
+
+
+
+## ã³ãã³ãäžèЧ
+
+
+
+
+
+
+
+
+| ã³ãã³ã | 説æ |
|---------|-------------|
-| nuxt | Launch a development server on [localhost:3000](http://localhost:3000) with hot-reloading. |
-| nuxt build | Build your application with webpack and minify the JS & CSS (for production). |
-| nuxt start | Start the server in production mode (After running `nuxt build`). |
-| nuxt generate | Build the application and generate every route as a HTML file (used for static hosting). |
+| nuxt | éçºãµãŒããŒã [localhost:3000](http://localhost:3000) ã§èµ·åããŸãããã®ãµãŒããŒã¯ããããªããŒãã£ã³ã°ããŸãã |
+| nuxt build | ã¢ããªã±ãŒã·ã§ã³ã Webpack ã§ãã«ãããJS ãš CSS ããããã¯ã·ã§ã³åãã«ãããã¡ã€ããŸãã |
+| nuxt start | ãããã¯ã·ã§ã³ã¢ãŒãã§ãµãŒããŒãèµ·åããŸãïŒ`nuxt build` åŸã«å®è¡ããŠãã ããïŒ |
+| nuxt generate | ã¢ããªã±ãŒã·ã§ã³ããã«ãããŠãã«ãŒãããšã« HTML ãã¡ã€ã«ãçæããŸãïŒéçãã¡ã€ã«ã®ãã¹ãã£ã³ã°ã«çšããŸãïŒ |
+
+
-You should put these commands in the `package.json`:
+ãããã®ã³ãã³ãã `package.json` ã«æžããŠãããšè¯ãã§ããã:
```json
"scripts": {
@@ -25,32 +41,55 @@ You should put these commands in the `package.json`:
}
```
-Then, you can launch your commands via `npm run ` (example: `npm run dev`).
+
+
+ããããã°ã`npm run ` çµç±ã§ Nuxt.js ã®ã³ãã³ããå®è¡ããããšãã§ããŸãïŒäŸ: `npm run dev`ïŒ
-## Development Environment
+
-To launch Nuxt in development mode with the hot reloading:
+## éçºç°å¢
+
+
+
+Nuxt.js ãããããªããŒãã£ã³ã°ããéçºã¢ãŒãã§èµ·åããã«ã¯:
+
+
+
+
+
+
```bash
nuxt
-// OR
+// ãŸãã¯
npm run dev
```
-## Production Deployment
+
+
+## ãããã¯ã·ã§ã³ç°å¢ãžã®ãããã€
+
+
-Nuxt.js lets your choose between 2 modes to deploy your application: Server Rendered or Static Generated.
+Nuxt.js ã§ã¯ã¢ããªã±ãŒã·ã§ã³ããããã€ããããã® 2ã€ã®ã¢ãŒãããéžã¹ãŸã: ãµãŒããŒãµã€ãã¬ã³ããªã³ã°ããã¢ãŒããšéçãªãã¡ã€ã«ãçæããã¢ãŒãã§ãã
-### Server Rendered Deployment
+
-To deploy, instead of running nuxt, you probably want to build ahead of time. Therefore, building and starting are separate commands:
+### ãµãŒããŒãµã€ãã¬ã³ããªã³ã°ã¢ãŒãã®ãããã€
+
+
+
+ãããã€ããããã«ãnuxt ã³ãã³ããå®è¡ããã®ã§ã¯ãªããåãã£ãŠãã«ãããããšæãããã§ãããããã®ãããªçç±ããããã«ããšãµãŒããŒèµ·åã¯åé¢ãããŠããŸã:
```bash
nuxt build
nuxt start
```
-The `package.json` like follows is recommended:
+
+
+`package.json` ã§ã¯äžèšã®ããã«èšè¿°ããããšãæšå¥šãããŠããŸã:
+
```json
{
"name": "my-app",
@@ -65,20 +104,34 @@ The `package.json` like follows is recommended:
}
```
-Note: we recommend putting `.nuxt` in `.npmignore` or `.gitignore`.
+
+
+ã¡ã¢: `.npmignore` ãŸã㯠`.gitignore` å
ã« `.nuxt` ãæžããŠããããšããå§ãããŸãã
+
+
-### Static Generated Deployment
+### éçã«çæããããã¡ã€ã«ã®ãããã€
-Nuxt.js gives you the possibility to host your web application on any static hosting.
+
-To generate our web application into static files:
+Nuxt.js ã«ãããéçãªãã¡ã€ã«ã®ãã¹ãã£ã³ã°ãµãŒãã¹ã§ããŠã§ãã¢ããªã±ãŒã·ã§ã³ããã¹ãããããšãã§ããŸãã
+
+
+
+ã¢ããªã±ãŒã·ã§ã³ããéçãªãã¡ã€ã«ãçæããã«ã¯:
```bash
npm run generate
```
-It will create a `dist` folder with everything inside ready to be deployed on a static hosting.
+
+
+`dist` ãã©ã«ããäœæããããã®äžã«éçãªãã¡ã€ã«ã®ãã¹ãã£ã³ã°ãµãŒãã¹ã«ãããã€ãããã¹ããã®ããã¹ãŠå
¥ããŸãã
+
+
+
+ãããžã§ã¯ãã§ [åçãªã«ãŒãã£ã³ã°](/guide/routing#dynamic-routes) ã䜿ã£ãŠããå Žåã¯ãNuxt.js ã«åçãªã«ãŒãã£ã³ã°ãçæãããããã« [generate èšå®](/api/configuration-generate) ã«ç®ãéããŠãã ããã
-If you have a project with [dynamic routes](/guide/routing#dynamic-routes), take a look at the [generate configuration](/api/configuration-generate) to tell nuxt.js how to generate these dynamic routes.
+
-When generating your web application with `nuxt generate`, [the context](/api#context) given to [data()](/guide/async-data#the-data-method) and [fetch()](/guide/vuex-store#the-fetch-method) will not have `req` and `res`.
+`nuxt generate` ã§ãŠã§ãã¢ããªã±ãŒã·ã§ã³ãçæãããšãã¯ã[data()](/guide/async-data#the-data-method) ã [fetch()](/guide/vuex-store#the-fetch-method) ã«æž¡ããã [context](/api#context) 㯠`req` åã³ `res` ãæã¡ãŸããã
From 00d11a2200aef5abf5ff4c9c27583613895b8e98 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Sat, 25 Feb 2017 19:13:33 +0900
Subject: [PATCH 022/129] Make ja/guide/commands.md natural
---
ja/guide/commands.md | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/ja/guide/commands.md b/ja/guide/commands.md
index 7c473353b..c35da435e 100644
--- a/ja/guide/commands.md
+++ b/ja/guide/commands.md
@@ -1,6 +1,6 @@
---
title: ã³ãã³ã
-description: Nuxt.js ã¯ã²ãšãšããã®äŸ¿å©ã³ãã³ããåããŠããŸããéçºçšéã®ãã®ããããã¯ã·ã§ã³çšéã®ãã®ããããŸãã
+description: Nuxt.js ã¯äŸ¿å©ã³ãã³ãã®ã»ãããåããŠããŸããéçºçšéã®ãã®ããããã¯ã·ã§ã³çšéã®ãã®ãå«ãŸããŠããŸãã
---
@@ -8,7 +8,7 @@ description: Nuxt.js ã¯ã²ãšãšããã®äŸ¿å©ã³ãã³ããåããŠããŸ
-> Nuxt.js ã¯ã²ãšãšããã®äŸ¿å©ã³ãã³ããåããŠããŸããéçºçšéã®ãã®ããããã¯ã·ã§ã³çšéã®ãã®ããããŸãã
+> Nuxt.js ã¯äŸ¿å©ã³ãã³ãã®ã»ãããåããŠããŸããéçºçšéã®ãã®ããããã¯ã·ã§ã³çšéã®ãã®ãå«ãŸããŠããŸãã
@@ -79,7 +79,7 @@ Nuxt.js ã§ã¯ã¢ããªã±ãŒã·ã§ã³ããããã€ããããã® 2ã€ã®ã¢
-ãããã€ããããã«ãnuxt ã³ãã³ããå®è¡ããã®ã§ã¯ãªããåãã£ãŠãã«ãããããšæãããã§ãããããã®ãããªçç±ããããã«ããšãµãŒããŒèµ·åã¯åé¢ãããŠããŸã:
+ãããã€ããããã«ãnuxt ã³ãã³ããå®è¡ããã®ã§ã¯ãªããåãã£ãŠãã«ãããŠãããããšæãããã§ãããããã®ãããªçç±ããããã«ãã³ãã³ããšãµãŒããŒèµ·åã®ã³ãã³ãã¯åãããŠããŸã:
```bash
nuxt build
@@ -106,7 +106,7 @@ nuxt start
-ã¡ã¢: `.npmignore` ãŸã㯠`.gitignore` å
ã« `.nuxt` ãæžããŠããããšããå§ãããŸãã
+ã¡ã¢: `.npmignore` ãŸã㯠`.gitignore` å
ã« `.nuxt` ãæžããŠãããšè¯ãã§ãããã
@@ -114,7 +114,7 @@ nuxt start
-Nuxt.js ã«ãããéçãªãã¡ã€ã«ã®ãã¹ãã£ã³ã°ãµãŒãã¹ã§ããŠã§ãã¢ããªã±ãŒã·ã§ã³ããã¹ãããããšãã§ããŸãã
+Nuxt.js ã䜿ããšãã©ããªéçãªãã¡ã€ã«ã®ãã¹ãã£ã³ã°ãµãŒãã¹ã§ãããŠã§ãã¢ããªã±ãŒã·ã§ã³ããã¹ãããããšãã§ããŸãã
@@ -134,4 +134,4 @@ npm run generate
-`nuxt generate` ã§ãŠã§ãã¢ããªã±ãŒã·ã§ã³ãçæãããšãã¯ã[data()](/guide/async-data#the-data-method) ã [fetch()](/guide/vuex-store#the-fetch-method) ã«æž¡ããã [context](/api#context) 㯠`req` åã³ `res` ãæã¡ãŸããã
+`nuxt generate` ã§ãŠã§ãã¢ããªã±ãŒã·ã§ã³ãçæãããšãã¯ã[data()](/guide/async-data#the-data-method) ã [fetch()](/guide/vuex-store#the-fetch-method) ã«æž¡ããã [context](/api#context) 㯠`req` åã³ `res` ãæããªããªããŸãã
From 1db63435317dd89da165d6c3a2a94301cf032b26 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Sat, 25 Feb 2017 19:17:17 +0900
Subject: [PATCH 023/129] Improve ja/guide/index.md
---
ja/guide/index.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ja/guide/index.md b/ja/guide/index.md
index b4f2ba85e..36e44342e 100644
--- a/ja/guide/index.md
+++ b/ja/guide/index.md
@@ -124,7 +124,7 @@ Nuxt.js ããããžã§ã¯ãã® UI ã¬ã³ããªã³ã°å
šäœãæ
ããã¬ãŒ
-`nuxt generate` ãšãã Nuxt.js ã®å€§ããªã€ãããŒã·ã§ã³ããã£ãŠããŸãã
+Nuxt.js ã«ãã倧ããªã€ãããŒã·ã§ã³ããã£ãŠããŸãããããã `nuxt generate` ã§ãã
@@ -185,4 +185,4 @@ Nuxt.js ããããžã§ã¯ãã® UI ã¬ã³ããªã³ã°å
šäœãæ
ããã¬ãŒ
-ããã«é²ã㊠`nuxt generate` ã§çæããã E ã³ããŒã¹ã®ãŠã§ãã¢ããªã±ãŒã·ã§ã³ãèããŠã¿ãŸãããããã®ã¢ããªã±ãŒã·ã§ã³ã¯ CDN ã§ãã¹ããããååãåšåº«åãã«ãªã£ããå
¥è·ãããããããã³ã«ã¢ããªã±ãŒã·ã§ã³ãåçæãããŸãããŠãŒã¶ãŒãã¢ããªã±ãŒã·ã§ã³é·ç§»ããŠããéã«ãåšåº«ã®ç¶æ
ãïŒåçæã®ãããã§ïŒææ°ã®ç¶æ
ã«ãªãã®ã§ããã€ãŸãããµãŒããŒã§ãããããªã€ã³ã¹ã¿ã³ã¹ãèµ·åãããããã£ãã·ã¥ãæã£ããããå¿
èŠããªããªãã®ã§ãïŒ
+ããã«é²ã㊠`nuxt generate` ã§çæããã E ã³ããŒã¹ã®ãŠã§ãã¢ããªã±ãŒã·ã§ã³ãèããŠã¿ãŸãããããã®ã¢ããªã±ãŒã·ã§ã³ã¯ CDN ã§ãã¹ããããååãåšåº«åãã«ãªã£ããå
¥è·ãããããããã³ã«ã¢ããªã±ãŒã·ã§ã³ãåçæãããŸãããŠãŒã¶ãŒãã¢ããªã±ãŒã·ã§ã³é·ç§»ããŠããéã«ãåšåº«ã®ç¶æ
ãïŒåçæã®ãããã§ïŒææ°ã®ç¶æ
ã«ãªãã®ã§ããã€ãŸãããµãŒããŒã§ãããããªã€ã³ã¹ã¿ã³ã¹ãèµ·åãããããã£ãã·ã¥ãæã£ããããå¿
èŠããããªãã®ã§ãïŒ
From 41fc72a191ce171b89628401bcb3f3e5b25a1611 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Sat, 25 Feb 2017 19:38:34 +0900
Subject: [PATCH 024/129] Make ja/guide/installation.md natural
---
ja/guide/installation.md | 24 +++++++++++++-----------
1 file changed, 13 insertions(+), 11 deletions(-)
diff --git a/ja/guide/installation.md b/ja/guide/installation.md
index 3eb79558f..75ee5510a 100644
--- a/ja/guide/installation.md
+++ b/ja/guide/installation.md
@@ -1,6 +1,6 @@
---
title: ã€ã³ã¹ããŒã«
-description: Nuxt.js is really easy to get started with. A simple project only need the `nuxt` dependency.
+description: Nuxt.js ã¯ãšãŠãç°¡åã«å§ããããŸããã·ã³ãã«ãªãããžã§ã¯ãã§ã¯å¿
èŠãªäŸåã©ã€ãã©ãªã¯ `nuxt` ã ãã§ãã
---
@@ -8,7 +8,7 @@ description: Nuxt.js is really easy to get started with. A simple project only n
-Nuxt.js ã¯ãšãŠãç°¡åã«å§ããããŸããã·ã³ãã«ãªãããžã§ã¯ãã§ã¯å¿
èŠãªãã®ã¯ `nuxt` ã ãã§ãã
+Nuxt.js ã¯ãšãŠãç°¡åã«å§ããããŸããã·ã³ãã«ãªãããžã§ã¯ãã§ã¯å¿
èŠãªäŸåã©ã€ãã©ãªã¯ `nuxt` ã ãã§ãã
@@ -16,7 +16,7 @@ Nuxt.js ã¯ãšãŠãç°¡åã«å§ããããŸããã·ã³ãã«ãªãããžã§ã¯
-çŽ æ©ãã¹ã¿ãŒãã§ããããã«ãããããNuxt.js ããŒã 㯠[ã¹ã¿ãŒã¿ãŒãã³ãã¬ãŒã](https://github.com/nuxt/starter) ãäœããŸããã
+çŽ æ©ãã¹ã¿ãŒãã§ããããã«ãããããNuxt.js ããŒã 㯠[ã¹ã¿ãŒã¿ãŒãã³ãã¬ãŒã](https://github.com/nuxt/starter) ãçšæããŸããã
@@ -49,11 +49,11 @@ $ npm run dev
-ãããšã¢ããªã±ãŒã·ã§ã³ã¯ http://localhost:3000 ã§åããŸãã
+ãããšã¢ããªã±ãŒã·ã§ã³ã¯ http://localhost:3000 ã§åããŠããŸãã
-Nuxt.js 㯠`pages` ãã£ã¬ã¯ããªå
ã®ãã¡ã€ã«ã®æŽæ°ãç£èŠããŸãããã®ããæ°ããããŒãžã远å ããå Žåã«ã¢ããªã±ãŒã·ã§ã³ãåèµ·åããå¿
èŠã¯ãããŸãã
+Nuxt.js 㯠`pages` ãã£ã¬ã¯ããªå
ã®ãã¡ã€ã«ã®æŽæ°ãç£èŠããŸãããã®ãããæ°ããããŒãžã远å ãããšãã«ã¢ããªã±ãŒã·ã§ã³ãåèµ·åããå¿
èŠã¯ãããŸãã
@@ -65,7 +65,7 @@ $ npm run dev
-Nuxt.js ã¢ããªã±ãŒã·ã§ã³ãã¹ã¯ã©ããããäœãããšããšãŠãç°¡åã§ãå¿
èŠãªãã®ã¯ *1ã€ã®ãã¡ã€ã«ãš 1ã€ã®ãã£ã¬ã¯ããª* ã ãã§ããã¢ããªã±ãŒã·ã§ã³ã§åãã空ã®ãã£ã¬ã¯ããªãäœããŸããã:
+Nuxt.js ã¢ããªã±ãŒã·ã§ã³ãã¹ã¯ã©ããããäœãããšããšãŠãç°¡åã§ãå¿
èŠãªãã®ã¯ *1ã€ã®ãã¡ã€ã«ãš 1ã€ã®ãã£ã¬ã¯ããª* ã ãã§ãããŸãã¯ã¢ããªã±ãŒã·ã§ã³ã§åãã空ã®ãã£ã¬ã¯ããªãäœããŸããã:
```bash
$ mkdir
@@ -76,11 +76,13 @@ $ cd
*ã¡ã¢: `` ã®ç®æã¯çœ®ãæããŠãã ããã*
-### The package.json
+
+
+### package.json
-`nuxt` ãã©ã®ããã«èµ·åããããæå®ããããã« `package.json` ãã¡ã€ã«ãå¿
èŠã§ãã
+`nuxt` ã³ãã³ãã䜿ãããã«æå®ãã `package.json` ãã¡ã€ã«ãå¿
èŠã§ãïŒè𳿳š: Nuxt.js ã¯éçºãµãŒããŒãèµ·åãã `nuxt` ã³ãã³ããçšæããŠããŸãïŒ:
```json
{
@@ -93,7 +95,7 @@ $ cd
-`npm run dev` ãããš `scripts` ã Nuxt.js ãèµ·åãããŸãã
+äžã®ããã«æžããŠããã° `npm run dev` ã§ Nuxt.js ãèµ·åã§ããŸãã
@@ -101,7 +103,7 @@ $ cd
-äžæŠ `package.json` ãäœæããããšãNPM ã«ãã£ãŠãããžã§ã¯ãã« `nuxt` ã远å ãããŸã:
+`package.json` ãäœæããåŸããã«ã`nuxt` ã NPM çµç±ã§ãããžã§ã¯ã远å ããŸããã:
```bash
npm install --save nuxt
@@ -113,7 +115,7 @@ npm install --save nuxt
-Nuxt.js 㯠`pages` ãã£ã¬ã¯ããªå
ã®å
šãŠã® `*.vue` ãã¡ã€ã«ãããã¡ã€ã«ããšã«ã¢ããªã±ãŒã·ã§ã³ã®ã²ãšã€ã®ã«ãŒããšããŠå€æããŸãã
+Nuxt.js 㯠`pages` ãã£ã¬ã¯ããªå
ã® `*.vue` ãã¡ã€ã«ã«ã€ããŠãåãã¡ã€ã«ãã¢ããªã±ãŒã·ã§ã³ã®ã²ãšã€ã®ã«ãŒãã«å¯Ÿå¿ãããã®ãšããŠå€æããŸãã
From 56e3995dfa5eea5057940612aef89869b896ae54 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Sat, 25 Feb 2017 20:49:50 +0900
Subject: [PATCH 025/129] Make ja/guide/directory-structure.md natural
---
ja/guide/directory-structure.md | 38 ++++++++++++++++-----------------
1 file changed, 19 insertions(+), 19 deletions(-)
diff --git a/ja/guide/directory-structure.md b/ja/guide/directory-structure.md
index f648e0365..2f0fff11c 100644
--- a/ja/guide/directory-structure.md
+++ b/ja/guide/directory-structure.md
@@ -16,7 +16,7 @@ description: ããã©ã«ãã® Nuxt.js ã¢ããªã±ãŒã·ã§ã³ã®æ§é ã¯ã
-### ã¢ã»ãããã£ã¬ã¯ããª
+### assets ãã£ã¬ã¯ããª
@@ -24,19 +24,19 @@ description: ããã©ã«ãã® Nuxt.js ã¢ããªã±ãŒã·ã§ã³ã®æ§é ã¯ã
-ã¢ã»ãããã¡ã€ã«ã®çµ±åã«ã€ããŠããæ·±ãçè§£ããã«ã¯ [ãã¡ãã®ããã¥ã¡ã³ã](/guide/assets) ãåç
§ããŠãã ããã
+ã¢ã»ããã®åãæ±ãã«ã€ããŠããæ·±ãçè§£ããã«ã¯ [ã¢ã»ããã«é¢ããããã¥ã¡ã³ã](/guide/assets) ãåç
§ããŠãã ããã
-### ã³ã³ããŒãã³ããã£ã¬ã¯ããª
+### components ãã£ã¬ã¯ããª
-`components` ãã£ã¬ã¯ããªã«ã¯ Vue.js ã®ã³ã³ããŒãã³ããã¡ã€ã«ãå
¥ããŸããNuxt.js ã¯ãããã®ã³ã³ããŒãã³ãã® data ã¡ãœããã«é絊ããŸããïŒèš³ã«èªä¿¡ãªããåæã¯ Nuxt.js doesn't supercharge the data method on these components.ïŒ
+`components` ãã£ã¬ã¯ããªã«ã¯ Vue.js ã®ã³ã³ããŒãã³ããã¡ã€ã«ãå
¥ããŸããNuxt.js 㯠`components` ãã£ã¬ã¯ããªå
ã®ã³ã³ããŒãã³ãã® data ã¡ãœããã«ã€ããŠã¯æãå ããŸããã
-### ã¬ã€ã¢ãŠããã£ã¬ã¯ããª
+### layouts ãã£ã¬ã¯ããª
@@ -48,7 +48,7 @@ _ãã®ãã£ã¬ã¯ããªåã¯å€æŽã§ããŸããã_
-ã¬ã€ã¢ãŠããã¡ã€ã«ã®çµ±åã«ã€ããŠããæ·±ãçè§£ããã«ã¯ [ãã¡ãã®ããã¥ã¡ã³ã](/guide/views#layouts) ãåç
§ããŠãã ããã
+ã¬ã€ã¢ãŠãã®åãæ±ãã€ããŠããæ·±ãçè§£ããã«ã¯ [ã¬ã€ã¢ãŠãã«é¢ããããã¥ã¡ã³ã](/guide/views#layouts) ãåç
§ããŠãã ããã
@@ -58,11 +58,11 @@ _Coming soon_
-### ããŒãžãã£ã¬ã¯ããª
+### pages ãã£ã¬ã¯ããª
-`pages` ãã£ã¬ã¯ããªã«ã¯ã¢ããªã±ãŒã·ã§ã³ã®ãã¥ãŒåã³ã«ãŒãã£ã³ã°ãã¡ã€ã«ãå
¥ããŸããNuxt.js ãã¬ãŒã ã¯ãŒã¯ã¯ãã®ãã£ã¬ã¯ããªå
ã®å
šãŠã® `.vue` ãã¡ã€ã«ãèªã¿èŸŒã¿ãã¢ããªã±ãŒã·ã§ã³ã®ã«ãŒã¿ãŒãäœæããŸãã
+`pages` ãã£ã¬ã¯ããªã«ã¯ã¢ããªã±ãŒã·ã§ã³ã®ãã¥ãŒåã³ã«ãŒãã£ã³ã°ãã¡ã€ã«ãå
¥ããŸããNuxt.js ãã¬ãŒã ã¯ãŒã¯ã¯ãã®ãã£ã¬ã¯ããªå
ã®ãã¹ãŠã® `.vue` ãã¡ã€ã«ãèªã¿èŸŒã¿ãã¢ããªã±ãŒã·ã§ã³ã®ã«ãŒã¿ãŒãäœæããŸãã
@@ -70,11 +70,11 @@ _ãã®ãã£ã¬ã¯ããªåã¯å€æŽã§ããŸããã_
-ããŒãžãã¡ã€ã«ã®çµ±åã«ã€ããŠããæ·±ãçè§£ããã«ã¯ [ãã¡ãã®ããã¥ã¡ã³ã](/guide/views) ãåç
§ããŠãã ããã
+ããŒãžã®åãæ±ãã«ã€ããŠããæ·±ãçè§£ããã«ã¯ [ããŒãžã«é¢ããããã¥ã¡ã³ã](/guide/views) ãåç
§ããŠãã ããã
-### ãã©ã°ã€ã³ãã£ã¬ã¯ããª
+### plugins ãã£ã¬ã¯ããª
@@ -82,11 +82,11 @@ _ãã®ãã£ã¬ã¯ããªåã¯å€æŽã§ããŸããã_
-ãã©ã°ã€ã³ã®çµ±åã«ã€ããŠããæ·±ãçè§£ããã«ã¯ [ãã¡ãã®ããã¥ã¡ã³ã](/guide/plugins) ãåç
§ããŠãã ããã
+ãã©ã°ã€ã³ã«ã€ããŠããæ·±ãçè§£ããã«ã¯ [ãã©ã°ã€ã³ã«é¢ããããã¥ã¡ã³ã](/guide/plugins) ãåç
§ããŠãã ããã
-### ã¹ã¿ãã£ãã¯ãã£ã¬ã¯ããª
+### static ãã£ã¬ã¯ããª
@@ -102,15 +102,15 @@ _ãã®ãã£ã¬ã¯ããªåã¯å€æŽã§ããŸããã_
-éçãªãã¡ã€ã«ã®çµ±åã«ã€ããŠããæ·±ãçè§£ããã«ã¯ [ãã¡ãã®ããã¥ã¡ã³ã](/guide/assets#static) ãåç
§ããŠãã ããã
+éçãªãã¡ã€ã«ã®åãæ±ãã«ã€ããŠããæ·±ãçè§£ããã«ã¯ [éçãªãã¡ã€ã«ã«é¢ããããã¥ã¡ã³ã](/guide/assets#static) ãåç
§ããŠãã ããã
-### ã¹ãã¢ãã£ã¬ã¯ããª
+### store ãã£ã¬ã¯ããª
-`store` ãã£ã¬ã¯ããªã«ã¯ [Vuex Store](http://vuex.vuejs.org) ã®ãã¡ã€ã«ãå
¥ããŸããVuex Store 㯠Nuxt.js ãã¬ãŒã ã¯ãŒã¯ã§ã¯ãªãã·ã§ã³ãšããŠå®è£
ãããŠããŸãããã®ãã£ã¬ã¯ããªå
ã« `index.js` ãã¡ã€ã«ãäœæãããšãNuxt.js ãã¬ãŒã ã¯ãŒã¯å
ã§ãã®ãªãã·ã§ã³ãèªåçã«æå¹ã«ãªããŸãã
+`store` ãã£ã¬ã¯ããªã«ã¯ [Vuex ã¹ãã¢](http://vuex.vuejs.org) ã®ãã¡ã€ã«ãå
¥ããŸããVuex ã¹ãã¢ã¯ Nuxt.js ãã¬ãŒã ã¯ãŒã¯ã§ã¯ãªãã·ã§ã³ãšããŠå®è£
ãããŠããŸãããã®ãã£ã¬ã¯ããªå
ã« `index.js` ãã¡ã€ã«ãäœæãããšãNuxt.js ãã¬ãŒã ã¯ãŒã¯å
ã§ãã®ãªãã·ã§ã³ãèªåçã«æå¹ã«ãªããŸãã
@@ -118,7 +118,7 @@ _ãã®ãã£ã¬ã¯ããªåã¯å€æŽã§ããŸããã_
-ã¹ãã¢ãã¡ã€ã«ã®çµ±åã«ã€ããŠããæ·±ãçè§£ããã«ã¯ [ãã¡ãã®ããã¥ã¡ã³ã](/guide/vuex-store) ãåç
§ããŠãã ããã
+ã¹ãã¢ã®åãæ±ãã«ã€ããŠããæ·±ãçè§£ããã«ã¯ [ã¹ãã¢ã«é¢ããããã¥ã¡ã³ã](/guide/vuex-store) ãåç
§ããŠãã ããã
@@ -134,7 +134,7 @@ _ãã®ãã¡ã€ã«åã¯å€æŽã§ããŸããã_
-nuxt.config.js ã«ã€ããŠããæ·±ãçè§£ããã«ã¯ [ãã¡ãã®ããã¥ã¡ã³ã](/guide/configuration) ãåç
§ããŠãã ããã
+nuxt.config.js ã«ã€ããŠããæ·±ãçè§£ããã«ã¯ [nuxt.config.js ã«é¢ããããã¥ã¡ã³ã](/guide/configuration) ãåç
§ããŠãã ããã
@@ -181,5 +181,5 @@ _ãã®ãã¡ã€ã«åã¯å€æŽã§ããŸããã_
| ãšã€ãªã¢ã¹ | äœ¿ãæ¹ | 説æ |
|-------|------|--------------|
-| ~store | `const store = require('~store')` | `vuex` ã¹ãã¢ã®ã€ã³ã¹ã¿ã³ã¹ãã€ã³ããŒãããŸã |
-| ~router | `const router = require('~router')`| `vue-router` ã®ã€ã³ã¹ã¿ã³ã¹ãã€ã³ããŒãããŸã |
+| ~store | `const store = require('~store')` | `vuex` ã¹ãã¢ã®ã€ã³ã¹ã¿ã³ã¹ãã€ã³ããŒãããŸãã |
+| ~router | `const router = require('~router')`| `vue-router` ã®ã€ã³ã¹ã¿ã³ã¹ãã€ã³ããŒãããŸãã |
From 9360a078d6c5a70fef1f54d2fab47fb05b2a1698 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Sat, 25 Feb 2017 21:06:00 +0900
Subject: [PATCH 026/129] Make ja/guide/configuration.md natural
---
ja/guide/configuration.md | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/ja/guide/configuration.md b/ja/guide/configuration.md
index 15250af2a..6a2aee2be 100644
--- a/ja/guide/configuration.md
+++ b/ja/guide/configuration.md
@@ -1,6 +1,6 @@
---
title: èšå®
-description: Nuxt.js ã§ã¯ããã©ã«ãã®èšå®ã§ã»ãšãã©ã®ãŠãŒã¹ã±ãŒã¹ãã«ããŒããŠããŸããããã nuxt.config.js ã§èšå®ãäžæžãããããšãã§ããŸãã
+description: Nuxt.js ã§ã¯ããã©ã«ãã®èšå®ã§ã»ãšãã©ã®ãŠãŒã¹ã±ãŒã¹ãã«ããŒããŠããŸãã nuxt.config.js ã§èšå®ãäžæžãããããšãã§ããŸãã
---
@@ -8,13 +8,13 @@ description: Nuxt.js ã§ã¯ããã©ã«ãã®èšå®ã§ã»ãšãã©ã®ãŠãŒã¹
-> Nuxt.js ã§ã¯ããã©ã«ãã®èšå®ã§ã»ãšãã©ã®ãŠãŒã¹ã±ãŒã¹ãã«ããŒããŠããŸããããã nuxt.config.js ã§èšå®ãäžæžãããããšãã§ããŸãã
+> Nuxt.js ã§ã¯ããã©ã«ãã®èšå®ã§ã»ãšãã©ã®ãŠãŒã¹ã±ãŒã¹ãã«ããŒããŠããŸãã nuxt.config.js ã§èšå®ãäžæžãããããšãã§ããŸãã
### build
-ãã®ãªãã·ã§ã³ã§ãã¢ããªã±ãŒã·ã§ã³ã®ãã³ãã«ãã¡ã€ã«ã®ãµã€ãºãåæžããããã«çæããã vendor.bundle.js ãã¡ã€ã«å
ã«ã¢ãžã¥ãŒã«ã远å ã§ããŸããå€éšã®ã¢ãžã¥ãŒã«ã䜿ããšãã«åœ¹ã«ç«ã¡ãŸãã
+ãã®ãªãã·ã§ã³ã§ vendor.bundle.js ãã¡ã€ã«ã«ã¢ãžã¥ãŒã«ã远å ã§ããŸããvendor.bundle.js 㯠app ãã³ãã«ãã¡ã€ã«ã®ãµã€ãºãåæžããããã«çæããããã®ã§ããå€éšã®ã¢ãžã¥ãŒã«ã䜿ããšãã«åœ¹ç«ã¡ãŸãã
@@ -66,6 +66,8 @@ description: Nuxt.js ã§ã¯ããã©ã«ãã®èšå®ã§ã»ãšãã©ã®ãŠãŒã¹
ãã®ãªãã·ã§ã³ã§ãNuxt.js ã HTML ãã¡ã€ã«ã«å€æããã¢ããªã±ãŒã·ã§ã³å
ã®åçãªã«ãŒãã£ã³ã°ã®ããã®ãã©ã¡ãŒã¿ãæå®ã§ããŸããïŒèš³ã«èªä¿¡ãªããåæã¯ This option lets you to define each params value for every dynamic routes in your application that Nuxt.js transforms into HTML files.ïŒ
+ãã®ãªãã·ã§ã³ã§ãã¢ããªã±ãŒã·ã§ã³å
ã®åçãªã«ãŒãã£ã³ã°ããšã«ãã©ã¡ãŒã¿ãæå®ã§ããŸããNuxt.js ã¯ãããã®ãã©ã¡ãŒã¿ã倿ã㊠HTML ãã¡ã€ã«ã«å
¥ããŸãã
+
[generate ãªãã·ã§ã³ã«é¢ããããã¥ã¡ã³ã](/api/configuration-generate)
@@ -124,7 +126,7 @@ description: Nuxt.js ã§ã¯ããã©ã«ãã®èšå®ã§ã»ãšãã©ã®ãŠãŒã¹
-ãã®ãªãã·ã§ã³ã§ãNuxt.js ã®ãœãŒã¹ãã£ã¬ã¯ããªãæå®ã§ããŸãã
+ãã®ãªãã·ã§ã³ã§ãã¢ããªã±ãŒã·ã§ã³ã®ãœãŒã¹ãã£ã¬ã¯ããªãæå®ã§ããŸãã
@@ -134,7 +136,7 @@ description: Nuxt.js ã§ã¯ããã©ã«ãã®èšå®ã§ã»ãšãã©ã®ãŠãŒã¹
-ãã®ãªãã·ã§ã³ã§ãããŒãžéã®é·ç§»ã®ããã©ã«ãèšå®ãæå®ã§ããŸãã
+ãã®ãªãã·ã§ã³ã§ãããŒãžéã®ãã©ã³ãžã·ã§ã³ã®ããã©ã«ãèšå®ãæå®ã§ããŸãã
From f792a706152c4b80fd63bd583ab455f2ec8ff7d2 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Sat, 25 Feb 2017 21:18:44 +0900
Subject: [PATCH 027/129] Make ja/guide/routing.md natural
---
ja/guide/directory-structure.md | 2 +-
ja/guide/routing.md | 12 ++++++------
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/ja/guide/directory-structure.md b/ja/guide/directory-structure.md
index 2f0fff11c..ffb40288f 100644
--- a/ja/guide/directory-structure.md
+++ b/ja/guide/directory-structure.md
@@ -52,7 +52,7 @@ _ãã®ãã£ã¬ã¯ããªåã¯å€æŽã§ããŸããã_
-### ããã«ãŠã§ã¢ãã£ã¬ã¯ããª
+### middleware ãã£ã¬ã¯ããª
_Coming soon_
diff --git a/ja/guide/routing.md b/ja/guide/routing.md
index 0e31539a8..18734dbc5 100644
--- a/ja/guide/routing.md
+++ b/ja/guide/routing.md
@@ -58,7 +58,7 @@ router: {
-ãã©ã¡ãŒã¿ã䜿ã£ãŠåçãªã«ãŒãã£ã³ã°ãå®çŸ©ããã«ã¯ã.vue ãã¡ã€ã«åãŸãã¯ãã£ã¬ã¯ããªåã« **ã¢ã³ããŒã¹ã³ã¢ã®ãã¬ãã£ãã¯ã¹** ãä»ããå¿
èŠããããŸãã
+ãã©ã¡ãŒã¿ã䜿ã£ãŠåçãªã«ãŒãã£ã³ã°ãå®çŸ©ããã«ã¯ .vue ãã¡ã€ã«åãŸãã¯ãã£ã¬ã¯ããªåã« **ã¢ã³ããŒã¹ã³ã¢ã®ãã¬ãã£ãã¯ã¹** ãä»ããå¿
èŠããããŸãã
@@ -107,7 +107,7 @@ router: {
-`user-id` ãšåä»ããããã«ãŒãã« `:id?` ãšãããã¹ããããŸãããããã¯ãã® `:id` ãå¿
é ã§ã¯ãªãããšã衚ããŸããããå¿
é ã«ãããå Žå㯠`users` ãã£ã¬ã¯ããªå
ã« `index.vue` ãã¡ã€ã«ãäœæããŠãã ããïŒè𳿳š: `users/_id` ãã£ã¬ã¯ããªå
ã« `index.vue` ãã¡ã€ã«ãäœæããã®ã§ã¯ïŒïŒ
+`user-id` ãšåä»ããããã«ãŒãã« `:id?` ãšãããã¹ããããŸãããããã¯ãã® `:id` ãå¿
é ã§ã¯ãªãããšã衚ããŸããããå¿
é ã«ãããå Žå㯠`users/_id` ãã£ã¬ã¯ããªå
ã« `index.vue` ãã¡ã€ã«ãäœæããŠãã ããã
@@ -208,7 +208,7 @@ router: {
-ãã®ã·ããªãªã¯ããŸã远å ãã¹ãã§ã¯ãªãã®ã§ãããNuxt.js ã§ã¯åçãªèŠªã«ãŒãã£ã³ã°ã®äžã«åçãªåã«ãŒãã£ã³ã°ãæã€ããšãå¯èœã§ãïŒè𳿳š: ååéšåãããŸãèš³ããŸããã§ãããåæã¯ This scenario should not often append, but it is possible with Nuxt.js: having dynamic children inside dynamic parents.ïŒ
+ããŸãé »ç¹ã«äœ¿ãã¹ãã§ã¯ãããŸããããNuxt.js ã§ã¯åçãªèŠªã«ãŒãã£ã³ã°ã®äžã«åçãªåã«ãŒãã£ã³ã°ãæã€ããšãå¯èœã§ãã
@@ -287,7 +287,7 @@ Nuxt.js ã§ã¯ [<transition>](http://vuejs.org/v2/guide/transitions.html#T
-ã¢ããªã±ãŒã·ã§ã³ã®å
šãŠã®ããŒãžã§ãã§ãŒãããããã©ã³ãžã·ã§ã³ãå®çŸ©ã«ã¯ãã«ãŒãã£ã³ã°å
šäœã«é©çšãããŠãã CSS ãã¡ã€ã«ãå¿
èŠã§ãããŸã㯠`assets` ãã£ã¬ã¯ããªå
ã«ãã¡ã€ã«ãäœæãããšããããå§ããŸã:
+ã¢ããªã±ãŒã·ã§ã³ã®ãã¹ãŠã®ããŒãžã§ãã§ãŒãããããã©ã³ãžã·ã§ã³ãå®çŸ©ã«ã¯ãã«ãŒãã£ã³ã°å
šäœã«é©çšãããŠãã CSS ãã¡ã€ã«ãå¿
èŠã§ãããŸã㯠`assets` ãã£ã¬ã¯ããªå
ã«ãã¡ã€ã«ãäœæãããšããããå§ããŸã:
@@ -316,7 +316,7 @@ module.exports = {
-ãã©ã³ãžã·ã§ã³ã«ã€ããŠããæ·±ãçè§£ãããå Žå㯠[ãã©ã³ãžã·ã§ã³ãèšå®ãã API](/api/pages-transition) ãåç
§ããŠãã ããã
+ãã©ã³ãžã·ã§ã³ã«ã€ããŠããæ·±ãçè§£ãããå Žå㯠[ãã©ã³ãžã·ã§ã³èšå® API](/api/pages-transition) ãåç
§ããŠãã ããã
@@ -418,7 +418,7 @@ module.exports = {
-`stats` ããã«ãŠã§ã¢ã¯å
šãŠã®ã«ãŒã倿޿ã«åŒã³åºãããããã«ãªããŸãã
+`stats` ããã«ãŠã§ã¢ã¯ãã¹ãŠã®ã«ãŒã倿޿ã«åŒã³åºãããããã«ãªããŸãã
From 197b3ba29889beea457c503275e42e26d868869b Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Sat, 25 Feb 2017 21:31:04 +0900
Subject: [PATCH 028/129] Make ja/guide/views.md natural
---
ja/guide/views.md | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/ja/guide/views.md b/ja/guide/views.md
index 414577bc5..95c69838d 100644
--- a/ja/guide/views.md
+++ b/ja/guide/views.md
@@ -1,6 +1,6 @@
---
title: ãã¥ãŒ
-description: ãã¥ãŒã»ã¯ã·ã§ã³ã§ã¯ Nuxt.js ã¢ããªã±ãŒã·ã§ã³ã®ç¹å®ã®ã«ãŒãã«ããŒã¿ãšãã¥ãŒãèšå®ããããã«å¿
èŠãªããšå
šãŠã説æããŸãïŒããŒãžãã¬ã€ã¢ãŠããHTML ã® head ã¿ã°ã®ã¡ã¿æ
å ±ãªã©ãå«ã¿ãŸãïŒ
+description: ãã®ã»ã¯ã·ã§ã³ã§ã¯ Nuxt.js ã¢ããªã±ãŒã·ã§ã³ã®ç¹å®ã®ã«ãŒãã«ããŒã¿ãšãã¥ãŒãèšå®ããããã«å¿
èŠãªããšãã¹ãŠã説æããŸãïŒããŒãžãã¬ã€ã¢ãŠããHTML ã® head ã¿ã°ã®ã¡ã¿æ
å ±ãªã©ãå«ã¿ãŸãïŒ
---
@@ -8,7 +8,7 @@ description: ãã¥ãŒã»ã¯ã·ã§ã³ã§ã¯ Nuxt.js ã¢ããªã±ãŒã·ã§ã³ã®
-> ãã¥ãŒã»ã¯ã·ã§ã³ã§ã¯ Nuxt.js ã¢ããªã±ãŒã·ã§ã³ã®ç¹å®ã®ã«ãŒãã«ããŒã¿ãšãã¥ãŒãèšå®ããããã«å¿
èŠãªããšå
šãŠã説æããŸãïŒããŒãžãã¬ã€ã¢ãŠããHTML ã® head ã¿ã°ã®ã¡ã¿æ
å ±ãªã©ãå«ã¿ãŸãïŒ
+> ãã®ã»ã¯ã·ã§ã³ã§ã¯ Nuxt.js ã¢ããªã±ãŒã·ã§ã³ã®ç¹å®ã®ã«ãŒãã«ããŒã¿ãšãã¥ãŒãèšå®ããããã«å¿
èŠãªããšãã¹ãŠã説æããŸãïŒããŒãžãã¬ã€ã¢ãŠããHTML ã® head ã¿ã°ã®ã¡ã¿æ
å ±ãªã©ãå«ã¿ãŸãïŒ
@@ -16,7 +16,7 @@ description: ãã¥ãŒã»ã¯ã·ã§ã³ã§ã¯ Nuxt.js ã¢ããªã±ãŒã·ã§ã³ã®
-å
šãŠã®ããŒãžã³ã³ããŒãã³ã㯠Vue ã³ã³ããŒãã³ãã§ãããNuxt.js ã¯ãŠãããŒãµã«ãªã¢ããªã±ãŒã·ã§ã³ãæãç°¡åãªããæ¹ã§éçºããããšãå¯èœã«ããã«ãç¹å¥ãªããŒã远å ããŸãã
+ãã¹ãŠã®ããŒãžã³ã³ããŒãã³ã㯠Vue ã³ã³ããŒãã³ãã§ãããNuxt.js ã¯ãŠãããŒãµã«ãªã¢ããªã±ãŒã·ã§ã³ãæãç°¡åãªããæ¹ã§éçºããããšãå¯èœã«ããã«ãç¹å¥ãªããŒã远å ããŸãã
@@ -89,9 +89,9 @@ export default {
| 屿§ | 説æ |
|-----------|-------------|
-| data | æãéèŠãªããŒã§ãã [Vue data](https://vuejs.org/v2/api/#Options-Data) ãšåãæçŸ©ãæã£ãŠããŸãããããéåæã«åäœãããŸãåŒæ°ãšã㊠context ãåãåããŸããã©ã®ããã«åäœããããç¥ãã«ã¯ [éåæããŒã¿ã«é¢ããããã¥ã¡ã³ã](/guide/async-data) ãåç
§ããŠãã ããã |
+| data | æãéèŠãªããŒã§ãã [Vue.js ã® data ãªãã·ã§ã³](https://vuejs.org/v2/api/#Options-Data) ãšåãæçŸ©ãæã£ãŠããŸãããããïŒè𳿳š: Nuxt.js ã data ã«æãå ããŠããããïŒéåæã«åäœãããŸãåŒæ°ãšã㊠context ãåãåããŸããã©ã®ããã«åäœããããç¥ãã«ã¯ [éåæããŒã¿ã«é¢ããããã¥ã¡ã³ã](/guide/async-data) ãåç
§ããŠãã ããã |
| fetch | ããŒãžãã¬ã³ããªã³ã°ãããåã«ãããŒã¿ãã¹ãã¢ã«å
¥ããããã«äœ¿ããŸããã³ã³ããŒãã³ãã®ããŒã¿ãã»ããããããšä»¥å€ã¯ data ã¡ãœãããšäŒŒãŠããŸãã[ããŒãžã®ãã§ãã API ã«é¢ããããã¥ã¡ã³ã](/api/pages-fetch) ãåç
§ããŠãã ããã |
-| head | çŸåšã®ããŒãžã®ç¹å®ã®ã¡ã¿ã¿ã°ãèšå®ããŸãã[ããŒãžã® head API ã«é¢ããããã¥ã¡ã³ã](/api/pages-head) ãåç
§ããŠãã ããã |
+| head | çŸåšã®ããŒãžã®ç¹å®ã®ã¡ã¿ã¿ã°ãèšå®ããŸãã[ããŒãžã® head API](/api/pages-head) ãåç
§ããŠãã ããã |
| layout | `layouts` ãã£ã¬ã¯ããªå
ã®ã¬ã€ã¢ãŠããæå®ããŸãã[ããŒãžã®ã¬ã€ã¢ãŠã API ã«é¢ããããã¥ã¡ã³ã](/api/pages-layout) ãåç
§ããŠãã ããã |
| transition | ããŒãžã«ç¹å®ã®ãã©ã³ãžã·ã§ã³ãèšå®ããŸãã[ããŒãžã®ãã©ã³ãžã·ã§ã³ API ã«é¢ããããã¥ã¡ã³ã](/api/pages-transition) ãåç
§ããŠãã ããã |
| scrollToTop | ããŒãªã¢ã³ã§æå®ããããã©ã«ã㯠`false` ã§ããããŒãžãã¬ã³ããªã³ã°ããåã«ããããŸã§ã¹ã¯ããŒã«ããããåŠããæå®ããŸãããã㯠[ãã¹ãããã«ãŒãã£ã³ã°](/guide/routing#nested-routes) ã§äœ¿ãããŸãã |
@@ -100,7 +100,7 @@ export default {
-ããŒãžã®ããããã£ã®äœ¿ãæ¹ã«ã€ããŠããæ·±ãçè§£ããããšã㯠[ããŒãž API](/api) ãåç
§ããŠãã ããã
+ããŒãžã®ããããã£ã®äœ¿ãæ¹ã«ã€ããŠããæ·±ãçè§£ããã«ã¯ [ããŒãž API](/api) ãåç
§ããŠãã ããã
@@ -296,7 +296,7 @@ head: {
-head ã¡ãœããã«ã€ããŠããæ·±ãçè§£ããããã«ã¯ [head èšå® API](/api/configuration-head) ãåç
§ããŠãã ããã
+head ã¡ãœããã«ã€ããŠããæ·±ãçè§£ããã«ã¯ [head èšå® API](/api/configuration-head) ãåç
§ããŠãã ããã
@@ -308,4 +308,4 @@ head ã¡ãœããã«ã€ããŠããæ·±ãçè§£ããããã«ã¯ [head èšå® A
-åã³ã³ããŒãã³ãã§å©çšããããšãã«ã¡ã¿æ
å ±ãéè€ããŠããŸãããšãé¿ããããã« `hid` ããŒã§ãŠããŒã¯èå¥åãäžããŠãã ããããŸããããã«ã€ããŠããæ·±ãçè§£ããããã«ã¯ [ãã¡ã](https://github.com/declandewet/vue-meta#lists-of-tags) ãåç
§ããŠãã ããã
+åã³ã³ããŒãã³ãã§å©çšããããšãã«ã¡ã¿æ
å ±ãéè€ããŠããŸãããšãé¿ããããã« `hid` ããŒã§ãŠããŒã¯èå¥åãäžããŠãã ããããŸããããã«ã€ããŠããæ·±ãçè§£ããã«ã¯ [ãã¡ã](https://github.com/declandewet/vue-meta#lists-of-tags) ãåç
§ããŠãã ããã
From 3e636572a7aab9c9a1e95d6e79d8196d02926b44 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Sat, 25 Feb 2017 21:37:17 +0900
Subject: [PATCH 029/129] Make ja/guide/async-data.md natural
---
ja/guide/async-data.md | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
diff --git a/ja/guide/async-data.md b/ja/guide/async-data.md
index b99db8c1f..892596339 100644
--- a/ja/guide/async-data.md
+++ b/ja/guide/async-data.md
@@ -1,6 +1,6 @@
---
title: éåæãªããŒã¿
-description: Nuxt.js ã¯ãã³ã³ããŒãã³ãã®ããŒã¿ãã»ããããåã«éåæã®åŠçãè¡ããããã«ããããã«ãVue.js ã® data ã¡ãœãããé絊ããŸã
+description: Nuxt.js ã¯ã³ã³ããŒãã³ãã®ããŒã¿ãã»ããããåã«éåæã®åŠçãè¡ããããã«ããããã«ãVue.js ã® data ã¡ãœããã«æãå ããŠããŸãã
---
@@ -8,7 +8,7 @@ description: Nuxt.js ã¯ãã³ã³ããŒãã³ãã®ããŒã¿ãã»ãããã
-> Nuxt.js ã¯ãã³ã³ããŒãã³ãã®ããŒã¿ãã»ããããåã«éåæã®åŠçãè¡ããããã«ããããã«ãVue.js ã® `data` ã¡ãœããã *é絊* ããŸãïŒè𳿳š: supercharges ãããŸãèš³ããŸããã§ãããåæã¯ Nuxt.js *supercharges* the `data` method from vue.js to let you handle async operation before setting the component data.ïŒ
+> Nuxt.js ã¯ã³ã³ããŒãã³ãã®ããŒã¿ãã»ããããåã«éåæã®åŠçãè¡ããããã«ããããã«ãVue.js ã® `data` ã¡ãœããã«æãå ããŠããŸãã
@@ -24,9 +24,7 @@ description: Nuxt.js ã¯ãã³ã³ããŒãã³ãã®ããŒã¿ãã»ãããã
-To make the data method asynchronous, nuxt.js offers you different ways, choose the one you're the most familiar with:
-
-Nuxt.js ã§ã¯ data ã¡ãœãããéåæã«ããããã«ãããã€ãã®ç°ãªãããæ¹ãããã®ã§ãæããªãããã®ãéžæããŠãã ãã:
+Nuxt.js ã§ã¯ data ã¡ãœãããéåæã«ããããã«ãããã€ãã®ç°ãªãããæ¹ãããã®ã§ãã奜ããªãã®ãéžãã§ãã ãã:
@@ -85,7 +83,7 @@ export default {
-ããéåæã«å®è¡ããå¿
èŠããªããã°ãã·ã³ãã«ã«ãªããžã§ã¯ããè¿ãã°è¯ãã§ã:
+ããéåæã«å®è¡ããå¿
èŠããªããã°ãã·ã³ãã«ã«ãªããžã§ã¯ããè¿ãããšãã§ããŸã:
```js
export default {
@@ -115,7 +113,7 @@ data ã¡ãœãããã»ããããããšãäžèšã®ããã« template ã®å
-`context` å
ã§å©çšã§ããããŒã®äžèЧã確èªããã«ã¯ [ããŒãž data API](/api) ãã芧ãã ããã
+`context` å
ã§å©çšã§ããããŒã®äžèЧã確èªããã«ã¯ [ããŒãž data API](/api) ãåç
§ããŠãã ããã
@@ -123,7 +121,7 @@ data ã¡ãœãããã»ããããããšãäžèšã®ããã« template ã®å
-Nuxt.js 㯠`context` ã®äžã« `error(params)` ã¡ãœããã远å ããŸããããããåŒã³åºãããšã§ãšã©ãŒããŒãžã衚瀺ã§ããŸãã
+Nuxt.js 㯠`context` ã®äžã« `error(params)` ã¡ãœããã远å ããŠããŸãããããåŒã³åºãããšã§ãšã©ãŒããŒãžã衚瀺ã§ããŸãã
From c2d13fa5f64506792b850c135e8757f43511dd57 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Sat, 25 Feb 2017 22:40:35 +0900
Subject: [PATCH 030/129] Translate ja/guide/development-tools.md
---
ja/guide/development-tools.md | 167 ++++++++++++++++++++++++++++------
ja/guide/installation.md | 4 +-
2 files changed, 141 insertions(+), 30 deletions(-)
diff --git a/ja/guide/development-tools.md b/ja/guide/development-tools.md
index 0d1b745f5..ffdef71dd 100644
--- a/ja/guide/development-tools.md
+++ b/ja/guide/development-tools.md
@@ -1,20 +1,34 @@
---
-title: Development Tools
-description: Nuxt.js helps you to make your web development enjoyable.
+title: éçºããŒã«
+description: Nuxt.js ã¯éçºãããæ¥œãããã®ã«ãªãããæå©ãããŸãã
---
-> Testing your application is part of the web development. Nuxt.js helps you to make it as easy as possible.
+
+
-## End-to-End Testing
+
-[Ava](https://github.com/avajs/ava) is a powerful JavaScript testing framework, mixed with [jsdom](https://github.com/tmpvar/jsdom), we can use them to do end-to-end testing easily.
+> ã¢ããªã±ãŒã·ã§ã³ããã¹ãããããšã¯ãŠã§ãéçºã®äžéšã§ããNuxt.js ã¯å¯èœãªéãç°¡åã«ãã¹ãã§ããããã«ããŠããŸãã
+
+
+
+## ãšã³ãããŒãšã³ããã¹ã
+
+
+
+[Ava](https://github.com/avajs/ava) 㯠[jsdom](https://github.com/tmpvar/jsdom) ãšåãããŠäœ¿ãããšãã§ãããJavaScript ã®ãã¯ãã«ãªãã¹ãã£ã³ã°ãã¬ãŒã ã¯ãŒã¯ã§ãããšã³ãããŒãšã³ããã¹ããç°¡åã«è¡ãããã«ãããã䜿ãããšãã§ããŸãã
+
+
+
+ãŸã ava ãš jsdom ãéçºäŸåããã±ãŒãžã«è¿œå ããå¿
èŠããããŸã:
-First, we need to add ava and jsdom as development dependencies:
```bash
npm install --save-dev ava jsdom
```
-And add a test script to our `package.json`:
+
+
+ãããã `package.json` ã« test ãšããã¹ã¯ãªããã远å ããŸã:
```javascript
"scripts": {
@@ -22,12 +36,18 @@ And add a test script to our `package.json`:
}
```
-We are going to write our tests in the `test` folder:
+
+
+`test` ãã©ã«ãå
ã«ãã¹ããæžããŠããããšã«ããŸã:
+
```bash
mkdir test
```
-Let's says we have a page in `pages/index.vue`:
+
+
+`pages/index.vue` ã«ããŒãžãããããŸã:
+
```html
Hello {{ name }}!
@@ -48,21 +68,72 @@ export default {
```
-When we launch our app with `npm run dev` and open [http://localhost:3000](http://localhost:3000), we can see our red `Hello world!` title.
+
+
+`npm run dev` ã§ã¢ããªã±ãŒã·ã§ã³ãèµ·åã [http://localhost:3000](http://localhost:3000) ãéããŠãããšãã`Hello world!` ãšããã¿ã€ãã«ã衚瀺ãããŠããŸãã
+
+
+
+`test/index.test.js` ãšãããã¹ããã¡ã€ã«ã远å ããŸã:
+
+
+
+
+
+
+
+
+
+
-We add our test file `test/index.test.js`:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
```js
import test from 'ava'
import Nuxt from 'nuxt'
import { resolve } from 'path'
-// We keep the nuxt and server instance
-// So we can close them at the end of the test
+// nuxt ãš server ã€ã³ã¹ã¿ã³ã¹ãä¿æããŸã
+// ããããã°ãã¹ãçµäºæã«ããããã¯ããŒãºã§ããŸã
let nuxt = null
let server = null
-// Init Nuxt.js and create a server listening on localhost:4000
+// Nuxt.js ãåæåã localhost:4000 ã§ãªã¹ãã³ã°ãããµãŒããŒãäœæããŸã
test.before('Init Nuxt.js', async t => {
const rootDir = resolve(__dirname, '..')
let config = {}
@@ -75,14 +146,14 @@ test.before('Init Nuxt.js', async t => {
server.listen(4000, 'localhost')
})
-// Example of testing only generated html
+// çæããã HTML ã®ã¿ããã¹ãããäŸ
test('Route / exits and render HTML', async t => {
let context = {}
const { html } = await nuxt.renderRoute('/', context)
t.true(html.includes('Hello world! '))
})
-// Example of testing via dom checking
+// DOM ãçµç±ããŠãã§ãã¯ãããã¹ãã®äŸ
test('Route / exits and render HTML with CSS applied', async t => {
const window = await nuxt.renderAndGetWindow('http://localhost:4000/')
const element = window.document.querySelector('.red')
@@ -92,31 +163,62 @@ test('Route / exits and render HTML with CSS applied', async t => {
t.is(window.getComputedStyle(element).color, 'red')
})
-// Close server and ask nuxt to stop listening to file changes
+// ãµãŒããŒãéã㊠nuxt ã«ãã¡ã€ã«æŽæ°ã®ãªã¹ãã³ã°ãäžæ¢ããã
test.after('Closing server and nuxt.js', t => {
server.close()
nuxt.close()
})
```
-We can now launch our tests:
+
+
+ãã¹ããå®è¡ã§ããããã«ãªã£ãŠããŸã:
+
```bash
npm test
```
-jsdom has some limitations because it does not use a browser. However, it will cover most of our tests. If you want to use a browser to test your application, you might want to check out [Nightwatch.js](http://nightwatchjs.org).
+
+
+jsdom ã¯ãã©ãŠã¶ã䜿ã£ãŠããªãããå¶çŽãããã€ããããŸãããã»ãšãã©ã®ãã¹ãã¯ã«ããŒã§ããŸããããã¢ããªã±ãŒã·ã§ã³ããã¹ãããããã«ãã©ãŠã¶ã䜿ããããšã㯠[Nightwatch.js](http://nightwatchjs.org) ã調ã¹ããšãããããããŸããã
## ESLint
-> ESLint is a great tool to keep your code clean
+
+
+> ESLint ã¯ã³ãŒãã綺éºã«ä¿ãŠããããããŒã«ã§ãã
+
+
-You can add [ESLint](http://eslint.org) pretty easily with nuxt.js, first, you need to add the npm dependencies:
+ãšãŠãç°¡åã« [ESLint](http://eslint.org) ã Nuxt.js ãšäžç·ã«äœ¿ãããšãã§ããŸãããŸã npm ã®äŸåããã±ãŒãžã远å ããå¿
èŠããããŸã:
```bash
npm install --save-dev babel-eslint eslint eslint-config-standard eslint-plugin-html eslint-plugin-promise eslint-plugin-standard
```
-Then, you can configure ESLint via a `.eslintrc.js` file in your root project directory:
+
+
+ãããã `.eslintrc.js` ãã¡ã€ã«ããããžã§ã¯ãã®ã«ãŒããã£ã¬ã¯ãã«çœ®ã㊠ESLint ãèšå®ã§ããŸã:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
```js
module.exports = {
root: true,
@@ -126,17 +228,19 @@ module.exports = {
node: true
},
extends: 'standard',
- // required to lint *.vue files
+ // *.vue ãã¡ã€ã«ã lint ããããã«å¿
èŠ
plugins: [
'html'
],
- // add your custom rules here
+ // ããã«ã«ã¹ã¿ã ã«ãŒã«ã远å ããŸã
rules: {},
globals: {}
}
```
-Then, you can add a `lint` script in your `package.json`:
+
+
+ãããã `lint` ã¹ã¯ãªããã `package.json` å
ã«è¿œå ã§ããŸã:
```js
"scripts": {
@@ -144,11 +248,18 @@ Then, you can add a `lint` script in your `package.json`:
}
```
-You can now launch:
+
+
+lint ãå®è¡ã§ããŸã:
+
```bash
npm run lint
```
-ESLint will lint every of your JavaScript and Vue files while ignoring your ignored files defined in your `.gitignore`.
+
+
+ESLint 㯠`.gitignore` ã«å®çŸ©ããããã¡ã€ã«ãç¡èŠãã€ã€ããã以å€ã®ãã¹ãŠã® JavaScript ãš Vue ãã¡ã€ã«ã lint ããŸãã
+
+
-One best practice is to add also `"precommit": "npm run lint"` in your package.json to lint your code automatically before commiting your code.
+`"precommit": "npm run lint"` ã package.json ã«è¿œå ããŠã³ãŒããã³ãããããåã«èªåçã« lint ããã®ã¯ãã¹ããã©ã¯ãã£ã¹ã®ã²ãšã€ã§ãã
diff --git a/ja/guide/installation.md b/ja/guide/installation.md
index 75ee5510a..5f77fe118 100644
--- a/ja/guide/installation.md
+++ b/ja/guide/installation.md
@@ -1,6 +1,6 @@
---
title: ã€ã³ã¹ããŒã«
-description: Nuxt.js ã¯ãšãŠãç°¡åã«å§ããããŸããã·ã³ãã«ãªãããžã§ã¯ãã§ã¯å¿
èŠãªäŸåã©ã€ãã©ãªã¯ `nuxt` ã ãã§ãã
+description: Nuxt.js ã¯ãšãŠãç°¡åã«å§ããããŸããã·ã³ãã«ãªãããžã§ã¯ãã§ã¯å¿
èŠãªäŸåããã±ãŒãžã¯ `nuxt` ã ãã§ãã
---
@@ -8,7 +8,7 @@ description: Nuxt.js ã¯ãšãŠãç°¡åã«å§ããããŸããã·ã³ãã«ãª
-Nuxt.js ã¯ãšãŠãç°¡åã«å§ããããŸããã·ã³ãã«ãªãããžã§ã¯ãã§ã¯å¿
èŠãªäŸåã©ã€ãã©ãªã¯ `nuxt` ã ãã§ãã
+Nuxt.js ã¯ãšãŠãç°¡åã«å§ããããŸããã·ã³ãã«ãªãããžã§ã¯ãã§ã¯å¿
èŠãªäŸåããã±ãŒãžã¯ `nuxt` ã ãã§ãã
From 54e7fb6e1e9ddc9d49ae9bee07f5e3f91174a089 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Sat, 25 Feb 2017 22:59:50 +0900
Subject: [PATCH 031/129] Fix typo
---
ja/guide/assets.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ja/guide/assets.md b/ja/guide/assets.md
index ff8a56219..029c070f4 100644
--- a/ja/guide/assets.md
+++ b/ja/guide/assets.md
@@ -114,7 +114,7 @@ file-loader ãš url-loader ã®åœ¹å²:
-ãããã®ããŒããŒã®èšå®ãæŽæ°ããããããŒããŒã䜿ããªãããã«ãããããã«ã¯ã[ããŒããŒèšå®](/api/configuration-build#loaders) ãåç
§ããŠãã ããã
+ãããã®ããŒããŒã®èšå®ãæŽæ°ããããããŒããŒã䜿ããªãããã«ããã«ã¯ã[ããŒããŒèšå®](/api/configuration-build#loaders) ãåç
§ããŠãã ããã
From 5ab94bb38a545605464b1e4ac374097f9f23a47e Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Sun, 26 Feb 2017 10:43:51 +0900
Subject: [PATCH 032/129] Translate ja/guide/menu.json and improve
ja/guide/*.md checking the development server of nuxtjs.org
---
ja/guide/async-data.md | 6 +-
ja/guide/commands.md | 6 +-
ja/guide/development-tools.md | 2 +-
ja/guide/directory-structure.md | 6 +-
ja/guide/index.md | 10 +--
ja/guide/installation.md | 6 +-
ja/guide/menu.json | 104 ++++++++++++++++----------------
ja/guide/plugins.md | 2 +-
ja/guide/views.md | 16 ++---
9 files changed, 79 insertions(+), 79 deletions(-)
diff --git a/ja/guide/async-data.md b/ja/guide/async-data.md
index 892596339..fbb7b8c15 100644
--- a/ja/guide/async-data.md
+++ b/ja/guide/async-data.md
@@ -30,8 +30,8 @@ Nuxt.js ã§ã¯ data ã¡ãœãããéåæã«ããããã«ãããã€ãã®
-1. `Promise` ãè¿ããNuxt.js ã¯ã³ã³ããŒãã³ããã¬ã³ããªã³ã°ãããåã« Promise ã解決ããããŸã§åŸ
ã¡ãŸãã
-2. [async/await](https://github.com/lukehoban/ecmascript-asyncawait) ã䜿ããïŒ[ããæ·±ãçè§£ãã](https://zeit.co/blog/async-and-await)ïŒ
+1. `Promise` ãè¿ããNuxt.js ã¯ã³ã³ããŒãã³ããã¬ã³ããªã³ã°ãããåã« Promise ã解決ããããŸã§åŸ
ã¡ãŸã
+2. [async/await](https://github.com/lukehoban/ecmascript-asyncawait) ã䜿ãïŒ[ããæ·±ãçè§£ãã](https://zeit.co/blog/async-and-await)ïŒ
3. 第äºåŒæ°ãšããŠã³ãŒã«ããã¯ãå®çŸ©ãããå³ã®ããã«åŒã³åºãããå¿
èŠããããŸã: `callback(err, data)`
@@ -189,4 +189,4 @@ export default {
-ãšã©ãŒããŒãžãã«ã¹ã¿ãã€ãºããããã«ã¯ [ãã¥ãŒããŒãžã®ã¬ã€ã¢ãŠãã»ã¯ã·ã§ã³](/guide/views#layouts) ãåç
§ããŠãã ããã
+ãšã©ãŒããŒãžãã«ã¹ã¿ãã€ãºããã«ã¯ [ãã¥ãŒã®ã¬ã€ã¢ãŠãã»ã¯ã·ã§ã³](/guide/views#layouts) ãåç
§ããŠãã ããã
diff --git a/ja/guide/commands.md b/ja/guide/commands.md
index c35da435e..c822544ce 100644
--- a/ja/guide/commands.md
+++ b/ja/guide/commands.md
@@ -23,8 +23,8 @@ description: Nuxt.js ã¯äŸ¿å©ã³ãã³ãã®ã»ãããåããŠããŸãã
| ã³ãã³ã | 説æ |
|---------|-------------|
-| nuxt | éçºãµãŒããŒã [localhost:3000](http://localhost:3000) ã§èµ·åããŸãããã®ãµãŒããŒã¯ããããªããŒãã£ã³ã°ããŸãã |
-| nuxt build | ã¢ããªã±ãŒã·ã§ã³ã Webpack ã§ãã«ãããJS ãš CSS ããããã¯ã·ã§ã³åãã«ãããã¡ã€ããŸãã |
+| nuxt | éçºãµãŒããŒã [localhost:3000](http://localhost:3000) ã§èµ·åããŸãããã®ãµãŒããŒã¯ããããªããŒãã£ã³ã°ããŸã |
+| nuxt build | ã¢ããªã±ãŒã·ã§ã³ã Webpack ã§ãã«ãããJS ãš CSS ããããã¯ã·ã§ã³åãã«ãããã¡ã€ããŸã |
| nuxt start | ãããã¯ã·ã§ã³ã¢ãŒãã§ãµãŒããŒãèµ·åããŸãïŒ`nuxt build` åŸã«å®è¡ããŠãã ããïŒ |
| nuxt generate | ã¢ããªã±ãŒã·ã§ã³ããã«ãããŠãã«ãŒãããšã« HTML ãã¡ã€ã«ãçæããŸãïŒéçãã¡ã€ã«ã®ãã¹ãã£ã³ã°ã«çšããŸãïŒ |
@@ -67,7 +67,7 @@ npm run dev
-## ãããã¯ã·ã§ã³ç°å¢ãžã®ãããã€
+## ãããã¯ã·ã§ã³ã®ãããã€
diff --git a/ja/guide/development-tools.md b/ja/guide/development-tools.md
index ffdef71dd..7c07352b4 100644
--- a/ja/guide/development-tools.md
+++ b/ja/guide/development-tools.md
@@ -186,7 +186,7 @@ jsdom ã¯ãã©ãŠã¶ã䜿ã£ãŠããªãããå¶çŽãããã€ããããŸ
-> ESLint ã¯ã³ãŒãã綺éºã«ä¿ãŠããããããŒã«ã§ãã
+> ESLint ã¯ã³ãŒãã綺éºã«ä¿ãŠãåªããããŒã«ã§ãã
diff --git a/ja/guide/directory-structure.md b/ja/guide/directory-structure.md
index ffb40288f..66547616b 100644
--- a/ja/guide/directory-structure.md
+++ b/ja/guide/directory-structure.md
@@ -142,7 +142,7 @@ nuxt.config.js ã«ã€ããŠããæ·±ãçè§£ããã«ã¯ [nuxt.config.js ã«é¢
-`package.json` ãã¡ã€ã«ã«ã¯ã¢ããªã±ãŒã·ã§ã³ãäŸåããã©ã€ãã©ãªãã¹ã¯ãªãããèšè¿°ããŸãã
+`package.json` ãã¡ã€ã«ã«ã¯ã¢ããªã±ãŒã·ã§ã³ãäŸåããããã±ãŒãžãã¹ã¯ãªãããèšè¿°ããŸãã
@@ -181,5 +181,5 @@ _ãã®ãã¡ã€ã«åã¯å€æŽã§ããŸããã_
| ãšã€ãªã¢ã¹ | äœ¿ãæ¹ | 説æ |
|-------|------|--------------|
-| ~store | `const store = require('~store')` | `vuex` ã¹ãã¢ã®ã€ã³ã¹ã¿ã³ã¹ãã€ã³ããŒãããŸãã |
-| ~router | `const router = require('~router')`| `vue-router` ã®ã€ã³ã¹ã¿ã³ã¹ãã€ã³ããŒãããŸãã |
+| ~store | `const store = require('~store')` | `vuex` ã¹ãã¢ã®ã€ã³ã¹ã¿ã³ã¹ãã€ã³ããŒãããŸã |
+| ~router | `const router = require('~router')`| `vue-router` ã®ã€ã³ã¹ã¿ã³ã¹ãã€ã³ããŒãããŸã |
diff --git a/ja/guide/index.md b/ja/guide/index.md
index 36e44342e..0d158d90c 100644
--- a/ja/guide/index.md
+++ b/ja/guide/index.md
@@ -12,7 +12,7 @@ description: "2016幎10æ25æ¥ãzeit.co ã®ããŒã ã React ã¢ããªã±ãŒ
-## Nuxt.js ãšã¯äœã§ããïŒ
+## Nuxt.js ãšã¯äœãïŒ
@@ -120,7 +120,7 @@ Nuxt.js ããããžã§ã¯ãã® UI ã¬ã³ããªã³ã°å
šäœãæ
ããã¬ãŒ
-## éçãªçæ
+## éçãã¡ã€ã«ã®çæ
@@ -162,8 +162,8 @@ Nuxt.js ã«ãã倧ããªã€ãããŒã·ã§ã³ããã£ãŠããŸããããã
-- [ãœãŒã¹ã³ãŒã](https://github.com/nuxt/nuxtjs.org) -->
-- [çæãããã³ãŒã](https://github.com/nuxt/nuxtjs.org/tree/gh-pages) -->
+- [ãœãŒã¹ã³ãŒã](https://github.com/nuxt/nuxtjs.org)
+- [çæãããã³ãŒã](https://github.com/nuxt/nuxtjs.org/tree/gh-pages)
@@ -175,7 +175,7 @@ Nuxt.js ã«ãã倧ããªã€ãããŒã·ã§ã³ããã£ãŠããŸããããã
1. [nuxtjs.org ãªããžããª](https://github.com/nuxt/nuxtjs.org) ãã¯ããŒã³ãã
-2. `npm install` ã§äŸåããŠããã©ã€ãã©ãªãã€ã³ã¹ããŒã«ãã
+2. `npm install` ã§äŸåããŠããããã±ãŒãžãã€ã³ã¹ããŒã«ãã
3. `nuxt generate` ãå®è¡ãã
4. `dist` ãã©ã«ããŒã `gh-pages` ãã©ã³ãã«ããã·ã¥ãã
diff --git a/ja/guide/installation.md b/ja/guide/installation.md
index 5f77fe118..b0fc3223c 100644
--- a/ja/guide/installation.md
+++ b/ja/guide/installation.md
@@ -32,7 +32,7 @@ $ vue init nuxt/starter
-ããããäŸåããã©ã€ãã©ãªãã€ã³ã¹ããŒã«ããŠãã ãã:
+ããããäŸåããããã±ãŒãžãã€ã³ã¹ããŒã«ããŠãã ãã:
```bash
$ cd
@@ -53,7 +53,7 @@ $ npm run dev
-Nuxt.js 㯠`pages` ãã£ã¬ã¯ããªå
ã®ãã¡ã€ã«ã®æŽæ°ãç£èŠããŸãããã®ãããæ°ããããŒãžã远å ãããšãã«ã¢ããªã±ãŒã·ã§ã³ãåèµ·åããå¿
èŠã¯ãããŸãã
+Nuxt.js 㯠`pages` ãã£ã¬ã¯ããªå
ã®ãã¡ã€ã«ã®æŽæ°ãç£èŠããŸãããã®ãããæ°ããããŒãžã远å ãããšãã«ã¢ããªã±ãŒã·ã§ã³ãåèµ·åããå¿
èŠã¯ãããŸããã
@@ -149,7 +149,7 @@ $ npm run dev
-Nuxt.js 㯠`pages` ãã£ã¬ã¯ããªå
ã®ãã¡ã€ã«ã®æŽæ°ãç£èŠããŸãããã®ããæ°ããããŒãžã远å ããå Žåã«ã¢ããªã±ãŒã·ã§ã³ãåèµ·åããå¿
èŠã¯ãããŸãã
+Nuxt.js 㯠`pages` ãã£ã¬ã¯ããªå
ã®ãã¡ã€ã«ã®æŽæ°ãç£èŠããŸãããã®ããæ°ããããŒãžã远å ããå Žåã«ã¢ããªã±ãŒã·ã§ã³ãåèµ·åããå¿
èŠã¯ãããŸããã
diff --git a/ja/guide/menu.json b/ja/guide/menu.json
index a82158293..a77bb8e52 100644
--- a/ja/guide/menu.json
+++ b/ja/guide/menu.json
@@ -1,104 +1,104 @@
[
{
- "title": "Prologue",
+ "title": "ããããŒã°",
"links": [
{
- "to": "", "name": "Introduction",
+ "to": "", "name": "ã¯ããã«",
"contents": [
- { "to": "#what-is-nuxt-js-", "name": "What is Nuxt.js ?" },
- { "to": "#how-it-works", "name": "How it Works" },
- { "to": "#features", "name": "Features" },
- { "to": "#schema", "name": "Schema" },
- { "to": "#server-rendered", "name": "Server Rendered" },
- { "to": "#static-generated", "name": "Static Generated" }
+ { "to": "#nuxt-js-ãšã¯äœã-", "name": "Nuxt.js ãšã¯äœãïŒ" },
+ { "to": "#ã©ã®ããã«åäœããã-", "name": "ã©ã®ããã«åäœãããïŒ" },
+ { "to": "#äž»ãªæ©èœ", "name": "äž»ãªæ©èœ" },
+ { "to": "#å³è§£", "name": "å³è§£" },
+ { "to": "#ãµãŒããŒãµã€ãã¬ã³ããªã³ã°", "name": "ãµãŒããŒãµã€ãã¬ã³ããªã³ã°" },
+ { "to": "#éçãã¡ã€ã«ã®çæ", "name": "éçãã¡ã€ã«ã®çæ" }
]
},
- { "to": "/contribution-guide", "name": "Contribution Guide" },
- { "to": "/release-notes", "name": "Release Notes" }
+ { "to": "/contribution-guide", "name": "è²¢ç®ã¬ã€ã" },
+ { "to": "/release-notes", "name": "ãªãªãŒã¹ããŒã" }
]
},
{
- "title": "Getting Started",
+ "title": "ã¯ããã",
"links": [
{
- "to": "/installation", "name": "Installation",
+ "to": "/installation", "name": "ã€ã³ã¹ããŒã«",
"contents": [
- { "to": "#using-nuxt-js-starter-template", "name": "Using Nuxt.js starter template" },
- { "to": "#starting-from-scratch", "name": "Starting from scratch" }
+ { "to": "#nuxt-js-ã䜿ã£ãã¹ã¿ãŒã¿ãŒãã³ãã¬ãŒã", "name": "Nuxt.js ã䜿ã£ãã¹ã¿ãŒã¿ãŒãã³ãã¬ãŒã" },
+ { "to": "#ã¹ã¯ã©ããããå§ãã", "name": "ã¹ã¯ã©ããããå§ãã" }
]
},
{
- "to": "/directory-structure", "name": "Directory structure",
+ "to": "/directory-structure", "name": "ãã£ã¬ã¯ããªæ§é ",
"contents": [
- { "to": "#directories", "name": "Directories" },
- { "to": "#aliases", "name": "Aliases" }
+ { "to": "#ãã£ã¬ã¯ããª", "name": "ãã£ã¬ã¯ããª" },
+ { "to": "#ãšã€ãªã¢ã¹-å¥å-", "name": "ãšã€ãªã¢ã¹ïŒå¥åïŒ" }
]
},
- { "to": "/configuration", "name": "Configuration" },
+ { "to": "/configuration", "name": "èšå®" },
{
- "to": "/routing", "name": "Routing",
+ "to": "/routing", "name": "ã«ãŒãã£ã³ã°",
"contents": [
- { "to": "#basic-routes", "name": "Basic Routes" },
- { "to": "#dynamic-routes", "name": "Dynamic Routes" },
- { "to": "#nested-routes", "name": "Nested Routes" },
- { "to": "#dynamic-nested-routes", "name": "Dynamic Nested Routes" },
- { "to": "#transitions", "name": "Transitions" },
- { "to": "#middleware", "name": "Middleware" }
+ { "to": "#ã«ãŒãã£ã³ã°ã®åºç€", "name": "ã«ãŒãã£ã³ã°ã®åºç€" },
+ { "to": "#åçãªã«ãŒãã£ã³ã°", "name": "åçãªã«ãŒãã£ã³ã°" },
+ { "to": "#ãã¹ãããã«ãŒãã£ã³ã°", "name": "ãã¹ãããã«ãŒãã£ã³ã°" },
+ { "to": "#åçã§ãã¹ãããã«ãŒãã£ã³ã°", "name": "åçã§ãã¹ãããã«ãŒãã£ã³ã°" },
+ { "to": "#ãã©ã³ãžã·ã§ã³", "name": "ãã©ã³ãžã·ã§ã³" },
+ { "to": "#ããã«ãŠã§ã¢", "name": "ããã«ãŠã§ã¢" }
]
},
{
- "to": "/views", "name": "Views",
+ "to": "/views", "name": "ãã¥ãŒ",
"contents": [
- { "to": "#pages", "name": "Pages" },
- { "to": "#layouts", "name": "Layouts" },
- { "to": "#html-head", "name": "HTML Head" }
+ { "to": "#ããŒãž", "name": "ããŒãž" },
+ { "to": "#ã¬ã€ã¢ãŠã", "name": "ã¬ã€ã¢ãŠã" },
+ { "to": "#html-ã®-head-æ
å ±", "name": "HTML ã® head æ
å ±" }
]
},
{
- "to": "/async-data", "name": "Async Data",
+ "to": "/async-data", "name": "éåæãªããŒã¿",
"contents": [
- { "to": "#the-data-method", "name": "The data Method" },
- { "to": "#the-context", "name": "The Context" },
- { "to": "#handling-errors", "name": "Handling Errors" }
+ { "to": "#data-ã¡ãœãã", "name": "data ã¡ãœãã" },
+ { "to": "#ã³ã³ããã¹ã", "name": "ã³ã³ããã¹ã" },
+ { "to": "#ãšã©ãŒåŠç", "name": "ãšã©ãŒåŠç" }
]
},
{
- "to": "/assets", "name": "Assets",
+ "to": "/assets", "name": "ã¢ã»ãã",
"contents": [
- { "to": "#webpacked", "name": "Webpacked" },
- { "to": "#static", "name": "Static" }
+ { "to": "#webpack-ã§åãæ±ã", "name": "Webpack ã§åãæ±ã" },
+ { "to": "#webpack-ã§æ±ããªãéçãã¡ã€ã«", "name": "Webpack ã§æ±ããªãéçãã¡ã€ã«" }
]
},
{
- "to": "/plugins", "name": "Plugins",
+ "to": "/plugins", "name": "ãã©ã°ã€ã³",
"contents": [
- { "to": "#external-packages", "name": "External Packages" },
- { "to": "#vue-plugins", "name": "Vue Plugins" },
- { "to": "#client-side-only", "name": "Client-side only" }
+ { "to": "#å€éšããã±ãŒãžã®å©çš", "name": "å€éšããã±ãŒãžã®å©çš" },
+ { "to": "#vue-ãã©ã°ã€ã³", "name": "Vue ãã©ã°ã€ã³" },
+ { "to": "#ã¯ã©ã€ã¢ã³ããµã€ãéå®ã®ãã©ã°ã€ã³å©çš", "name": "ã¯ã©ã€ã¢ã³ããµã€ãéå®ã®ãã©ã°ã€ã³å©çš" }
]
},
{
- "to": "/vuex-store", "name": "Vuex Store",
+ "to": "/vuex-store", "name": "Vuex ã¹ãã¢",
"contents": [
- { "to": "#activate-the-store", "name": "Activate the Store" },
- { "to": "#classic-mode", "name": "Classic mode" },
- { "to": "#modules-mode", "name": "Modules mode" },
- { "to": "#the-fetch-method", "name": "The fetch Method" },
- { "to": "#the-nuxtserverinit-action", "name": "The nuxtServerInit Action" }
+ { "to": "#ã¹ãã¢ãæå¹ã«ãã", "name": "ã¹ãã¢ãæå¹ã«ãã" },
+ { "to": "#ã¯ã©ã·ãã¯ã¢ãŒã", "name": "ã¯ã©ã·ãã¯ã¢ãŒã" },
+ { "to": "#ã¢ãžã¥ãŒã«ã¢ãŒã", "name": "ã¢ãžã¥ãŒã«ã¢ãŒã" },
+ { "to": "#fetch-ã¡ãœãã", "name": "fetch ã¡ãœãã" },
+ { "to": "#nuxtserverinit-ã¢ã¯ã·ã§ã³", "name": "nuxtServerInit ã¢ã¯ã·ã§ã³" }
]
},
{
- "to": "/commands", "name": "Commands",
+ "to": "/commands", "name": "ã³ãã³ã",
"contents": [
- { "to": "#list-of-commands", "name": "List of Commands" },
- { "to": "#development-environment", "name": "Developemnt Enviroment" },
- { "to": "#production-deployment", "name": "Production Deployment" }
+ { "to": "#ã³ãã³ãäžèЧ", "name": "ã³ãã³ãäžèЧ" },
+ { "to": "#éçºç°å¢", "name": "éçºç°å¢" },
+ { "to": "#ãããã¯ã·ã§ã³ã®ãããã€", "name": "ãããã¯ã·ã§ã³ã®ãããã€" }
]
},
{
- "to": "/development-tools", "name": "Development Tools",
+ "to": "/development-tools", "name": "éçºããŒã«",
"contents": [
- { "to": "#end-to-end-testing", "name": "End-to-End Testing" },
+ { "to": "#ãšã³ãããŒãšã³ããã¹ã", "name": "ãšã³ãããŒãšã³ããã¹ã" },
{ "to": "#eslint", "name": "ESLint" }
]
}
diff --git a/ja/guide/plugins.md b/ja/guide/plugins.md
index 6ea60ea50..424d7a42f 100644
--- a/ja/guide/plugins.md
+++ b/ja/guide/plugins.md
@@ -119,7 +119,7 @@ module.exports = {
-## ã¯ã©ã€ã¢ã³ããµã€ãéå®ã®ã©ã€ãã©ãªå©çš
+## ã¯ã©ã€ã¢ã³ããµã€ãéå®ã®ãã©ã°ã€ã³å©çš
diff --git a/ja/guide/views.md b/ja/guide/views.md
index 95c69838d..84e96ca16 100644
--- a/ja/guide/views.md
+++ b/ja/guide/views.md
@@ -89,14 +89,14 @@ export default {
| 屿§ | 説æ |
|-----------|-------------|
-| data | æãéèŠãªããŒã§ãã [Vue.js ã® data ãªãã·ã§ã³](https://vuejs.org/v2/api/#Options-Data) ãšåãæçŸ©ãæã£ãŠããŸãããããïŒè𳿳š: Nuxt.js ã data ã«æãå ããŠããããïŒéåæã«åäœãããŸãåŒæ°ãšã㊠context ãåãåããŸããã©ã®ããã«åäœããããç¥ãã«ã¯ [éåæããŒã¿ã«é¢ããããã¥ã¡ã³ã](/guide/async-data) ãåç
§ããŠãã ããã |
-| fetch | ããŒãžãã¬ã³ããªã³ã°ãããåã«ãããŒã¿ãã¹ãã¢ã«å
¥ããããã«äœ¿ããŸããã³ã³ããŒãã³ãã®ããŒã¿ãã»ããããããšä»¥å€ã¯ data ã¡ãœãããšäŒŒãŠããŸãã[ããŒãžã®ãã§ãã API ã«é¢ããããã¥ã¡ã³ã](/api/pages-fetch) ãåç
§ããŠãã ããã |
-| head | çŸåšã®ããŒãžã®ç¹å®ã®ã¡ã¿ã¿ã°ãèšå®ããŸãã[ããŒãžã® head API](/api/pages-head) ãåç
§ããŠãã ããã |
-| layout | `layouts` ãã£ã¬ã¯ããªå
ã®ã¬ã€ã¢ãŠããæå®ããŸãã[ããŒãžã®ã¬ã€ã¢ãŠã API ã«é¢ããããã¥ã¡ã³ã](/api/pages-layout) ãåç
§ããŠãã ããã |
-| transition | ããŒãžã«ç¹å®ã®ãã©ã³ãžã·ã§ã³ãèšå®ããŸãã[ããŒãžã®ãã©ã³ãžã·ã§ã³ API ã«é¢ããããã¥ã¡ã³ã](/api/pages-transition) ãåç
§ããŠãã ããã |
-| scrollToTop | ããŒãªã¢ã³ã§æå®ããããã©ã«ã㯠`false` ã§ããããŒãžãã¬ã³ããªã³ã°ããåã«ããããŸã§ã¹ã¯ããŒã«ããããåŠããæå®ããŸãããã㯠[ãã¹ãããã«ãŒãã£ã³ã°](/guide/routing#nested-routes) ã§äœ¿ãããŸãã |
-| validate | [åçãªã«ãŒãã£ã³ã°](/guide/routing#dynamic-routes) ã®ããã®ããªããŒã·ã§ã³é¢æ°ã§ãã |
-| middleware | ãã®ããŒãžã®ããã«ããã«ãŠã§ã¢ãèšå®ããããã«ãŠã§ã¢ã¯ããŒãžãã¬ã³ããªã³ã°ãããåã«åŒã³åºãããŸãã[ã«ãŒãã£ã³ã°ã®ããã«ãŠã§ã¢](/guide/routing#middleware) ãåç
§ããŠãã ããã |
+| data | æãéèŠãªããŒã§ãã [Vue.js ã® data ãªãã·ã§ã³](https://vuejs.org/v2/api/#Options-Data) ãšåãæçŸ©ãæã£ãŠããŸãããããïŒè𳿳š: Nuxt.js ã data ã«æãå ããŠããããïŒéåæã«åäœãããŸãåŒæ°ãšã㊠context ãåãåããŸããã©ã®ããã«åäœããããç¥ãã«ã¯ [éåæããŒã¿ã«é¢ããããã¥ã¡ã³ã](/guide/async-data) ãåç
§ããŠãã ãã |
+| fetch | ããŒãžãã¬ã³ããªã³ã°ãããåã«ãããŒã¿ãã¹ãã¢ã«å
¥ããããã«äœ¿ããŸããã³ã³ããŒãã³ãã®ããŒã¿ãã»ããããããšä»¥å€ã¯ data ã¡ãœãããšäŒŒãŠããŸãã[ããŒãžã®ãã§ãã API ã«é¢ããããã¥ã¡ã³ã](/api/pages-fetch) ãåç
§ããŠãã ãã |
+| head | çŸåšã®ããŒãžã®ç¹å®ã®ã¡ã¿ã¿ã°ãèšå®ããŸãã[ããŒãžã® head API](/api/pages-head) ãåç
§ããŠãã ãã |
+| layout | `layouts` ãã£ã¬ã¯ããªå
ã®ã¬ã€ã¢ãŠããæå®ããŸãã[ããŒãžã®ã¬ã€ã¢ãŠã API ã«é¢ããããã¥ã¡ã³ã](/api/pages-layout) ãåç
§ããŠãã ãã |
+| transition | ããŒãžã«ç¹å®ã®ãã©ã³ãžã·ã§ã³ãèšå®ããŸãã[ããŒãžã®ãã©ã³ãžã·ã§ã³ API ã«é¢ããããã¥ã¡ã³ã](/api/pages-transition) ãåç
§ããŠãã ãã |
+| scrollToTop | ããŒãªã¢ã³ã§æå®ããããã©ã«ã㯠`false` ã§ããããŒãžãã¬ã³ããªã³ã°ããåã«ããããŸã§ã¹ã¯ããŒã«ããããåŠããæå®ããŸãããã㯠[ãã¹ãããã«ãŒãã£ã³ã°](/guide/routing#nested-routes) ã§äœ¿ãããŸã |
+| validate | [åçãªã«ãŒãã£ã³ã°](/guide/routing#dynamic-routes) ã®ããã®ããªããŒã·ã§ã³é¢æ°ã§ã |
+| middleware | ãã®ããŒãžã®ããã«ããã«ãŠã§ã¢ãèšå®ããããã«ãŠã§ã¢ã¯ããŒãžãã¬ã³ããªã³ã°ãããåã«åŒã³åºãããŸãã[ã«ãŒãã£ã³ã°ã®ããã«ãŠã§ã¢](/guide/routing#middleware) ãåç
§ããŠãã ãã |
From 8e03169880caa91692c35aaa28519f730d4c3115 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Mon, 27 Feb 2017 20:37:58 +0900
Subject: [PATCH 033/129] Translate ja/api/index.md
---
ja/api/index.md | 68 ++++++++++++++++++++++++++++++++++---------------
1 file changed, 48 insertions(+), 20 deletions(-)
diff --git a/ja/api/index.md b/ja/api/index.md
index 4fb78c6f5..597555115 100644
--- a/ja/api/index.md
+++ b/ja/api/index.md
@@ -1,15 +1,24 @@
---
-title: "API: The data Method"
-description: Nuxt.js supercharges the data method from vue.js to let you handle async operation before setting the component data.
+title: "API: data ã¡ãœãã"
+description: Nuxt.js 㯠Vue.js ã® data ã¡ãœããã«æãå ããŠãã³ã³ããŒãã³ãã®ããŒã¿ãã»ãããããåã«éåæåŠçãåãæ±ããããã«ããŠããŸãã
---
-# The data Method
+
+
-> Nuxt.js *supercharges* the `data` method from vue.js to let you handle async operation before setting the component data.
+
+
+# data ã¡ãœãã
+
+
+
+> Nuxt.js 㯠Vue.js ã® `data` ã¡ãœããã«æãå ããŠãã³ã³ããŒãã³ãã®ããŒã¿ãã»ãããããåã«éåæåŠçãåãæ±ããããã«ããŠããŸãã
- **Type:** `Function`
-`data` is called every time before loading the component (**only for pages components**). It can be called from the server-side or before navigating to the corresponding route. This method receives the **context** as the first argument, you can use it to fetch some data and return the component data.
+
+
+`data` ã¯ã³ã³ããŒãã³ããããŒãã£ã³ã°ãããåã«æ¯ååŒã³åºãããŸãïŒããŒãžã³ã³ããŒãã³ãã«éããŸãïŒããµãŒããŒãµã€ããããã¯ïŒè𳿳š: ã¯ã©ã€ã¢ã³ããµã€ãã§ã¯ïŒå¯Ÿå¿ããã«ãŒããžããã²ãŒã·ã§ã³ããåã«åŒã³åºãããŸãããã®ã¡ãœãã㯠**context** ã第äžåŒæ°ãšããŠåãåããcontext ã䜿ã£ãŠããŒã¿ãååŸããŠã³ã³ããŒãã³ãããŒã¿ãè¿ãããšãã§ããŸãã
```js
export default {
@@ -19,23 +28,42 @@ export default {
}
```
-You do **NOT** have access of the component instance through `this` inside `data` because it is called **before initiating** the component.
+
+
+`data` ã¡ãœããå
ã§ãã³ã³ããŒãã³ãã®ã€ã³ã¹ã¿ã³ã¹ã« `this` ãçµç±ããŠã¢ã¯ã»ã¹ããŠã¯**ãããŸãã**ããªããªãããã¯ã³ã³ããŒãã³ãã **ã€ã³ã¹ã¿ã³ã¹åãããåã«** åŒã³åºãããããã§ãã
## Context
-List of all the available keys in `context`:
+
+
+`context` å
ã®å©çšã§ããããŒã®äžèЧ:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-| Key | Type | Available | Description |
+| ã㌠| ã¿ã€ã | ã©ãã§å©çšã§ããã | 説æ |
|-----|------|--------------|-------------|
-| `isClient` | Boolean | Client & Server | Boolean to let you know if you're actually renderer from the client-side |
-| `isServer` | Boolean | Client & Server | Boolean to let you know if you're actually renderer from the server-side |
-| `isDev` | Boolean | Client & Server | Boolean to let you know if you're in dev mode, can be useful for caching some data in production |
-| `route` | [vue-router route](https://router.vuejs.org/en/api/route-object.html) | Client & Server | `vue-router` route instance. |
-| `store` | [vuex store](http://vuex.vuejs.org/en/api.html#vuexstore-instance-properties) | Client & Server | `Vuex.Store` instance. **Available only if the [vuex store](/guide/vuex-store) is set.** |
-| `env` | Object | Client & Server | Environment variables set in `nuxt.config.js`, see [env api](/api/configuration-env) |
-| `params` | Object | Client & Server | Alias of route.params |
-| `query` | Object | Client & Server | Alias of route.query |
-| `req` | [http.Request](https://nodejs.org/api/http.html#http_class_http_incomingmessage) | Server | Request from the node.js server. If nuxt is used as a middleware, the req object might be different depending of the framework you're using. *Not available via `nuxt generate`*. |
-| `res` | [http.Response](https://nodejs.org/api/http.html#http_class_http_serverresponse) | Server | Response from the node.js server. If nuxt is used as a middleware, the res object might be different depending of the framework you're using. *Not available via `nuxt generate`*. |
-| `redirect` | Function | Client & Server | Use this method to redirect the user to another route, the status code is used on the server-side, default to 302. `redirect([status,] path [, query])` |
-| `error` | Function | Client & Server | Use this method to show the error page: `error(params)`. The `params` should have the fields `statusCode` and `message`. |
+| `isClient` | ããŒãªã¢ã³ | ã¯ã©ã€ã¢ã³ãïŒãµãŒã㌠| ã¯ã©ã€ã¢ã³ããµã€ãã§ã¬ã³ããªã³ã°ããŠãããåŠã |
+| `isServer` | ããŒãªã¢ã³ | ã¯ã©ã€ã¢ã³ãïŒãµãŒã㌠| ãµãŒããŒãµã€ãã§ã¬ã³ããªã³ã°ããŠãããåŠã |
+| `isDev` | ããŒãªã¢ã³ | ã¯ã©ã€ã¢ã³ãïŒãµãŒã㌠| éçºã¢ãŒããåŠãããã®ããŒã¯ãããã¯ã·ã§ã³ã¢ãŒãã§ããŒã¿ããã£ãã·ã¥ããããšãã«åœ¹ç«ã¡ãŸã |
+| `route` | [vue-router ã®ã«ãŒã](https://router.vuejs.org/en/api/route-object.html) | Client & Server | `vue-router` ã®ã«ãŒãã€ã³ã¹ã¿ã³ã¹ |
+| `store` | [Vuex ã¹ãã¢](http://vuex.vuejs.org/en/api.html#vuexstore-instance-properties) | Client & Server | `Vuex` ã®ã¹ãã¢ã€ã³ã¹ã¿ã³ã¹ã**[Vuex ã¹ãã¢](/guide/vuex-store) ãèšå®ãããŠããå Žåã®ã¿å©çšã§ããŸã** |
+| `env` | ãªããžã§ã¯ã | ã¯ã©ã€ã¢ã³ãïŒãµãŒã㌠| `nuxt.config.js` ã§ã»ãããããç°å¢å€æ°ã詳现㯠[env API](/api/configuration-env) ãåç
§ããŠãã ãã |
+| `params` | ãªããžã§ã¯ã | ã¯ã©ã€ã¢ã³ãïŒãµãŒã㌠| route.params ã®ãšã€ãªã¢ã¹ |
+| `query` | ãªããžã§ã¯ã | ã¯ã©ã€ã¢ã³ãïŒãµãŒã㌠| route.query ã®ãšã€ãªã¢ã¹ |
+| `req` | [http.Request](https://nodejs.org/api/http.html#http_class_http_incomingmessage) | ãµãŒã㌠| Node.js ãµãŒããŒã®ãªã¯ãšã¹ããNuxt.js ãããã«ãŠã§ã¢ãšããŠäœ¿ã£ãŠãããšããreq ãªããžã§ã¯ãã¯å©çšããŠãããã¬ãŒã ã¯ãŒã¯ã«ãã£ãŠç°ãªããããããŸããã*`nuxt generate` ããã¯å©çšã§ããŸãã* |
+| `res` | [http.Response](https://nodejs.org/api/http.html#http_class_http_serverresponse) | ãµãŒã㌠| Node.js ãµãŒããŒã®ã¬ã¹ãã³ã¹ãNuxt.js ãããã«ãŠã§ã¢ãšããŠäœ¿ã£ãŠãããšããreq ãªããžã§ã¯ãã¯å©çšããŠãããã¬ãŒã ã¯ãŒã¯ã«ãã£ãŠç°ãªããããããŸããã*`nuxt generate` ããã¯å©çšã§ããŸãã* |
+| `redirect` | 颿° | ã¯ã©ã€ã¢ã³ãïŒãµãŒã㌠| å¥ã®ã«ãŒãã«ãªãã€ã¬ã¯ããããããšãã«äœ¿ããŸãããµãŒããŒãµã€ãã§äœ¿ãããã¹ããŒã¿ã¹ã³ãŒãã¯ããã©ã«ãã§ 302 ã§ãã`redirect([status,] path [, query])` |
+| `error` | 颿° | ã¯ã©ã€ã¢ã³ãïŒãµãŒã㌠| ãšã©ãŒããŒãžã衚瀺ãããããšãã«äœ¿ããŸã: `error(params)`ã`params` 㯠`statusCode` ãš `message` ãšãããã£ãŒã«ããæã£ãŠããå¿
èŠããããŸã |
From 4fea1f47aced1ecb9025e4a272e7b9790ec567b7 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Mon, 27 Feb 2017 20:45:35 +0900
Subject: [PATCH 034/129] Make ja/api/index.md natural
---
ja/api/index.md | 22 +++++++++++++---------
ja/guide/async-data.md | 2 +-
2 files changed, 14 insertions(+), 10 deletions(-)
diff --git a/ja/api/index.md b/ja/api/index.md
index 597555115..7bc1e62f9 100644
--- a/ja/api/index.md
+++ b/ja/api/index.md
@@ -1,6 +1,6 @@
---
title: "API: data ã¡ãœãã"
-description: Nuxt.js 㯠Vue.js ã® data ã¡ãœããã«æãå ããŠãã³ã³ããŒãã³ãã®ããŒã¿ãã»ãããããåã«éåæåŠçãåãæ±ããããã«ããŠããŸãã
+description: Nuxt.js 㯠Vue.js ã® data ã¡ãœããã«æãå ããŠãã³ã³ããŒãã³ãã®ããŒã¿ãã»ãããããåã«éåæåŠçãè¡ããããã«ããŠããŸãã
---
@@ -12,13 +12,15 @@ description: Nuxt.js 㯠Vue.js ã® data ã¡ãœããã«æãå ããŠãã³ã³
-> Nuxt.js 㯠Vue.js ã® `data` ã¡ãœããã«æãå ããŠãã³ã³ããŒãã³ãã®ããŒã¿ãã»ãããããåã«éåæåŠçãåãæ±ããããã«ããŠããŸãã
+> Nuxt.js 㯠Vue.js ã® `data` ã¡ãœããã«æãå ããŠãã³ã³ããŒãã³ãã®ããŒã¿ãã»ãããããåã«éåæåŠçãè¡ããããã«ããŠããŸãã
-- **Type:** `Function`
+
+
+- **ã¿ã€ã:** `颿°`
-`data` ã¯ã³ã³ããŒãã³ããããŒãã£ã³ã°ãããåã«æ¯ååŒã³åºãããŸãïŒããŒãžã³ã³ããŒãã³ãã«éããŸãïŒããµãŒããŒãµã€ããããã¯ïŒè𳿳š: ã¯ã©ã€ã¢ã³ããµã€ãã§ã¯ïŒå¯Ÿå¿ããã«ãŒããžããã²ãŒã·ã§ã³ããåã«åŒã³åºãããŸãããã®ã¡ãœãã㯠**context** ã第äžåŒæ°ãšããŠåãåããcontext ã䜿ã£ãŠããŒã¿ãååŸããŠã³ã³ããŒãã³ãããŒã¿ãè¿ãããšãã§ããŸãã
+`data` ã¯ã³ã³ããŒãã³ããããŒãã£ã³ã°ãããåã«æ¯ååŒã³åºãããŸãïŒããŒãžã³ã³ããŒãã³ãã«éããŸãïŒããµãŒããŒãµã€ããããã¯ïŒè𳿳š: ã¯ã©ã€ã¢ã³ããµã€ãã§ã¯ïŒãŠãŒã¶ãŒãããŒãžé·ç§»ããåã«åŒã³åºãããŸãããã®ã¡ãœãã㯠**context** ã第äžåŒæ°ãšããŠåãåããcontext ã䜿ã£ãŠããŒã¿ãååŸããŠã³ã³ããŒãã³ãã®ããŒã¿ãè¿ãããšãã§ããŸãã
```js
export default {
@@ -30,9 +32,11 @@ export default {
-`data` ã¡ãœããå
ã§ãã³ã³ããŒãã³ãã®ã€ã³ã¹ã¿ã³ã¹ã« `this` ãçµç±ããŠã¢ã¯ã»ã¹ããŠã¯**ãããŸãã**ããªããªãããã¯ã³ã³ããŒãã³ãã **ã€ã³ã¹ã¿ã³ã¹åãããåã«** åŒã³åºãããããã§ãã
+`data` ã¡ãœããå
ã§ãã³ã³ããŒãã³ãã®ã€ã³ã¹ã¿ã³ã¹ã« `this` ãçµç±ããŠã¢ã¯ã»ã¹ããŠã¯**ãããŸãã**ããªããªã `data` ã¡ãœããã¯ã³ã³ããŒãã³ãã **ã€ã³ã¹ã¿ã³ã¹åãããåã«** åŒã³åºãããããã§ãã
+
+
-## Context
+## ã³ã³ããã¹ã
@@ -63,7 +67,7 @@ export default {
| `env` | ãªããžã§ã¯ã | ã¯ã©ã€ã¢ã³ãïŒãµãŒã㌠| `nuxt.config.js` ã§ã»ãããããç°å¢å€æ°ã詳现㯠[env API](/api/configuration-env) ãåç
§ããŠãã ãã |
| `params` | ãªããžã§ã¯ã | ã¯ã©ã€ã¢ã³ãïŒãµãŒã㌠| route.params ã®ãšã€ãªã¢ã¹ |
| `query` | ãªããžã§ã¯ã | ã¯ã©ã€ã¢ã³ãïŒãµãŒã㌠| route.query ã®ãšã€ãªã¢ã¹ |
-| `req` | [http.Request](https://nodejs.org/api/http.html#http_class_http_incomingmessage) | ãµãŒã㌠| Node.js ãµãŒããŒã®ãªã¯ãšã¹ããNuxt.js ãããã«ãŠã§ã¢ãšããŠäœ¿ã£ãŠãããšããreq ãªããžã§ã¯ãã¯å©çšããŠãããã¬ãŒã ã¯ãŒã¯ã«ãã£ãŠç°ãªããããããŸããã*`nuxt generate` ããã¯å©çšã§ããŸãã* |
-| `res` | [http.Response](https://nodejs.org/api/http.html#http_class_http_serverresponse) | ãµãŒã㌠| Node.js ãµãŒããŒã®ã¬ã¹ãã³ã¹ãNuxt.js ãããã«ãŠã§ã¢ãšããŠäœ¿ã£ãŠãããšããreq ãªããžã§ã¯ãã¯å©çšããŠãããã¬ãŒã ã¯ãŒã¯ã«ãã£ãŠç°ãªããããããŸããã*`nuxt generate` ããã¯å©çšã§ããŸãã* |
-| `redirect` | 颿° | ã¯ã©ã€ã¢ã³ãïŒãµãŒã㌠| å¥ã®ã«ãŒãã«ãªãã€ã¬ã¯ããããããšãã«äœ¿ããŸãããµãŒããŒãµã€ãã§äœ¿ãããã¹ããŒã¿ã¹ã³ãŒãã¯ããã©ã«ãã§ 302 ã§ãã`redirect([status,] path [, query])` |
+| `req` | [http.Request](https://nodejs.org/api/http.html#http_class_http_incomingmessage) | ãµãŒã㌠| Node.js ãµãŒããŒã®ãªã¯ãšã¹ããNuxt.js ãããã«ãŠã§ã¢ãšããŠäœ¿ã£ãŠãããšããreq ãªããžã§ã¯ãã¯å©çšããŠãããã¬ãŒã ã¯ãŒã¯ã«ãã£ãŠç°ãªããŸãã*`nuxt generate` ããã¯å©çšã§ããŸãã* |
+| `res` | [http.Response](https://nodejs.org/api/http.html#http_class_http_serverresponse) | ãµãŒã㌠| Node.js ãµãŒããŒã®ã¬ã¹ãã³ã¹ãNuxt.js ãããã«ãŠã§ã¢ãšããŠäœ¿ã£ãŠãããšããres ãªããžã§ã¯ãã¯å©çšããŠãããã¬ãŒã ã¯ãŒã¯ã«ãã£ãŠç°ãªããŸãã*`nuxt generate` ããã¯å©çšã§ããŸãã* |
+| `redirect` | 颿° | ã¯ã©ã€ã¢ã³ãïŒãµãŒã㌠| å¥ã®ã«ãŒãã«ãªãã€ã¬ã¯ããããããšãã«äœ¿ããŸãããµãŒããŒãµã€ãã§äœ¿ãããã¹ããŒã¿ã¹ã³ãŒãã¯ããã©ã«ãã§ 302 ã§ã: `redirect([status,] path [, query])` |
| `error` | 颿° | ã¯ã©ã€ã¢ã³ãïŒãµãŒã㌠| ãšã©ãŒããŒãžã衚瀺ãããããšãã«äœ¿ããŸã: `error(params)`ã`params` 㯠`statusCode` ãš `message` ãšãããã£ãŒã«ããæã£ãŠããå¿
èŠããããŸã |
diff --git a/ja/guide/async-data.md b/ja/guide/async-data.md
index fbb7b8c15..eb375ce02 100644
--- a/ja/guide/async-data.md
+++ b/ja/guide/async-data.md
@@ -16,7 +16,7 @@ description: Nuxt.js ã¯ã³ã³ããŒãã³ãã®ããŒã¿ãã»ããããå
-`data` ã¡ãœããã¯ã³ã³ããŒãã³ãïŒããŒãžã³ã³ããŒãã³ãã«éããŸãïŒãèªã¿èŸŒãŸããåã«æ¯ååŒã³åºãããŸãããµãŒããŒãµã€ãã¬ã³ããªã³ã°ãããŠãŒã¶ãŒãããŒãžãé·ç§»ããåã«ãåŒã³åºãããŸãããããŠãã®ã¡ãœããã¯ç¬¬äžåŒæ°ãšã㊠[context](/api#context) ãåãåããcontext ããããŒã¿ããã§ãããããã³ã³ããŒãã³ãã®ããŒã¿ãè¿ãããã«äœ¿ãããšãã§ããŸãã
+`data` ã¡ãœããã¯ã³ã³ããŒãã³ãïŒããŒãžã³ã³ããŒãã³ãã«éããŸãïŒãèªã¿èŸŒãŸããåã«æ¯ååŒã³åºãããŸãããµãŒããŒãµã€ãã¬ã³ããªã³ã°ãããŠãŒã¶ãŒãããŒãžãé·ç§»ããåã«ãåŒã³åºãããŸãããããŠãã®ã¡ãœããã¯ç¬¬äžåŒæ°ãšã㊠[context](/api#context) ãåãåããcontext ã䜿ã£ãŠããŒã¿ãååŸããŠã³ã³ããŒãã³ãã®ããŒã¿ãè¿ãããšãã§ããŸãã
From bb789066db09325610645f0d14bd7c94788d15c4 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Mon, 27 Feb 2017 20:58:36 +0900
Subject: [PATCH 035/129] Translate ja/api/pages-fetch.md
---
ja/api/index.md | 2 +-
ja/api/pages-fetch.md | 36 +++++++++++++++++++++++++++---------
2 files changed, 28 insertions(+), 10 deletions(-)
diff --git a/ja/api/index.md b/ja/api/index.md
index 7bc1e62f9..435e61012 100644
--- a/ja/api/index.md
+++ b/ja/api/index.md
@@ -20,7 +20,7 @@ description: Nuxt.js 㯠Vue.js ã® data ã¡ãœããã«æãå ããŠãã³ã³
-`data` ã¯ã³ã³ããŒãã³ããããŒãã£ã³ã°ãããåã«æ¯ååŒã³åºãããŸãïŒããŒãžã³ã³ããŒãã³ãã«éããŸãïŒããµãŒããŒãµã€ããããã¯ïŒè𳿳š: ã¯ã©ã€ã¢ã³ããµã€ãã§ã¯ïŒãŠãŒã¶ãŒãããŒãžé·ç§»ããåã«åŒã³åºãããŸãããã®ã¡ãœãã㯠**context** ã第äžåŒæ°ãšããŠåãåããcontext ã䜿ã£ãŠããŒã¿ãååŸããŠã³ã³ããŒãã³ãã®ããŒã¿ãè¿ãããšãã§ããŸãã
+`data` ã¯ã³ã³ããŒãã³ããããŒãã£ã³ã°ãããåã«æ¯ååŒã³åºãããŸãïŒããŒãžã³ã³ããŒãã³ãã«éããŸãïŒããµãŒããŒãµã€ããããã¯ïŒè𳿳š: ã¯ã©ã€ã¢ã³ããµã€ãã§ã¯ïŒãŠãŒã¶ãŒãããŒãžé·ç§»ããåã«åŒã³åºãããŸãããã®ã¡ãœããã¯ç¬¬äžåŒæ°ãšã㊠**context** ãåãåããcontext ã䜿ã£ãŠããŒã¿ãååŸããŠã³ã³ããŒãã³ãã®ããŒã¿ãè¿ãããšãã§ããŸãã
```js
export default {
diff --git a/ja/api/pages-fetch.md b/ja/api/pages-fetch.md
index aa8cf8c72..0bcf04280 100644
--- a/ja/api/pages-fetch.md
+++ b/ja/api/pages-fetch.md
@@ -1,19 +1,35 @@
---
-title: "API: The fetch Method"
-description: The fetch method is used to fill the store before rendering the page, it's like the data method except it doesn't set the component data.
+title: "API: fetch ã¡ãœãã"
+description: fetch ã¡ãœããã¯ãããŒãžãã¬ã³ããªã³ã°ãããåã«ãããŒã¿ãã¹ãã¢ã«å
¥ããããã«äœ¿ãããŸããã³ã³ããŒãã³ãã®ããŒã¿ãã»ããããªããšããç¹ãé€ããŠã¯ data ã¡ãœãããšãã䌌ãŠããŸãã
---
-# The fetch Method
+
+
-> The fetch method is used to fill the store before rendering the page, it's like the data method except it doesn't set the component data.
+
-- **Type:** `Function`
+# fetch ã¡ãœãã
-The `fetch` method, *if set*, is called every time before loading the component (**only for pages components**). It can be called from the server-side or before navigating to the corresponding route.
+
-The `fetch` method receives [the context](/api#context) as the first argument, we can use it to fetch some data and fill the store. To make the fetch method asynchronous, **return a Promise**, nuxt.js will wait for the promise to be resolved before rendering the Component.
+> fetch ã¡ãœããã¯ãããŒãžãã¬ã³ããªã³ã°ãããåã«ãããŒã¿ãã¹ãã¢ã«å
¥ããããã«äœ¿ãããŸããã³ã³ããŒãã³ãã®ããŒã¿ãã»ããããªããšããç¹ãé€ããŠã¯ data ã¡ãœãããšãã䌌ãŠããŸãã
+
+
+
+- **ã¿ã€ã:** `颿°`
+
+
+
+`fetch` ã¡ãœããã¯ã*ããã»ãããããŠããã°*ãã³ã³ããŒãã³ããããŒãã£ã³ã°ãããåã«æ¯ååŒã³åºãããŸãïŒ**ããŒãžã³ã³ããŒãã³ãã«éããŸã**ïŒããµãŒããŒãµã€ããããã¯ïŒè𳿳š: ã¯ã©ã€ã¢ã³ããµã€ãã§ã¯ïŒãŠãŒã¶ãŒãããŒãžé·ç§»ããåã«åŒã³åºãããŸãã
+
+
+
+`fetch` ã¡ãœããã¯ç¬¬äžåŒæ°ãšã㊠[context](/api#context) ãåãåããcontext ã䜿ã£ãŠããŒã¿ãååŸããŠããŒã¿ãã¹ãã¢ã«å
¥ããããšãã§ããŸããfetch ã¡ãœãããéåæã«ããããã«ã¯ **Promise ãè¿ãããã«ããŠãã ãã**ãNuxt.js ã¯ã³ã³ããŒãã³ããã¬ã³ããªã³ã°ãããåã« Promise ã解決ããããŸã§åŸ
ã¡ãŸãã
+
+
+
+`pages/index.vue` ã®äŸ:
-Example of `pages/index.vue`:
```html
Stars: {{ $store.state.stars }}
@@ -31,7 +47,9 @@ export default {
```
-You can also use async/await to make your code cleaner:
+
+
+async/await ã䜿ã£ãŠã³ãŒããã¹ãããªãããããšãã§ããŸã:
```html
From 8c2215cddc1b8cd13c62a223fec4d37bd82789a7 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Mon, 27 Feb 2017 21:12:47 +0900
Subject: [PATCH 036/129] Translate ja/api/pages-head.md
---
ja/api/pages-head.md | 31 +++++++++++++++++++++++--------
1 file changed, 23 insertions(+), 8 deletions(-)
diff --git a/ja/api/pages-head.md b/ja/api/pages-head.md
index 7df5436d6..d63e42b1f 100644
--- a/ja/api/pages-head.md
+++ b/ja/api/pages-head.md
@@ -1,17 +1,30 @@
---
-title: "API: The head Method"
-description: Nuxt.js uses vue-meta to update the `headers` and `html attributes` of your application.
+title: "API: head ã¡ãœãã"
+description: Nuxt.js ã¯ã¢ããªã±ãŒã·ã§ã³ã® `headers` åã³ `html attributes` ãæŽæ°ããããã« vue-meta ãšäœ¿ããŸãã
---
-# The head Method
+
+
-> Nuxt.js uses [vue-meta](https://github.com/declandewet/vue-meta) to update the `headers` and `html attributes` of your application.
+
-- **Type:** `Object` or `Function`
+# head ã¡ãœãã
-Use the `head` method to set the HTML Head tags for the current page.
+
-Your component data are available with `this` in the `head` method, you can use set custom meta tags with the page data.
+> Nuxt.js ã¯ã¢ããªã±ãŒã·ã§ã³ã® `headers` åã³ `html attributes` ãæŽæ°ããããã« [vue-meta](https://github.com/declandewet/vue-meta) ã䜿ããŸãã
+
+
+
+- **ã¿ã€ã:** `ãªããžã§ã¯ã` ãŸã㯠`颿°`
+
+
+
+çŸåšã®ããŒãžã® HTML ã® head ã¿ã°ãèšå®ããããã« `head` ã¡ãœãã䜿ããŸãã
+
+
+
+ã³ã³ããŒãã³ãã®ããŒã¿ã¯ `head` ã¡ãœããå
ã§ `this` ã䜿ã£ãŠå©çšã§ããŸããããŒãžã®ããŒã¿ã䜿ã£ãŠç¬èªã®ã¡ã¿ã¿ã°ãèšå®ããããšãã§ããŸãã
```html
@@ -37,4 +50,6 @@ export default {
```
-To avoid any duplication when used in child component, please give a unique identifier with the `hid` key, please [read more about it](https://github.com/declandewet/vue-meta#lists-of-tags).
+
+
+åã³ã³ããŒãã³ãå©çšããããšãã«ã¡ã¿æ
å ±ãéè€ããŠããŸãããšãé¿ããããã« `hid` ããŒã§ãŠããŒã¯èå¥åãäžããŠãã ãããããã«ã€ããŠããæ·±ãçè§£ããã«ã¯ [ãã¡ã](https://github.com/declandewet/vue-meta#lists-of-tags) ãåç
§ããŠãã ããã
From 9a692d5125fca2969196432cbf0b884b0e57a12b Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Mon, 27 Feb 2017 21:22:55 +0900
Subject: [PATCH 037/129] Translate ja/api/pages-layout.md
---
ja/api/pages-layout.md | 34 +++++++++++++++++++++++++---------
1 file changed, 25 insertions(+), 9 deletions(-)
diff --git a/ja/api/pages-layout.md b/ja/api/pages-layout.md
index 5d28db248..d7157785c 100644
--- a/ja/api/pages-layout.md
+++ b/ja/api/pages-layout.md
@@ -1,15 +1,26 @@
---
-title: "API: The layout Property"
-description: Every file (first level) in the layouts directory will create a custom layout accessible with the layout property in the page component.
+title: "API: layout ããããã£"
+description: layouts ãã£ã¬ã¯ããªã®ïŒç¬¬äžéå±€ã®ïŒãã¹ãŠã®ãã¡ã€ã«ã¯ããŒãžã³ã³ããŒãã³ãã® layout ããããã£ã§å©çšã§ããã«ã¹ã¿ã ã¬ã€ã¢ãŠããäœããŸãã
---
-# The layout Property
+
+
-> Every file (first level) in the layouts directory will create a custom layout accessible with the layout property in the page component.
+
-- **Type:** `String` (default: `'default'`)
+# layout ããããã£
-Use the `layout` key in your pages components to define which layout to use:
+
+
+> layouts ãã£ã¬ã¯ããªã®ïŒç¬¬äžéå±€ã®ïŒãã¹ãŠã®ãã¡ã€ã«ã¯ããŒãžã³ã³ããŒãã³ãã® layout ããããã£ã§å©çšã§ããã«ã¹ã¿ã ã¬ã€ã¢ãŠããäœããŸãã
+
+
+
+- **ã¿ã€ã:** `æåå`ïŒããã©ã«ã: `'default'`ïŒ
+
+
+
+ã©ã®ã¬ã€ã¢ãŠãã䜿ããæå®ããããã«ãããŒãžã³ã³ããŒãã³ãã§ `layout` ããŒã䜿ã£ãŠãã ãã:
```js
export default {
@@ -17,8 +28,13 @@ export default {
}
```
-In this example, Nuxt.js will include the `layouts/blog.vue` file as a layout for this page component.
+
+
+ãã®äŸã§ã¯ Nuxt.js 㯠`layouts/blog.vue` ãã¡ã€ã«ããã®ããŒãžã³ã³ããŒãã³ãã®ã¬ã€ã¢ãŠããšããŠã€ã³ã¯ã«ãŒãããŸãã
+
+
-Check the [demonstration video](https://www.youtube.com/watch?v=YOKnSTp7d38) to see it in action.
+åäœããæ§åã [ãã¢åç»](https://www.youtube.com/watch?v=YOKnSTp7d38) ã§ç¢ºèªããŠã¿ãŠãã ããã
-To understand how the layouts work with nuxt.js, take a look at the [layout documentation](/guide/views#layouts).
+
+Nuxt.js ã§ã¬ã€ã¢ãŠããã©ã®ããã«åäœããããããæ·±ãçè§£ããã«ã¯ [layout ããã¥ã¡ã³ã](/guide/views#layouts) ãåç
§ããŠãã ããã
From 2849373c8a78cab8a0c7f3c0fdb962e473f6aa77 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Mon, 27 Feb 2017 21:25:52 +0900
Subject: [PATCH 038/129] Make ja/api/pages-layout.md natural
---
ja/api/pages-layout.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ja/api/pages-layout.md b/ja/api/pages-layout.md
index d7157785c..f63163066 100644
--- a/ja/api/pages-layout.md
+++ b/ja/api/pages-layout.md
@@ -1,6 +1,6 @@
---
title: "API: layout ããããã£"
-description: layouts ãã£ã¬ã¯ããªã®ïŒç¬¬äžéå±€ã®ïŒãã¹ãŠã®ãã¡ã€ã«ã¯ããŒãžã³ã³ããŒãã³ãã® layout ããããã£ã§å©çšã§ããã«ã¹ã¿ã ã¬ã€ã¢ãŠããäœããŸãã
+description: layouts ãã£ã¬ã¯ããªã®ïŒç¬¬äžéå±€ã®ïŒãã¡ã€ã«ã¯ã«ã¹ã¿ã ã¬ã€ã¢ãŠãã«ãªããŸãããããã¯ããŒãžã³ã³ããŒãã³ãã® layout ããããã£ã§æå®ããŠå©çšã§ããŸãã
---
@@ -12,7 +12,7 @@ description: layouts ãã£ã¬ã¯ããªã®ïŒç¬¬äžéå±€ã®ïŒãã¹ãŠã®ã
-> layouts ãã£ã¬ã¯ããªã®ïŒç¬¬äžéå±€ã®ïŒãã¹ãŠã®ãã¡ã€ã«ã¯ããŒãžã³ã³ããŒãã³ãã® layout ããããã£ã§å©çšã§ããã«ã¹ã¿ã ã¬ã€ã¢ãŠããäœããŸãã
+> layouts ãã£ã¬ã¯ããªã®ïŒç¬¬äžéå±€ã®ïŒãã¡ã€ã«ã¯ã«ã¹ã¿ã ã¬ã€ã¢ãŠãã«ãªããŸãããããã¯ããŒãžã³ã³ããŒãã³ãã® layout ããããã£ã§æå®ããŠå©çšã§ããŸãã
From caa53835b44fb98558ac82cda52631a8ad993469 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Mon, 27 Feb 2017 21:33:40 +0900
Subject: [PATCH 039/129] Translate ja/api/pages-middleware.md
---
ja/api/pages-middleware.md | 57 +++++++++++++++++++++++++++++++-------
1 file changed, 47 insertions(+), 10 deletions(-)
diff --git a/ja/api/pages-middleware.md b/ja/api/pages-middleware.md
index 45c8155cc..693cbf03a 100644
--- a/ja/api/pages-middleware.md
+++ b/ja/api/pages-middleware.md
@@ -1,21 +1,46 @@
---
-title: "API: The middleware Property"
-description: Set the middleware for a specific page of the application.
+title: "API: middleware ããããã£"
+description: ã¢ããªã±ãŒã·ã§ã³ã®ç¹å®ã®ããŒãžã«ããã«ãŠã§ã¢ãèšå®ããŸãã
---
-# The middleware Property
+
+
-- Type: `String` or `Array`
- - Items: `String`
+
-Set the middleware for a specific page of the application.
+# middleware ããããã£
-Example:
+
+
+
+- ã¿ã€ã: `æåå` ãŸã㯠`é
å`
+ - èŠçŽ : `æåå`
+
+
+
+ã¢ããªã±ãŒã·ã§ã³ã®ç¹å®ã®ããŒãžã«ããã«ãŠã§ã¢ãèšå®ããŸãã
+
+
+
+äŸ:
`pages/secret.vue`
+
+
+
+
+
+
+
+
+
+
+
+
+
```html
- Secret page
+ ã·ãŒã¯ã¬ããããŒãž
```
-If you want to overwrite the default scroll behavior of nuxt.js, take a look at the [scrollBehavior option](/api/configuration-router#scrollBehavior).
+
+
+ãã Nuxt.js ã®ããã©ã«ãã®ã¹ã¯ããŒã«ã®æåãäžæžãããããšã㯠[scrollBehavior ãªãã·ã§ã³](/api/configuration-router#scrollBehavior) ãåç
§ããŠãã ããã
From 7f39c47651ce2af88fedf8128825f3afbc0e589b Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Mon, 27 Feb 2017 21:54:02 +0900
Subject: [PATCH 041/129] Make ja/api/pages-scrolltotop.md natural
---
ja/api/pages-scrolltotop.md | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/ja/api/pages-scrolltotop.md b/ja/api/pages-scrolltotop.md
index d7f9e7d52..d5d6197e2 100644
--- a/ja/api/pages-scrolltotop.md
+++ b/ja/api/pages-scrolltotop.md
@@ -1,6 +1,6 @@
---
title: "API: scrollToTop ããããã£"
-description: scrollToTop ããããã£ã䜿ããšãããŒãžãã¬ã³ããªã³ã°ããåã«ããããŸã§ã¹ã¯ããŒã«ãåŠãã Nuxt.js ã«äŒããããšãã§ããŸãã
+description: scrollToTop ããããã£ã§ãããŒãžãã¬ã³ããªã³ã°ããåã«ããããŸã§ã¹ã¯ããŒã«ãåŠããæå®ã§ããŸãã
---
@@ -12,7 +12,7 @@ description: scrollToTop ããããã£ã䜿ããšãããŒãžãã¬ã³ããª
-> scrollToTop ããããã£ã䜿ããšãããŒãžãã¬ã³ããªã³ã°ããåã«ããããŸã§ã¹ã¯ããŒã«ãåŠãã Nuxt.js ã«äŒããããšãã§ããŸãã
+> scrollToTop ããããã£ã§ãããŒãžãã¬ã³ããªã³ã°ããåã«ããããŸã§ã¹ã¯ããŒã«ãåŠããæå®ã§ããŸãã
@@ -20,7 +20,7 @@ description: scrollToTop ããããã£ã䜿ããšãããŒãžãã¬ã³ããª
-ããã©ã«ãã§ã¯ãNuxt.js ã¯å¥ã®ããŒãžãžé·ç§»ããéã«ããããŸã§ã¹ã¯ããŒã«ããŸãããåã«ãŒãããããšãã¯ãNuxt.js ã¯ã¹ã¯ããŒã«äœçœ®ãããŒãããŸããããåã«ãŒããã¬ã³ããªã³ã°ãããšãã«ããããŸã§ã¹ã¯ããŒã«ãããããšã㯠`scrollToTop: true` ãšèšå®ããŠãã ãã:
+å¥ã®ããŒãžãžé·ç§»ããéã«ããããŸã§ã¹ã¯ããŒã«ããŸãããåã«ãŒãããããšãã¯ã¹ã¯ããŒã«äœçœ®ãããŒãããããšããã®ã Nuxt.js ã®ããã©ã«ãã®æåã§ããåã«ãŒããã¬ã³ããªã³ã°ãããšãã«ããããŸã§ã¹ã¯ããŒã«ãããããšã㯠`scrollToTop: true` ãšèšå®ããŠãã ãã:
```html
@@ -36,4 +36,4 @@ export default {
-ãã Nuxt.js ã®ããã©ã«ãã®ã¹ã¯ããŒã«ã®æåãäžæžãããããšã㯠[scrollBehavior ãªãã·ã§ã³](/api/configuration-router#scrollBehavior) ãåç
§ããŠãã ããã
+ã¹ã¯ããŒã«ã«ã€ã㊠Nuxt.js ã®ããã©ã«ãã®æåãäžæžãããããšã㯠[scrollBehavior ãªãã·ã§ã³](/api/configuration-router#scrollBehavior) ãåç
§ããŠãã ããã
From a6e9540fc17a744d7c01de9ed3d87ec165b821b7 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Mon, 27 Feb 2017 22:48:01 +0900
Subject: [PATCH 042/129] Translate ja/api/pages-transition.md
---
ja/api/pages-transition.md | 133 +++++++++++++++++++++++++++----------
1 file changed, 98 insertions(+), 35 deletions(-)
diff --git a/ja/api/pages-transition.md b/ja/api/pages-transition.md
index 085761cf0..341b97521 100644
--- a/ja/api/pages-transition.md
+++ b/ja/api/pages-transition.md
@@ -1,30 +1,56 @@
---
-title: "API: The transition Property"
-description: Nuxt.js uses the transition component to let you create amazing transitions/animations between your pages.
+title: "API: transition ããããã£"
+description: Nuxt.js ã§ã¯ transition ã³ã³ããŒãã³ãã䜿ã£ãŠãããŒãžéãé·ç§»ããéã®ã€ã€æãã®ãã©ã³ãžã·ã§ã³/ã¢ãã¡ãŒã·ã§ã³ãè¡ãããšãã§ããŸãã
---
-# The transition Property
+
+
-> Nuxt.js uses the [<transition>](http://vuejs.org/v2/guide/transitions.html#Transitioning-Single-Elements-Components) component to let you create amazing transitions/animations between your pages.
+
-- **Type:** `String` or `Object` or `Function`
+# transition ããããã£
-To define a custom transition for a specific route, simply add the `transition` key to the page component.
+
+
+> Nuxt.js 㯠[<transition>](http://vuejs.org/v2/guide/transitions.html#Transitioning-Single-Elements-Components) ã³ã³ããŒãã³ãã䜿ã£ãŠãããŒãžéãé·ç§»ããéã®ã€ã€æãã®ãã©ã³ãžã·ã§ã³/ã¢ãã¡ãŒã·ã§ã³ãè¡ãããšãã§ããŸãã
+
+
+
+- **ã¿ã€ã:** `æåå` ãŸã㯠`ãªããžã§ã¯ã` ãŸã㯠`颿°`
+
+
+
+ç¹å®ã®ã«ãŒãã«å¯ŸããŠã«ã¹ã¿ã ãã©ã³ãžã·ã§ã³ãèšå®ããã«ã¯ãããŒãžã³ã³ããŒãã³ãã« `transition` ããŒã远å ããŠãã ããã
+
+
+
+
+
+
+
+
+
+
+
```js
export default {
- // Can be a String
+ // æååãæå®ã§ããŸã
transition: ''
- // Or an Object
+ // ãŸãã¯ãªããžã§ã¯ã
transition: {}
- // or a Function
+ // ãŸãã¯é¢æ°
transition (to, from) {}
}
```
-## String
+
+
+## æåå
+
+
-If the `transition` key is set as a string, it will be used as the `transition.name`.
+`transition` ããŒã«æååãã»ããããããšã㯠`transition.name` ãšããŠçšããããŸãã
```js
export default {
@@ -32,15 +58,21 @@ export default {
}
```
-Nuxt.js will use these settings to set the component as follows:
+
+
+Nuxt.js ã¯ãããã®èšå®ããäžèšã®ããã«ã³ã³ããŒãã³ããã»ããããããã«äœ¿ããŸã:
```html
```
-## Object
+
+
+## ãªããžã§ã¯ã
-If the `transition` key is set as an object:
+
+
+`transition` ããŒã«ãªããžã§ã¯ããã»ããããããšã:
```js
export default {
@@ -51,29 +83,47 @@ export default {
}
```
-Nuxt.js will use these settings to set the component as follows:
+
+
+Nuxt.js ã¯ãããã®èšå®ããäžèšã®ããã«ã³ã³ããŒãã³ããã»ããããããã«äœ¿ããŸã:
```html
```
-The following properties that the `transition` object can have:
+
+
+`transition` ãªããžã§ã¯ããæã€ããšãã§ããããããã£ã¯æ¬¡ã®ãšãã:
-| key | Type | Default | definition |
+
+
+
+
+
+
+
+
+
+
+
+
+
+| ã㌠| ã¿ã€ã | ããã©ã«ã | å®çŸ© |
|------|------|---------|-----------|
-| `name` | String | `"page"` | The transition name applied on all the routes transitions. |
-| `mode` | String | `"out-in"` | The transition mode applied on all routes, see [Vue.js documentation](http://vuejs.org/v2/guide/transitions.html#Transition-Modes). |
-| `css` | Boolean | `true` | Whether to apply CSS transition classes. Defaults to true. If set to false, will only trigger JavaScript hooks registered via component events. |
-| `type` | String | `n/a` | Specify the type of transition events to wait for to determine transition end timing. Available values are "transition" and "animation". By default, it will automatically detect the type that has a longer duration. |
-| `enterClass` | String | `n/a` | The starting state of the transition class. See [Vue.js documentation](https://vuejs.org/v2/guide/transitions.html#Custom-Transition-Classes) |
-| `enterToClass` | String | `n/a` | The ending state for the transition. See [Vue.js documentation](https://vuejs.org/v2/guide/transitions.html#Custom-Transition-Classes) |
-| `enterActiveClass` | String | `n/a` | The class applied across the entire transition duration. See [Vue.js documentation](https://vuejs.org/v2/guide/transitions.html#Custom-Transition-Classes) |
-| `leaveClass` | String | `n/a` | The starting state of the transition class. See [Vue.js documentation](https://vuejs.org/v2/guide/transitions.html#Custom-Transition-Classes) |
-| `leaveToClass` | String | `n/a` | The ending state for the transition. See [Vue.js documentation](https://vuejs.org/v2/guide/transitions.html#Custom-Transition-Classes) |
-| `leaveActiveClass` | String | `n/a` | The class applied across the entire transition duration. See [Vue.js documentation](https://vuejs.org/v2/guide/transitions.html#Custom-Transition-Classes) |
+| `name` | æåå | `"page"` | ãã¹ãŠã®ãã©ã³ãžã·ã§ã³æã«é©çšããããã©ã³ãžã·ã§ã³å |
+| `mode` | æåå | `"out-in"` | ãã¹ãŠã®ãã©ã³ãžã·ã§ã³æã«é©çšããããã©ã³ãžã·ã§ã³ã¢ãŒãã詳现㯠[Vue.js ã®ããã¥ã¡ã³ã](http://vuejs.org/v2/guide/transitions.html#Transition-Modes) åç
§ |
+| `css` | ããŒãªã¢ã³ | `true` | CSS ãã©ã³ãžã·ã§ã³ã¯ã©ã¹ãé©çšãããåŠããããã©ã«ã㯠true ã§ããfalse ãèšå®ãããšãã³ã³ããŒãã³ãã®ã€ãã³ãã§ç»é²ããã JavaScript ããã¯ã®ã¿ãããªã¬ãŒã«ãªããŸã |
+| `type` | æåå | `n/a` | ãã©ã³ãžã·ã§ã³çµäºã®ã¿ã€ãã³ã°ãå€å®ããããã«åŸ
ã¡åãããã©ã³ãžã·ã§ã³ã®ã€ãã³ãã¿ã€ããæå®ããŸãã"transition" ãŸã㯠"animation" ãæå®ã§ããŸããããã©ã«ãã§ã¯ãããæéããããã»ãã®ã¿ã€ããèªåçã«éžã°ããŸã |
+| `enterClass` | æåå | `n/a` | ãã©ã³ãžã·ã§ã³éå§æã®ç¶æ
ã®ã¯ã©ã¹ã§ãã詳现㯠[Vue.js ã®ããã¥ã¡ã³ã](https://vuejs.org/v2/guide/transitions.html#Custom-Transition-Classes) åç
§ |
+| `enterToClass` | æåå | `n/a` | ãã©ã³ãžã·ã§ã³çµäºæã®ç¶æ
ã®ã¯ã©ã¹ã§ãã詳现㯠[Vue.js ã®ããã¥ã¡ã³ã](https://vuejs.org/v2/guide/transitions.html#Custom-Transition-Classes) åç
§ |
+| `enterActiveClass` | æåå | `n/a` | ãã©ã³ãžã·ã§ã³äžã«é©çšãããã¯ã©ã¹ã§ãã詳现㯠[Vue.js ã®ããã¥ã¡ã³ã](https://vuejs.org/v2/guide/transitions.html#Custom-Transition-Classes) åç
§ |
+| `leaveClass` | æåå | `n/a` | ãã©ã³ãžã·ã§ã³éå§æã®ç¶æ
ã®ã¯ã©ã¹ã§ãã詳现㯠[Vue.js ã®ããã¥ã¡ã³ã](https://vuejs.org/v2/guide/transitions.html#Custom-Transition-Classes) åç
§ |
+| `leaveToClass` | æåå | `n/a` | ãã©ã³ãžã·ã§ã³çµäºæã®ç¶æ
ã®ã¯ã©ã¹ã§ãã詳现㯠[Vue.js ã®ããã¥ã¡ã³ã](https://vuejs.org/v2/guide/transitions.html#Custom-Transition-Classes) åç
§ |
+| `leaveActiveClass` | æåå | `n/a` | ãã©ã³ãžã·ã§ã³äžã«é©çšãããã¯ã©ã¹ã§ãã詳现㯠[Vue.js ã®ããã¥ã¡ã³ã](https://vuejs.org/v2/guide/transitions.html#Custom-Transition-Classes) åç
§ |
+
-You can also define methods in the `transition`, these are for the [JavaScript hooks](https://vuejs.org/v2/guide/transitions.html#JavaScript-Hooks):
+`transition` ã®äžã§ã¡ãœãããå®çŸ©ããããšãã§ããã¡ãœãã㯠[JavaScript ããã¯](https://vuejs.org/v2/guide/transitions.html#JavaScript-Hooks) ã«äœ¿ãããŸã:
- beforeEnter(el)
- enter(el, done)
@@ -84,11 +134,17 @@ You can also define methods in the `transition`, these are for the [JavaScript h
- afterLeave(el)
- leaveCancelled(el)
-*Note: itâs also a good idea to explicitly add `css: false` for JavaScript-only transitions so that Vue can skip the CSS detection. This also prevents CSS rules from accidentally interfering with the transition.*
+
+
+*ã¡ã¢: JavaScript ã®ã¿ã®ãã©ã³ãžã·ã§ã³ã®ããã«æç€ºçã« `css: false` ã远å ããŠããã®ã¯è¯ãã¢ã€ãã£ã¢ã§ãããã㯠Vue 㯠CSS å€å®ãã¹ããããããŸãããŸã誀ã£ãŠ CSS ã«ãŒã«ããã©ã³ãžã·ã§ã³ã«å¹²æžããã®ãé²ããŸãã*
-## Function
+
-If the `transition` key is set as a function:
+## 颿°
+
+
+
+`transition` ããŒã«é¢æ°ãã»ããããããšã:
```js
export default {
@@ -99,7 +155,14 @@ export default {
}
```
-Transitions applied on navigation:
-- `/` to `/posts` => `slide-left`
-- `/posts` to `/posts?page=3` => `slide-left`
-- `/posts?page=3` to `/posts?page=2` => `slide-right`
+
+
+ãã©ã³ãžã·ã§ã³ã¯ããŒãžé·ç§»æã«é©çšãããŸã:
+
+
+
+
+
+- `/` ãã `/posts` ãžé·ç§»ãããšã => `slide-left`
+- `/posts` ãã `/posts?page=3` ãžé·ç§»ãããšã => `slide-left`
+- `/posts?page=3` ãã `/posts?page=2` ãžé·ç§»ãããšã => `slide-right`
From ec9d7fad620f86ee68757e9bdf7d52cb3f1ae70a Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Mon, 27 Feb 2017 22:53:15 +0900
Subject: [PATCH 043/129] Make ja/api/pages-transition.md natural
---
ja/api/pages-transition.md | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/ja/api/pages-transition.md b/ja/api/pages-transition.md
index 341b97521..689cdd8cc 100644
--- a/ja/api/pages-transition.md
+++ b/ja/api/pages-transition.md
@@ -1,6 +1,6 @@
---
title: "API: transition ããããã£"
-description: Nuxt.js ã§ã¯ transition ã³ã³ããŒãã³ãã䜿ã£ãŠãããŒãžéãé·ç§»ããéã®ã€ã€æãã®ãã©ã³ãžã·ã§ã³/ã¢ãã¡ãŒã·ã§ã³ãè¡ãããšãã§ããŸãã
+description: Nuxt.js ã§ã¯ transition ã³ã³ããŒãã³ãã䜿ã£ãŠãããŒãžéãé·ç§»ããéã®ãã©ã³ãžã·ã§ã³/ã¢ãã¡ãŒã·ã§ã³ãè¡ãããšãã§ããŸãã
---
@@ -12,7 +12,7 @@ description: Nuxt.js ã§ã¯ transition ã³ã³ããŒãã³ãã䜿ã£ãŠãã
-> Nuxt.js 㯠[<transition>](http://vuejs.org/v2/guide/transitions.html#Transitioning-Single-Elements-Components) ã³ã³ããŒãã³ãã䜿ã£ãŠãããŒãžéãé·ç§»ããéã®ã€ã€æãã®ãã©ã³ãžã·ã§ã³/ã¢ãã¡ãŒã·ã§ã³ãè¡ãããšãã§ããŸãã
+> Nuxt.js 㯠[<transition>](http://vuejs.org/v2/guide/transitions.html#Transitioning-Single-Elements-Components) ã³ã³ããŒãã³ãã䜿ã£ãŠãããŒãžéãé·ç§»ããéã®ãã©ã³ãžã·ã§ã³/ã¢ãã¡ãŒã·ã§ã³ãè¡ãããšãã§ããŸãã
@@ -60,7 +60,7 @@ export default {
-Nuxt.js ã¯ãããã®èšå®ããäžèšã®ããã«ã³ã³ããŒãã³ããã»ããããããã«äœ¿ããŸã:
+äžã®ããã«èšå®ããããšãã³ã³ããŒãã³ãã¯æ¬¡ã®ããã«ã»ãããããŸã:
```html
@@ -85,7 +85,7 @@ export default {
-Nuxt.js ã¯ãããã®èšå®ããäžèšã®ããã«ã³ã³ããŒãã³ããã»ããããããã«äœ¿ããŸã:
+äžã®ããã«èšå®ããããšãã³ã³ããŒãã³ãã¯æ¬¡ã®ããã«ã»ãããããŸã:
```html
@@ -93,7 +93,7 @@ Nuxt.js ã¯ãããã®èšå®ããäžèšã®ããã«ã³ã³ããŒãã³ããã»
-`transition` ãªããžã§ã¯ããæã€ããšãã§ããããããã£ã¯æ¬¡ã®ãšãã:
+`transition` ãªããžã§ã¯ããæã€ããšãã§ããããããã£ã¯ä»¥äžã®ãšãã:
@@ -123,7 +123,7 @@ Nuxt.js ã¯ãããã®èšå®ããäžèšã®ããã«ã³ã³ããŒãã³ããã»
-`transition` ã®äžã§ã¡ãœãããå®çŸ©ããããšãã§ããã¡ãœãã㯠[JavaScript ããã¯](https://vuejs.org/v2/guide/transitions.html#JavaScript-Hooks) ã«äœ¿ãããŸã:
+`transition` ã®äžã§ã¡ãœãããå®çŸ©ããããšãã§ããã¡ãœãã㯠[JavaScript ããã¯](https://vuejs.org/v2/guide/transitions.html#JavaScript-Hooks) ã§äœ¿ãããŸã:
- beforeEnter(el)
- enter(el, done)
@@ -157,7 +157,7 @@ export default {
-ãã©ã³ãžã·ã§ã³ã¯ããŒãžé·ç§»æã«é©çšãããŸã:
+ãã©ã³ãžã·ã§ã³ã¯åããŒãžé·ç§»æã«æ¬¡ã®ããã«é©çšãããŸã:
From 6cf7f85b8786a9fa7b28c3da7d99ee5f6d799932 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Mon, 27 Feb 2017 23:03:39 +0900
Subject: [PATCH 044/129] Translate ja/api/pages-validate.md
---
ja/api/pages-validate.md | 49 ++++++++++++++++++++++++++++++++--------
1 file changed, 39 insertions(+), 10 deletions(-)
diff --git a/ja/api/pages-validate.md b/ja/api/pages-validate.md
index 9ed52230d..20787e05e 100644
--- a/ja/api/pages-validate.md
+++ b/ja/api/pages-validate.md
@@ -1,29 +1,58 @@
---
-title: "API: The validate Method"
-description: Nuxt.js lets you define a validator method inside your dynamic route component.
+title: "API: validate ã¡ãœãã"
+description: Nuxt.js ã§ã¯åçãªã«ãŒãã£ã³ã°ãè¡ãã³ã³ããŒãã³ãå
ã§ããªããŒã·ã§ã³ã¡ãœãããå®çŸ©ã§ããŸãã
---
-# The validate Method
+
+
-> Nuxt.js lets you define a validator method inside your dynamic route component.
+
-- **Type:** `Function`
+# validate ã¡ãœãã
+
+
+
+> Nuxt.js ã§ã¯åçãªã«ãŒãã£ã³ã°ãè¡ãã³ã³ããŒãã³ãå
ã§ããªããŒã·ã§ã³ã¡ãœãããå®çŸ©ã§ããŸãã
+
+
+
+- **ã¿ã€ã:** `颿°`
+
+
+
+
+
+
+
```js
validate({ params, query }) {
- return true // if the params are valid
- return false // will stop Nuxt.js to render the route and display the error page
+ return true // params ããªããŒã·ã§ã³ãééãããšã
+ return false // Nuxt.js ãã«ãŒããã¬ã³ããªã³ã°ããã®ãäžæ¢ããŠããšã©ãŒããŒãžã衚瀺ããã
}
```
-Nuxt.js lets you define a validator method inside your dynamic route component (In this example: `pages/users/_id.vue`).
+
+
+Nuxt.js ã§ã¯åçãªã«ãŒãã£ã³ã°ãè¡ãã³ã³ããŒãã³ãå
ã§ããªããŒã·ã§ã³ã¡ãœãããå®çŸ©ã§ããŸãïŒäžèšã®äŸã¯ `pages/users/_id.vue` å
ã§ãïŒ
+
+
+
+ããªããŒã·ã§ã³ã¡ãœããã `true` ãè¿ããªããšã㯠Nuxt.js ã¯èªåçã« 404 ãšã©ãŒããŒãžãããŒãããŸãã
-If the validate method does not return `true`, Nuxt.js will automatically load the 404 error page.
+
+
+
+
+
+
+
+
```js
export default {
validate ({ params }) {
- // Must be a number
+ // æ°å€ã§ãªããã°ãªããªã
return /^\d+$/.test(params.id)
}
}
From e818f1e268a2b643ee2987f9f094e50ba92eea32 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Mon, 27 Feb 2017 23:10:06 +0900
Subject: [PATCH 045/129] Translate ja/api/components-nuxt.md
---
ja/api/components-nuxt.md | 23 +++++++++++++++++------
1 file changed, 17 insertions(+), 6 deletions(-)
diff --git a/ja/api/components-nuxt.md b/ja/api/components-nuxt.md
index 7f1f0a7aa..97b4c6448 100644
--- a/ja/api/components-nuxt.md
+++ b/ja/api/components-nuxt.md
@@ -1,13 +1,22 @@
---
-title: "API: The Component"
-description: Display the page components inside a layout.
+title: "API: ã³ã³ããŒãã³ã"
+description: ã¬ã€ã¢ãŠãå
ã§ããŒãžã³ã³ããŒãã³ãã衚瀺ããŸãã
---
-# The <nuxt> Component
+
+
-> This component is used only in [layouts](/guide/views#layouts) to display the page components.
+
-Example (`layouts/default.vue`):
+# <nuxt> ã³ã³ããŒãã³ã
+
+
+
+> ãã®ã³ã³ããŒãã³ã㯠[ã¬ã€ã¢ãŠã](/guide/views#layouts) å
ã§ã®ã¿ãããŒãžã³ã³ããŒãã³ãã衚瀺ããããã«äœ¿ãããŸãã
+
+
+
+äŸïŒ`layouts/default.vue`ïŒ:
```html
@@ -19,4 +28,6 @@ Example (`layouts/default.vue`):
```
-To see an example, take a look at the [layouts example](/examples/layouts).
+
+
+äŸãèŠãããšã㯠[ã¬ã€ã¢ãŠãã®äŸ](/examples/layouts) ãåç
§ããŠãã ããã
From 0173395caeaf7f2b1b6ff8edf23fc9507810263c Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Mon, 27 Feb 2017 23:38:44 +0900
Subject: [PATCH 046/129] Translate ja/api/components-nuxt-child.md
---
ja/api/components-nuxt-child.md | 32 ++++++++++++++++++++++++--------
ja/api/components-nuxt.md | 2 +-
2 files changed, 25 insertions(+), 9 deletions(-)
diff --git a/ja/api/components-nuxt-child.md b/ja/api/components-nuxt-child.md
index 5cdb900d9..c7dce9c0f 100644
--- a/ja/api/components-nuxt-child.md
+++ b/ja/api/components-nuxt-child.md
@@ -1,13 +1,22 @@
---
-title: "API: The Component"
-description: Display the current page
+title: "API: ã³ã³ããŒãã³ã"
+description: çŸåšã®ããŒãžã衚瀺ããŸãã
---
-# The <nuxt-child> Component
+
+
-> This component is used for displaying the children components in a [nested route](/guide/routing#nested-routes).
+
-Example:
+# <nuxt-child> ã³ã³ããŒãã³ã
+
+
+
+> ãã®ã³ã³ããŒãã³ã㯠[ãã¹ãããã«ãŒãã£ã³ã°](/guide/routing#nested-routes) å
ã§åã³ã³ããŒãã³ãã衚瀺ããããã«äœ¿ãããŸãã
+
+
+
+äŸ:
```bash
-| pages/
@@ -16,7 +25,10 @@ Example:
---| parent.vue
```
-This file tree will generate these routes:
+
+
+ãã®ãã¡ã€ã«ã®æšæ§é ããæ¬¡ã®ã«ãŒãã£ã³ã°ãçæãããŸã:
+
```js
[
{
@@ -34,7 +46,9 @@ This file tree will generate these routes:
]
```
-To display the `child.vue` component, I have to insert ` ` inside `pages/parent.vue`:
+
+
+`child.vue` ã³ã³ããŒãã³ãã衚瀺ããã«ã¯ `pages/parent.vue` å
ã« ` ` ãæ¿å
¥ããå¿
èŠããããŸã:
```html
@@ -45,4 +59,6 @@ To display the `child.vue` component, I have to insert ` ` inside `p
```
-To see an example, take a look at the [nested-routes example](/examples/nested-routes).
+
+
+å®éã®äŸãèŠãããšã㯠[ãã¹ãããã«ãŒãã£ã³ã°ã®äŸ](/examples/nested-routes) ãåç
§ããŠãã ããã
diff --git a/ja/api/components-nuxt.md b/ja/api/components-nuxt.md
index 97b4c6448..c8b301976 100644
--- a/ja/api/components-nuxt.md
+++ b/ja/api/components-nuxt.md
@@ -30,4 +30,4 @@ description: ã¬ã€ã¢ãŠãå
ã§ããŒãžã³ã³ããŒãã³ãã衚瀺ããŸ
-äŸãèŠãããšã㯠[ã¬ã€ã¢ãŠãã®äŸ](/examples/layouts) ãåç
§ããŠãã ããã
+å®éã®äŸãèŠãããšã㯠[ã¬ã€ã¢ãŠãã®äŸ](/examples/layouts) ãåç
§ããŠãã ããã
From 687328b2986f04b84ee92f694c5d80761195383d Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Mon, 27 Feb 2017 23:53:03 +0900
Subject: [PATCH 047/129] Translate ja/api/components-nuxt-link.md
---
ja/api/components-nuxt-link.md | 40 ++++++++++++++++++++++++++--------
1 file changed, 31 insertions(+), 9 deletions(-)
diff --git a/ja/api/components-nuxt-link.md b/ja/api/components-nuxt-link.md
index 910a18504..5373931bc 100644
--- a/ja/api/components-nuxt-link.md
+++ b/ja/api/components-nuxt-link.md
@@ -1,23 +1,45 @@
---
-title: "API: The Component"
-description: Link the pages between them with nuxt-link.
+title: "API: ã³ã³ããŒãã³ã"
+description: ããŒãžéã nuxt-link ã䜿ã£ãŠãªã³ã¯ãããŸãã
---
-# The <nuxt-link> Component
+
+
-> This component is used to link the page components between them.
+
-At the moment, `` is the same as [``](https://router.vuejs.org/en/api/router-link.html), so we recommend you to see how to use it on the [vue-router documentation](https://router.vuejs.org/en/api/router-link.html).
+# The <nuxt-link> ã³ã³ããŒãã³ã
-Example (`pages/index.vue`):
+
+
+ããŒãžéã nuxt-link ã䜿ã£ãŠãªã³ã¯ãããŸãã
+
+
+
+çŸåšã®ãšãã `` 㯠[``](https://router.vuejs.org/en/api/router-link.html) ãšåãã§ãããããã£ãŠããã®ã³ã³ããŒãã³ãã®äœ¿ãæ¹ã [vue-router ã®ããã¥ã¡ã³ã](https://router.vuejs.org/en/api/router-link.html) ã§ç¢ºèªããããšããå§ãããŸãã
+
+
+
+äŸïŒ`pages/index.vue`ïŒ:
+
+
+
+
+
+
+
+
+
```html
-
Home page
- About
+ ããŒã
+ ãã®ãµã€ãã«ã€ããŠ
```
-In the future, we will add features to the nuxt-link component, like pre-fetching on the background for improving the responsiveness of nuxt.js applications.
+
+
+å°æ¥ã«ãããŠã¯ãNuxt.js ã¢ããªã±ãŒã·ã§ã³ã®å¿çæ§ãæ¹åããããã«ããã¯ã°ã©ã³ãã§ããªãã§ãããããããªæ©èœã nuxt-link ã³ã³ããŒãã³ãã«è¿œå ããäºå®ã§ãã
From e4ae920cae0c19fa1c4b7a9bfba9f6fefce5ca23 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Tue, 28 Feb 2017 00:44:16 +0900
Subject: [PATCH 048/129] Translate ja/examples/cached-components.md
---
ja/examples/cached-components.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ja/examples/cached-components.md b/ja/examples/cached-components.md
index 1f95cb110..3d7fd91b9 100644
--- a/ja/examples/cached-components.md
+++ b/ja/examples/cached-components.md
@@ -1,6 +1,6 @@
---
-title: Cached Components
-description: Cached Components example with Nuxt.js
+title: ãã£ãã·ã¥ãããã³ã³ããŒãã³ã
+description: Nuxt.js ã®ãã£ãã·ã¥ãããã³ã³ããŒãã³ãã®äŸ
github: cached-components
documentation: /api/configuration-cache
---
\ No newline at end of file
From 7976c5223b498d5c4001d923b5bc8061aefdeddd Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Tue, 28 Feb 2017 00:45:00 +0900
Subject: [PATCH 049/129] Make ja/examples/cached-components.md natural
---
ja/examples/cached-components.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ja/examples/cached-components.md b/ja/examples/cached-components.md
index 3d7fd91b9..225e07e29 100644
--- a/ja/examples/cached-components.md
+++ b/ja/examples/cached-components.md
@@ -1,6 +1,6 @@
---
-title: ãã£ãã·ã¥ãããã³ã³ããŒãã³ã
-description: Nuxt.js ã®ãã£ãã·ã¥ãããã³ã³ããŒãã³ãã®äŸ
+title: ã³ã³ããŒãã³ãã®ãã£ãã·ã¥
+description: Nuxt.js ã®ã³ã³ããŒãã³ãã®ãã£ãã·ã¥ã®äŸ
github: cached-components
documentation: /api/configuration-cache
---
\ No newline at end of file
From 57ab2562b847d431df938d18a9ddc0bd05caec48 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Tue, 28 Feb 2017 00:45:22 +0900
Subject: [PATCH 050/129] Translate ja/examples/async-data.md
---
ja/examples/async-data.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ja/examples/async-data.md b/ja/examples/async-data.md
index 0fa258040..2aee6b856 100644
--- a/ja/examples/async-data.md
+++ b/ja/examples/async-data.md
@@ -1,6 +1,6 @@
---
-title: Async Data
-description: Async Data example with Nuxt.js
+title: éåæããŒã¿
+description: Nuxt.js ã§éåæããŒã¿ãåãæ±ãäŸ
github: async-data
documentation: /guide/async-data
---
From 05c655dfc41362f8e95e19a7f4f8f0d782e921e1 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Tue, 28 Feb 2017 00:46:46 +0900
Subject: [PATCH 051/129] Translate ja/examples/custom-loading.md
---
ja/examples/custom-loading.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ja/examples/custom-loading.md b/ja/examples/custom-loading.md
index d2715818b..d7c8a58e1 100644
--- a/ja/examples/custom-loading.md
+++ b/ja/examples/custom-loading.md
@@ -1,6 +1,6 @@
---
-title: Custom Loading Component
-description: Custom Loading Component example with Nuxt.js
+title: ã«ã¹ã¿ã ããŒãã£ã³ã°ã³ã³ããŒãã³ã
+description: Nuxt.js ã®ã«ã¹ã¿ã ããŒãã£ã³ã°ã³ã³ããŒãã³ãã®äŸ
github: custom-loading
livedemo: https://custom-loading.nuxtjs.org
documentation: /api/configuration-loading
From d60612f09c261cae31cb585e2db1467ff7a7bdb1 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Tue, 28 Feb 2017 00:47:58 +0900
Subject: [PATCH 052/129] Translate ja/examples/custom-routes.md
---
ja/examples/custom-routes.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ja/examples/custom-routes.md b/ja/examples/custom-routes.md
index a9887d9d1..1421a27cd 100644
--- a/ja/examples/custom-routes.md
+++ b/ja/examples/custom-routes.md
@@ -1,6 +1,6 @@
---
-title: Custom Routes
-description: Custom Routes example with Nuxt.js
+title: ã«ã¹ã¿ã ã«ãŒãã£ã³ã°
+description: Nuxt.js ã§ã«ã¹ã¿ã ã«ãŒãã£ã³ã°ãè¡ãäŸ
github: custom-routes
livedemo: https://custom-routes.nuxtjs.org
documentation: /guide/routing#dynamic-routes
From db9419425bd6931dc691b3fed6f58cb317c45ced Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Tue, 28 Feb 2017 00:49:07 +0900
Subject: [PATCH 053/129] Translate ja/examples/global-css.md
---
ja/examples/global-css.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ja/examples/global-css.md b/ja/examples/global-css.md
index ecf624f44..20fa78f76 100644
--- a/ja/examples/global-css.md
+++ b/ja/examples/global-css.md
@@ -1,6 +1,6 @@
---
-title: Global CSS
-description: Global CSS example with Nuxt.js
+title: ã°ããŒãã« CSS
+description: ã°ããŒãã« CSS ã®äŸ
github: global-css
livedemo: https://global-css.nuxtjs.org
documentation: /api/configuration-css
From b68c419d59bf84478390fa650c30354bc92c230c Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Tue, 28 Feb 2017 00:55:01 +0900
Subject: [PATCH 054/129] Improve translation
---
ja/examples/async-data.md | 3 +++
ja/examples/cached-components.md | 7 +++++--
ja/examples/custom-loading.md | 5 ++++-
ja/examples/custom-routes.md | 5 ++++-
ja/examples/global-css.md | 3 +++
5 files changed, 19 insertions(+), 4 deletions(-)
diff --git a/ja/examples/async-data.md b/ja/examples/async-data.md
index 2aee6b856..9084ffe9e 100644
--- a/ja/examples/async-data.md
+++ b/ja/examples/async-data.md
@@ -4,3 +4,6 @@ description: Nuxt.js ã§éåæããŒã¿ãåãæ±ãäŸ
github: async-data
documentation: /guide/async-data
---
+
+
+
diff --git a/ja/examples/cached-components.md b/ja/examples/cached-components.md
index 225e07e29..791410c25 100644
--- a/ja/examples/cached-components.md
+++ b/ja/examples/cached-components.md
@@ -1,6 +1,9 @@
---
title: ã³ã³ããŒãã³ãã®ãã£ãã·ã¥
-description: Nuxt.js ã®ã³ã³ããŒãã³ãã®ãã£ãã·ã¥ã®äŸ
+description: ã³ã³ããŒãã³ãã®ãã£ãã·ã¥ãè¡ãäŸ
github: cached-components
documentation: /api/configuration-cache
----
\ No newline at end of file
+---
+
+
+
diff --git a/ja/examples/custom-loading.md b/ja/examples/custom-loading.md
index d7c8a58e1..071fe2c70 100644
--- a/ja/examples/custom-loading.md
+++ b/ja/examples/custom-loading.md
@@ -1,7 +1,10 @@
---
title: ã«ã¹ã¿ã ããŒãã£ã³ã°ã³ã³ããŒãã³ã
-description: Nuxt.js ã®ã«ã¹ã¿ã ããŒãã£ã³ã°ã³ã³ããŒãã³ãã®äŸ
+description: ã«ã¹ã¿ã ããŒãã£ã³ã°ã³ã³ããŒãã³ãã®äŸ
github: custom-loading
livedemo: https://custom-loading.nuxtjs.org
documentation: /api/configuration-loading
---
+
+
+
diff --git a/ja/examples/custom-routes.md b/ja/examples/custom-routes.md
index 1421a27cd..e7e53c4bc 100644
--- a/ja/examples/custom-routes.md
+++ b/ja/examples/custom-routes.md
@@ -1,7 +1,10 @@
---
title: ã«ã¹ã¿ã ã«ãŒãã£ã³ã°
-description: Nuxt.js ã§ã«ã¹ã¿ã ã«ãŒãã£ã³ã°ãè¡ãäŸ
+description: ã«ã¹ã¿ã ã«ãŒãã£ã³ã°ãè¡ãäŸ
github: custom-routes
livedemo: https://custom-routes.nuxtjs.org
documentation: /guide/routing#dynamic-routes
---
+
+
+
diff --git a/ja/examples/global-css.md b/ja/examples/global-css.md
index 20fa78f76..c32bb88bf 100644
--- a/ja/examples/global-css.md
+++ b/ja/examples/global-css.md
@@ -5,3 +5,6 @@ github: global-css
livedemo: https://global-css.nuxtjs.org
documentation: /api/configuration-css
---
+
+
+
From 64de0f53a0171cb7c4937a152898e18fafa270f4 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Tue, 28 Feb 2017 00:58:17 +0900
Subject: [PATCH 055/129] Translate ja/examples/hello-world.md
---
ja/examples/hello-world.md | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/ja/examples/hello-world.md b/ja/examples/hello-world.md
index 472023d18..0eb44f393 100644
--- a/ja/examples/hello-world.md
+++ b/ja/examples/hello-world.md
@@ -1,9 +1,12 @@
---
title: Hello World
-description: Hello World example with Nuxt.js
+description: Hello World ããäŸ
github: hello-world
youtube: https://www.youtube.com/embed/kmf-p-pTi40
livedemo: https://hello-world.nuxtjs.org
liveedit: https://gomix.com/#!/project/nuxt-hello-world
-documentation: /guide/installation#starting-from-scratch
+documentation: /guide/installation#ã¹ã¯ã©ããããå§ãã
---
+
+
+
From a01a8e72af74e7d48909e70a40f1ef04a8398526 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Tue, 28 Feb 2017 00:59:45 +0900
Subject: [PATCH 056/129] Translate ja/examples/i18n.md
---
ja/examples/i18n.md | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/ja/examples/i18n.md b/ja/examples/i18n.md
index ab3b9c629..755532312 100644
--- a/ja/examples/i18n.md
+++ b/ja/examples/i18n.md
@@ -1,7 +1,10 @@
---
-title: Internationalization (i18n)
-description: Internationalization (i18n) example with Nuxt.js
+title: åœéåïŒi18nïŒ
+description: åœéåïŒi18nïŒã®äŸ
github: i18n
livedemo: https://i18n.nuxtjs.org
-documentation: /guide/routing#middleware
+documentation: /guide/routing#ããã«ãŠã§ã¢
---
+
+
+
From ec46176857d1094702896c1a212bee3bd5e8f8e3 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Tue, 28 Feb 2017 01:00:37 +0900
Subject: [PATCH 057/129] Translate ja/examples/layouts.md
---
ja/examples/layouts.md | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/ja/examples/layouts.md b/ja/examples/layouts.md
index c5960c826..2766f5ffa 100644
--- a/ja/examples/layouts.md
+++ b/ja/examples/layouts.md
@@ -1,8 +1,11 @@
---
-title: Layouts
-description: Layouts example with Nuxt.js
+title: ã¬ã€ã¢ãŠã
+description: ã¬ã€ã¢ãŠãã®äŸ
github: custom-layouts
livedemo: https://nuxt-custom-layouts.gomix.me/
liveedit: https://gomix.com/#!/project/nuxt-custom-layouts
-documentation: /guide/views#layouts
+documentation: /guide/views#ã¬ã€ã¢ãŠã
---
+
+
+
From 2e7b9787727430b53511d23291306006363622c1 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Tue, 28 Feb 2017 01:01:48 +0900
Subject: [PATCH 058/129] Translate ja/examples/middleware.md
---
ja/examples/middleware.md | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/ja/examples/middleware.md b/ja/examples/middleware.md
index afd8a1552..1cddc895c 100644
--- a/ja/examples/middleware.md
+++ b/ja/examples/middleware.md
@@ -1,7 +1,10 @@
---
-title: Middleware
-description: Middleware example with Nuxt.js
+title: ããã«ãŠã§ã¢
+description: ããã«ãŠã§ã¢ã®äŸ
github: middleware
livedemo: https://middleware.nuxtjs.org
-documentation: /guide/routing#middleware
+documentation: /guide/routing#ããã«ãŠã§ã¢
---
+
+
+
From fa7ef14bc73f9899ce3944b89778c32dba1d22bf Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Tue, 28 Feb 2017 01:05:20 +0900
Subject: [PATCH 059/129] Translate ja/examples/nested-routes.md
---
ja/examples/nested-routes.md | 9 ++++++---
ja/guide/menu.json | 2 +-
ja/guide/routing.md | 2 +-
3 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/ja/examples/nested-routes.md b/ja/examples/nested-routes.md
index 471fd28cc..0fc5283be 100644
--- a/ja/examples/nested-routes.md
+++ b/ja/examples/nested-routes.md
@@ -1,7 +1,10 @@
---
-title: Nested Routes
-description: Nested Routes example with Nuxt.js
+title: ã«ãŒãã£ã³ã°ã®ãã¹ã
+description: ã«ãŒãã£ã³ã°ã®ãã¹ãã®äŸ
github: nested-routes
livedemo: https://nested-routes.nuxtjs.org
-documentation: /guide/routing#nested-routes
+documentation: /guide/routing#ã«ãŒãã£ã³ã°ã®ãã¹ã
---
+
+title: Nested Routes
+description: Nested Routes example with Nuxt.js
diff --git a/ja/guide/menu.json b/ja/guide/menu.json
index a77bb8e52..9ce894bcf 100644
--- a/ja/guide/menu.json
+++ b/ja/guide/menu.json
@@ -40,7 +40,7 @@
"contents": [
{ "to": "#ã«ãŒãã£ã³ã°ã®åºç€", "name": "ã«ãŒãã£ã³ã°ã®åºç€" },
{ "to": "#åçãªã«ãŒãã£ã³ã°", "name": "åçãªã«ãŒãã£ã³ã°" },
- { "to": "#ãã¹ãããã«ãŒãã£ã³ã°", "name": "ãã¹ãããã«ãŒãã£ã³ã°" },
+ { "to": "#ã«ãŒãã£ã³ã°ã®ãã¹ã", "name": "ã«ãŒãã£ã³ã°ã®ãã¹ã" },
{ "to": "#åçã§ãã¹ãããã«ãŒãã£ã³ã°", "name": "åçã§ãã¹ãããã«ãŒãã£ã³ã°" },
{ "to": "#ãã©ã³ãžã·ã§ã³", "name": "ãã©ã³ãžã·ã§ã³" },
{ "to": "#ããã«ãŠã§ã¢", "name": "ããã«ãŠã§ã¢" }
diff --git a/ja/guide/routing.md b/ja/guide/routing.md
index 18734dbc5..2be6caf4b 100644
--- a/ja/guide/routing.md
+++ b/ja/guide/routing.md
@@ -149,7 +149,7 @@ export default {
-## ãã¹ãããã«ãŒãã£ã³ã°
+## ã«ãŒãã£ã³ã°ã®ãã¹ã
From f8165f6cefefd08de5144c8a57920174e4d88427 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Tue, 28 Feb 2017 01:06:51 +0900
Subject: [PATCH 060/129] Translate ja/examples/plugins.md
---
ja/examples/plugins.md | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/ja/examples/plugins.md b/ja/examples/plugins.md
index d33ed90a5..d4ffe0596 100644
--- a/ja/examples/plugins.md
+++ b/ja/examples/plugins.md
@@ -1,7 +1,10 @@
---
-title: Plugins
-description: Using external modules and plugins with nuxt.js
+title: ãã©ã°ã€ã³
+description: å€éšã¢ãžã¥ãŒã«åã³ãã©ã°ã€ã³ãå©çšããäŸ
github: plugins-vendor
livedemo: https://plugins-vendor.nuxtjs.org
documentation: /guide/plugins
---
+
+
+
From 44199c39d7145530d8783e3c639e554d8b7b2e9b Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Tue, 28 Feb 2017 01:08:38 +0900
Subject: [PATCH 061/129] Translate ja/examples/routes-transitions.md
---
ja/examples/routes-transitions.md | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/ja/examples/routes-transitions.md b/ja/examples/routes-transitions.md
index 913888b35..cbc797967 100644
--- a/ja/examples/routes-transitions.md
+++ b/ja/examples/routes-transitions.md
@@ -1,8 +1,11 @@
---
-title: Routes transitions
-description: Routes transitions example with Nuxt.js
+title: ãã©ã³ãžã·ã§ã³
+description: ããŒãžéãé·ç§»ããéã®ãã©ã³ãžã·ã§ã³ã®äŸ
github: routes-transitions
youtube: https://www.youtube.com/embed/RIXOzJWFfc8
livedemo: https://routes-transitions.nuxtjs.org
-documentation: /guide/routing#transitions
+documentation: /guide/routing#ãã©ã³ãžã·ã§ã³
---
+
+
+
From 285b2c2774bf03d27aa363d569af8635a69afc6a Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Tue, 28 Feb 2017 01:10:51 +0900
Subject: [PATCH 062/129] Translate ja/examples/seo-html-head.md
---
ja/examples/seo-html-head.md | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/ja/examples/seo-html-head.md b/ja/examples/seo-html-head.md
index 02525b10b..40d32c4b1 100644
--- a/ja/examples/seo-html-head.md
+++ b/ja/examples/seo-html-head.md
@@ -1,7 +1,10 @@
---
-title: SEO HTML Head
-description: SEO HTML Head example with Nuxt.js
+title: HTML ã® haad æ
å ±
+description: SEO ã®ããã« HTML ã® head æ
å ±ãèšå®ããäŸ
github: head-elements
livedemo: https://head-elements.nuxtjs.org
-documentation: /guide/views#html-head
+documentation: /guide/views#html-ã®-head-æ
å ±
---
+
+
+
From d2257f0ce60ec8bbac34bdfff7b0bb04c93f8f17 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Tue, 28 Feb 2017 01:11:54 +0900
Subject: [PATCH 063/129] Translate ja/examples/testing.md
---
ja/examples/testing.md | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/ja/examples/testing.md b/ja/examples/testing.md
index 1221672b4..1c759aded 100644
--- a/ja/examples/testing.md
+++ b/ja/examples/testing.md
@@ -1,6 +1,9 @@
---
-title: Testing
-description: Testing example with Nuxt.js
+title: ãã¹ã
+description: ãã¹ãã®äŸ
github: with-ava
-documentation: /guide/development-tools#end-to-end-testing
+documentation: /guide/development-tools#ãšã³ãããŒãšã³ããã¹ã
---
+
+
+
From feb0a6e2d1e853f258eecd211ee47ad52e6d186c Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Tue, 28 Feb 2017 01:12:59 +0900
Subject: [PATCH 064/129] Translate ja/examples/vuex-store.md
---
ja/examples/vuex-store.md | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/ja/examples/vuex-store.md b/ja/examples/vuex-store.md
index e4ff096c1..33dfb1ac9 100644
--- a/ja/examples/vuex-store.md
+++ b/ja/examples/vuex-store.md
@@ -1,7 +1,10 @@
---
-title: Vuex Store
-description: Vuex Store example with Nuxt.js
+title: Vuex ã¹ãã¢
+description: Nuxt.js ã§ Vuex ã¹ãã¢ã䜿ãäŸ
github: vuex-store
livedemo: https://vuex-store.nuxtjs.org
documentation: /guide/vuex-store
---
+
+
+
From d52a85baf760534152063699716444289c8cfad2 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Tue, 28 Feb 2017 18:17:48 +0900
Subject: [PATCH 065/129] Translate ja/api/configuration-build.md
---
ja/api/configuration-build.md | 212 ++++++++++++++++++++++++++--------
1 file changed, 166 insertions(+), 46 deletions(-)
diff --git a/ja/api/configuration-build.md b/ja/api/configuration-build.md
index a80297d1f..eed6329a4 100644
--- a/ja/api/configuration-build.md
+++ b/ja/api/configuration-build.md
@@ -1,27 +1,56 @@
---
-title: "API: The build Property"
-description: Nuxt.js lets you customize the webpack configuration for building your web application as you want.
+title: "API: build ããããã£"
+description: Nuxt.js ã§ã¯ãŠã§ãã¢ããªã±ãŒã·ã§ã³ã奜ããªããã«ãã«ãã§ãããã Webpack èšå®ãã«ã¹ã¿ãã€ãºã§ããŸãã
---
-# The build Property
+
+
-> Nuxt.js lets you customize the webpack configuration for building your web application as you want.
+
+
+# build ããããã£
+
+
+
+> Nuxt.js ã§ã¯ãŠã§ãã¢ããªã±ãŒã·ã§ã³ã奜ããªããã«ãã«ãã§ãããã Webpack èšå®ãã«ã¹ã¿ãã€ãºã§ããŸãã
## analyze
-> Nuxt.js use [webpack-bundle-analyzer](https://github.com/th0r/webpack-bundle-analyzer) to let you visualize your bundles and how to optimize them.
+
+
+> Nuxt.js ã¯ãã³ãã«ãã¡ã€ã«ãšæé©åã®ä»æ¹ãèŠèŠåããããã« [webpack-bundle-analyzer](https://github.com/th0r/webpack-bundle-analyzer) ãçšããŸãã
+
+
+
+
+- ã¿ã€ã: `ããŒãªã¢ã³` ãŸã㯠`ãªããžã§ã¯ã`
+- ããã©ã«ã: `false`
+
+
-- Type: `Boolean` or `Object`
-- Default: `false`
+ãªããžã§ã¯ãã®å Žåã¯ãå©çšã§ããããããã£ã¯ [ãã¡ã](https://github.com/th0r/webpack-bundle-analyzer#as-plugin) ãåç
§ããŠãã ããã
-If an object, see available properties [here](https://github.com/th0r/webpack-bundle-analyzer#as-plugin).
+
+
+äŸïŒ`nuxt.config.js`ïŒ:
+
+
+
+
+
+
+
+
+
+
+
+
-Example (`nuxt.config.js`):
```js
module.exports = {
build: {
analyze: true
- // or
+ // ãŸãã¯
analyze: {
analyzerMode: 'static'
}
@@ -29,15 +58,24 @@ module.exports = {
}
```
-**INFO:** You can use the command `nuxt build --analyzer` or `nuxt build -a` to build your application and launch the bundle analyzer on [http://localhost:8888](http://localhost:8888)
+
+
+**ã¡ã¢:** ã¢ããªã±ãŒã·ã§ã³ããã«ãããŠãã³ãã«ã¢ãã©ã€ã¶ã [http://localhost:8888](http://localhost:8888) ã§èµ·åããããã«ã`nuxt build --analyzer` ãŸã㯠`nuxt build -a` ã³ãã³ãã䜿ãããšãã§ããŸãã
## babel
-- Type: `Object`
+
+
+- ã¿ã€ã: `ãªããžã§ã¯ã`
+
+
+
+> JS ã Vue ãã¡ã€ã«ã®ããã« babel ã®èšå®ãã«ã¹ã¿ãã€ãºããŸãã
+
+
-> Customize babel configuration for JS and Vue files.
+ããã©ã«ã:
-Default:
```js
{
plugins: [
@@ -51,7 +89,10 @@ Default:
}
```
-Example (`nuxt.config.js`):
+
+
+äŸïŒ`nuxt.config.js`ïŒ:
+
```js
module.exports = {
build: {
@@ -64,20 +105,46 @@ module.exports = {
## extend
-- Type: `Function`
+
+
+- ã¿ã€ã: `颿°`
+
+
+
+ã¯ã©ã€ã¢ã³ãåã³ãµãŒããŒã®ãã³ãã«ã«ã€ã㊠Webpack ã®èšå®ãæåã§æ¡åŒµããŸãã
+
+
+
+æ¡åŒµã¯äºåºŠåŒã³åºãããŸããäžåºŠã¯ãµãŒããŒã®ãã³ãã«ã®ãããäžåºŠã¯ã¯ã©ã€ã¢ã³ãã®ãã³ãã«ã®ããã§ããã¡ãœããã®åŒæ°:
-> Extend the webpack configuration manually for the client & server bundles.
+
+
-The extend is called twice, one time for the server bundle, and one time for the client bundle. The arguments of the method are:
-1. Webpack config object
-2. Object with the folowing keys (all boolean): `dev`, `isClient`, `isServer`
+1. Webpack èšå®ãªããžã§ã¯ã
+2. 次ã®ããŒãæã€ãªããžã§ã¯ãïŒãã¹ãŠããŒãªã¢ã³ïŒ: `dev`, `isClient`, `isServer`
+
+
+
+äŸïŒ`nuxt.config.js`ïŒ:
+
+
+
+
+
+
+
+
+
+
+
+
+
-Example (`nuxt.config.js`):
```js
module.exports = {
build: {
extend (config, { isClient }) {
- // Extend only webpack config for client-bundle
+ // ã¯ã©ã€ã¢ã³ãã®ãã³ãã«ã® Webpack èšå®ã®ã¿ãæ¡åŒµãã
if (isClient) {
config.devtool = 'eval-source-map'
}
@@ -86,15 +153,24 @@ module.exports = {
}
```
-If you want to see more about our default webpack configuration, take a look at our [webpack directory](https://github.com/nuxt/nuxt.js/tree/master/lib/webpack).
+
+
+ããã©ã«ãã® Webpack ã®èšå®ã«ã€ããŠããå°ãèŠãŠã¿ããå Žå㯠Nuxt.js ã® [webpack ãã£ã¬ã¯ããª](https://github.com/nuxt/nuxt.js/tree/master/lib/webpack) ãåç
§ããŠãã ããã
## filenames
-- Type: `Object`
+
+
+- ã¿ã€ã: `ãªããžã§ã¯ã`
+
+
-> Customize bundle filenames
+> ãã³ãã«ã®ãã¡ã€ã«åãã«ã¹ã¿ãã€ãºããŸãã
+
+
+
+ããã©ã«ã:
-Default:
```js
{
css: 'style.css',
@@ -103,7 +179,10 @@ Default:
}
```
-Example (`nuxt.config.js`):
+
+
+äŸïŒ`nuxt.config.js`ïŒ:
+
```js
module.exports = {
build: {
@@ -118,12 +197,20 @@ module.exports = {
## loaders
-- Type: `Array`
- - Items: `Object`
+
+
+
+- ã¿ã€ã: `é
å`
+ - èŠçŽ : `ãªããžã§ã¯ã`
+
+
+
+> Webpack ã®ããŒããŒãã«ã¹ã¿ãã€ãºããŸãã
-> Cusomize webpack loaders
+
+
+ããã©ã«ã:
-Default:
```js
[
{
@@ -145,7 +232,10 @@ Default:
]
```
-Example (`nuxt.config.js`):
+
+
+äŸïŒ`nuxt.config.js`ïŒ:
+
```js
module.exports = {
build: {
@@ -163,16 +253,26 @@ module.exports = {
}
```
-When the loaders are defined in the `nuxt.config.js`, the default loaders will be overwritten.
+
+
+loaders ã `nuxt.config.js` ã§å®çŸ©ãããŠãããšãã¯ãããã©ã«ãã®ããŒããŒèšå®ã¯äžæžããããŸãã
## plugins
-- Type: `Array`
-- Default: `[]`
+
+
+
+- ã¿ã€ã: `é
å`
+- ããã©ã«ã: `[]`
+
+
-> Add Webpack plugins
+> Webpack ã®ãã©ã°ã€ã³ã远å ããŸãã
+
+
+
+äŸïŒ`nuxt.config.js`ïŒ:
-Example (`nuxt.config.js`):
```js
const webpack = require('webpack')
@@ -189,11 +289,18 @@ module.exports = {
## postcss
-- **Type:** `Array`
+
+
+- **ã¿ã€ã:** `é
å`
+
+
-> Customize [postcss](https://github.com/postcss/postcss) options
+> [postcss](https://github.com/postcss/postcss) ãªãã·ã§ã³ãã«ã¹ã¿ãã€ãºããŸãã
+
+
+
+ããã©ã«ã:
-Default:
```js
[
require('autoprefixer')({
@@ -202,7 +309,10 @@ Default:
]
```
-Example (`nuxt.config.js`):
+
+
+äŸïŒ`nuxt.config.js`ïŒ:
+
```js
module.exports = {
build: {
@@ -220,12 +330,19 @@ module.exports = {
## vendor
-> Nuxt.js lets you add modules inside the `vendor.bundle.js` file generated to reduce the size of the app bundle. It's really useful when using external modules (like `axios` for example)
+
+
+> Nuxt.js ã§ã¯ã app ãã³ãã«ãã¡ã€ã«ã®ãµã€ãºãå°ããããããã«çæããã `vendor.bundle.js` ãã¡ã€ã«å
ã«ã¢ãžã¥ãŒã«ã远å ã§ããŸããå€éšã¢ãžã¥ãŒã«ïŒäŸãã° `axios` ãªã©ïŒã䜿ããšãã«ãšãŠã圹ã«ç«ã¡ãŸãã
+
+
+
-- **Type:** `Array`
- - **Items:** `String`
+- **ã¿ã€ã:** `é
å`
+ - **èŠçŽ :** `æåå`
-To add a module/file inside the vendor bundle, add the `build.vendor` key inside `nuxt.config.js`:
+
+
+vendor ãã³ãã«ãã¡ã€ã«å
ã«ã¢ãžã¥ãŒã«/ãã¡ã€ã«ã远å ããã«ã¯ã`nuxt.config.js` å
ã® `build.vendor` ããŒã«è¿œå ããŸã:
```js
module.exports = {
@@ -235,7 +352,10 @@ module.exports = {
}
```
-You can also give a path to a file, like a custom lib you created:
+
+
+èªåã§äœæããã«ã¹ã¿ã ã©ã€ãã©ãªãªã©ããã¹ãæå®ããããšãã§ããŸã:
+
```js
module.exports = {
build: {
From f612c4926bde79bf1b834b0987956415713e7e3c Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Tue, 28 Feb 2017 18:34:24 +0900
Subject: [PATCH 066/129] Make ja/api/configuration-build.md natural
---
ja/api/configuration-build.md | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/ja/api/configuration-build.md b/ja/api/configuration-build.md
index eed6329a4..27efec16e 100644
--- a/ja/api/configuration-build.md
+++ b/ja/api/configuration-build.md
@@ -1,6 +1,6 @@
---
title: "API: build ããããã£"
-description: Nuxt.js ã§ã¯ãŠã§ãã¢ããªã±ãŒã·ã§ã³ã奜ããªããã«ãã«ãã§ãããã Webpack èšå®ãã«ã¹ã¿ãã€ãºã§ããŸãã
+description: Nuxt.js ã§ã¯ãŠã§ãã¢ããªã±ãŒã·ã§ã³ãèªç±ã«ãã«ãã§ãããã Webpack èšå®ãã«ã¹ã¿ãã€ãºã§ããŸãã
---
@@ -12,13 +12,13 @@ description: Nuxt.js ã§ã¯ãŠã§ãã¢ããªã±ãŒã·ã§ã³ã奜ããªãã
-> Nuxt.js ã§ã¯ãŠã§ãã¢ããªã±ãŒã·ã§ã³ã奜ããªããã«ãã«ãã§ãããã Webpack èšå®ãã«ã¹ã¿ãã€ãºã§ããŸãã
+> Nuxt.js ã§ã¯ãŠã§ãã¢ããªã±ãŒã·ã§ã³ãèªç±ã«ãã«ãã§ãããã Webpack èšå®ãã«ã¹ã¿ãã€ãºã§ããŸãã
## analyze
-> Nuxt.js ã¯ãã³ãã«ãã¡ã€ã«ãšæé©åã®ä»æ¹ãèŠèŠåããããã« [webpack-bundle-analyzer](https://github.com/th0r/webpack-bundle-analyzer) ãçšããŸãã
+> Nuxt.js ã§ã¯ [webpack-bundle-analyzer](https://github.com/th0r/webpack-bundle-analyzer) ã䜿ã£ãŠãã³ãã«ãã¡ã€ã«ãšæé©åã®ä»æ¹ãèŠèŠåã§ããŸãã
@@ -60,7 +60,7 @@ module.exports = {
-**ã¡ã¢:** ã¢ããªã±ãŒã·ã§ã³ããã«ãããŠãã³ãã«ã¢ãã©ã€ã¶ã [http://localhost:8888](http://localhost:8888) ã§èµ·åããããã«ã`nuxt build --analyzer` ãŸã㯠`nuxt build -a` ã³ãã³ãã䜿ãããšãã§ããŸãã
+**æ
å ±:** `nuxt build --analyzer` ãŸã㯠`nuxt build -a` ã³ãã³ãã䜿ã£ãŠãã¢ããªã±ãŒã·ã§ã³ããã«ãããŠãã³ãã«ã¢ãã©ã€ã¶ã [http://localhost:8888](http://localhost:8888) ã§èµ·åã§ããŸãã
## babel
@@ -115,7 +115,7 @@ module.exports = {
-æ¡åŒµã¯äºåºŠåŒã³åºãããŸããäžåºŠã¯ãµãŒããŒã®ãã³ãã«ã®ãããäžåºŠã¯ã¯ã©ã€ã¢ã³ãã®ãã³ãã«ã®ããã§ããã¡ãœããã®åŒæ°:
+extend ã¡ãœããã¯äžåºŠã¯ãµãŒããŒã®ãã³ãã«ã®ãããäžåºŠã¯ã¯ã©ã€ã¢ã³ãã®ãã³ãã«ã®ãããã€ãŸãäºåºŠåŒã³åºãããŸããã¡ãœããã®åŒæ°ã¯æ¬¡ã®ãšãã:
@@ -332,7 +332,7 @@ module.exports = {
-> Nuxt.js ã§ã¯ã app ãã³ãã«ãã¡ã€ã«ã®ãµã€ãºãå°ããããããã«çæããã `vendor.bundle.js` ãã¡ã€ã«å
ã«ã¢ãžã¥ãŒã«ã远å ã§ããŸããå€éšã¢ãžã¥ãŒã«ïŒäŸãã° `axios` ãªã©ïŒã䜿ããšãã«ãšãŠã圹ã«ç«ã¡ãŸãã
+> Nuxt.js ã§ã¯ `vendor.bundle.js` ãã¡ã€ã«å
ã«ã¢ãžã¥ãŒã«ã远å ã§ããŸãããã®ãã¡ã€ã«ã¯ app ãã³ãã«ãã¡ã€ã«ã®ãµã€ãºãå°ããããããã«çæããŸããå€éšã¢ãžã¥ãŒã«ïŒäŸãã° `axios` ãªã©ïŒã䜿ããšãã«ãšãŠã䟿å©ã§ãã
@@ -354,7 +354,7 @@ module.exports = {
-èªåã§äœæããã«ã¹ã¿ã ã©ã€ãã©ãªãªã©ããã¹ãæå®ããããšãã§ããŸã:
+ãã¡ã€ã«ãžã®ãã¹ãæå®ããããšãã§ããŸããäŸãã°èªåã§äœæããç¬èªã©ã€ãã©ãªã䜿ããããšããªã©ã¯ãã¡ã€ã«ãžã®ãã¹ãæå®ããŸã:
```js
module.exports = {
From 94931a0f19a1e2c5d3d31318056bda7886e8eb6d Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Tue, 28 Feb 2017 19:00:00 +0900
Subject: [PATCH 067/129] Translate ja/api/configuration-cache.md
---
ja/api/configuration-cache.md | 58 +++++++++++++++++++++++++++--------
1 file changed, 45 insertions(+), 13 deletions(-)
diff --git a/ja/api/configuration-cache.md b/ja/api/configuration-cache.md
index 5db7a1db0..413c52cf0 100644
--- a/ja/api/configuration-cache.md
+++ b/ja/api/configuration-cache.md
@@ -1,23 +1,48 @@
---
-title: "API: The cache Property"
-description: Nuxt.js use lru-cache to allow cached components for better render performances
+title: "API: cache ããããã£"
+description: Nuxt.js ã¯ã¬ã³ããªã³ã°ã®ããã©ãŒãã³ã¹åäžãç®çãšããŠã³ã³ããŒãã³ãããã£ãã·ã¥ããããã« lru-cache ã䜿ããŸãã
---
-# The cache Property
+
+
-> Nuxt.js use [lru-cache](https://github.com/isaacs/node-lru-cache) to allow cached components for better render performances
+# cache ããããã£
-## Usage
+
-- **Type:** `Boolean` or `Object` (Default: `false`)
+> Nuxt.js ã¯ã¬ã³ããªã³ã°ã®ããã©ãŒãã³ã¹åäžãç®çãšããŠã³ã³ããŒãã³ãããã£ãã·ã¥ããããã« [lru-cache](https://github.com/isaacs/node-lru-cache) ã䜿ããŸãã
-If an object, see [lru-cache options](https://github.com/isaacs/node-lru-cache#options).
+
+
+## äœ¿ãæ¹
+
+
+
+- **ã¿ã€ã:** `ããŒãªã¢ã³` ãŸã㯠`ãªããžã§ã¯ã`ïŒããã©ã«ã: `false`ïŒ
+
+
+
+ãªããžã§ã¯ãã®å Žå㯠[lru-cache ãªãã·ã§ã³](https://github.com/isaacs/node-lru-cache#options) ãåç
§ããŠãã ããã
+
+
+
+`nuxt.config.js` å
ã§ `cache` ããŒã䜿ããŸã:
+
+
+
+
+
+
+
+
+
+
+
-Use the `cache` key in your `nuxt.config.js`:
```js
module.exports = {
cache: true
- // or
+ // ãŸãã¯
cache: {
max: 1000,
maxAge: 900000
@@ -25,9 +50,16 @@ module.exports = {
}
```
-If `cache` is set to `true` the default keys given are:
+
+
+`cache` ã« `true` ãã»ãããããå Žåã¯ããã©ã«ãã®ããŒãé©çšãããŸã:
+
+
+
+
+
-| key | Optional? | Type | Default | definition |
+| ã㌠| å¿
é ãåŠã | ã¿ã€ã | ããã©ã«ã | 説æ |
|------|------------|-----|---------|------------|
-| `max` | Optional | Integer | 1000 | The maximum size of the cached components, when the 1001 is added, the first one added will be removed from the cache to let space for the new one. |
-| `maxAge` | Optional | Integer | 900000 | Maximum age in ms, default to 15 minutes. |
+| `max` | å¿
é ã§ã¯ãªã | æŽæ° | 1000 | ãã£ãã·ã¥ããã³ã³ããŒãã³ãã®æå€§æ°ã1001åç®ã®ã³ã³ããŒãã³ãã远å ããããšãã«ãæ°ãããã£ãã·ã¥ããã³ã³ããŒãã³ãã®ããã«ã¹ããŒã¹ã空ããç®çã§ãæåã«ãã£ãã·ã¥ãããã³ã³ããŒãã³ãããã£ãã·ã¥ããåé€ãããŸã |
+| `maxAge` | å¿
é ã§ã¯ãªã | æŽæ° | 900000 | ãã£ãã·ã¥ãããæå€§æéãããªç§ã§æå®ããŸããããã©ã«ã㯠15åéã§ã |
From 037af580bb3a724cf83ec292c7242c5d91f1cbf7 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Tue, 28 Feb 2017 19:02:06 +0900
Subject: [PATCH 068/129] Make ja/api/configuration-cache.md natural
---
ja/api/configuration-cache.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ja/api/configuration-cache.md b/ja/api/configuration-cache.md
index 413c52cf0..cdcdce5ee 100644
--- a/ja/api/configuration-cache.md
+++ b/ja/api/configuration-cache.md
@@ -10,7 +10,7 @@ description: Nuxt.js ã¯ã¬ã³ããªã³ã°ã®ããã©ãŒãã³ã¹åäžãç®
-> Nuxt.js ã¯ã¬ã³ããªã³ã°ã®ããã©ãŒãã³ã¹åäžãç®çãšããŠã³ã³ããŒãã³ãããã£ãã·ã¥ããããã« [lru-cache](https://github.com/isaacs/node-lru-cache) ã䜿ããŸãã
+> Nuxt.js ã¯ã¬ã³ããªã³ã°ã®ããã©ãŒãã³ã¹åäžãç®çãšããŠã³ã³ããŒãã³ãããã£ãã·ã¥ããããã« [lru-cache](https://github.com/isaacs/node-lru-cache) ã䜿ããŸãã
@@ -61,5 +61,5 @@ module.exports = {
| ã㌠| å¿
é ãåŠã | ã¿ã€ã | ããã©ã«ã | 説æ |
|------|------------|-----|---------|------------|
-| `max` | å¿
é ã§ã¯ãªã | æŽæ° | 1000 | ãã£ãã·ã¥ããã³ã³ããŒãã³ãã®æå€§æ°ã1001åç®ã®ã³ã³ããŒãã³ãã远å ããããšãã«ãæ°ãããã£ãã·ã¥ããã³ã³ããŒãã³ãã®ããã«ã¹ããŒã¹ã空ããç®çã§ãæåã«ãã£ãã·ã¥ãããã³ã³ããŒãã³ãããã£ãã·ã¥ããåé€ãããŸã |
+| `max` | å¿
é ã§ã¯ãªã | æŽæ° | 1000 | ãã£ãã·ã¥ããã³ã³ããŒãã³ãã®æå€§æ°ã1001åç®ã®ã³ã³ããŒãã³ãã远å ããããšãã«ãã¹ããŒã¹ã空ããããã«ãæåã«ãã£ãã·ã¥ãããã³ã³ããŒãã³ãããã£ãã·ã¥ããåé€ãããŸã |
| `maxAge` | å¿
é ã§ã¯ãªã | æŽæ° | 900000 | ãã£ãã·ã¥ãããæå€§æéãããªç§ã§æå®ããŸããããã©ã«ã㯠15åéã§ã |
From ed032f59538e8f33b2a05aca3d726b1d66c0640c Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Tue, 28 Feb 2017 22:04:28 +0900
Subject: [PATCH 069/129] Translate ja/api/configuration-css.md
---
ja/api/configuration-css.md | 61 ++++++++++++++++++++++++++++---------
1 file changed, 47 insertions(+), 14 deletions(-)
diff --git a/ja/api/configuration-css.md b/ja/api/configuration-css.md
index 8abd539fc..33c8f42b2 100644
--- a/ja/api/configuration-css.md
+++ b/ja/api/configuration-css.md
@@ -1,32 +1,65 @@
---
-title: "API: The css Property"
-description: Nuxt.js lets you define the CSS files/modules/libraries you want to set globally (included in every pages).
+title: "API: css ããããã£"
+description: Nuxt.js ã§ã¯ã°ããŒãã«ã«é©çšãããïŒãã¹ãŠã®ããŒãžã«ã€ã³ã¯ã«ãŒããããïŒCSS ãã¡ã€ã«/ã¢ãžã¥ãŒã«/ã©ã€ãã©ãªãèšå®ã§ããŸãã
---
-# The css Property
+
+
-> Nuxt.js lets you define the CSS files/modules/libraries you want to set globally (included in every pages).
+
-- **Type:** `Array`
- - **Items:** `String` or `Object`
+# css ããããã£
-If the item is an object, the properties are:
-- src: `String` (path of the file)
-- lang: `String` ([pre-processor used](/guide/pages#using-pre-processors))
+
-In `nuxt.config.js`, add the CSS resources:
+> Nuxt.js ã§ã¯ã°ããŒãã«ã«é©çšãããïŒãã¹ãŠã®ããŒãžã«ã€ã³ã¯ã«ãŒããããïŒCSS ãã¡ã€ã«/ã¢ãžã¥ãŒã«/ã©ã€ãã©ãªãèšå®ã§ããŸãã
+
+
+
+
+- **ã¿ã€ã:** `é
å`
+ - **èŠçŽ :** `æåå` ãŸã㯠`ãªããžã§ã¯ã`
+
+
+
+èŠçŽ ããªããžã§ã¯ãã®ãšãã¯ãããããã£ã¯æ¬¡ã®ãšããã§ã:
+
+
+
+
+- src: `æåå`ïŒãã¡ã€ã«ã®ãã¹ïŒ
+- lang: `æåå`ïŒ[䜿ãããŠããããªããã»ããµ](/guide/pages#using-pre-processors)ïŒ
+
+
+
+`nuxt.config.js` å
ã§ CSS ãªãœãŒã¹ã远å ããã«ã¯:
+
+
+
+
+
+
+
+
+
+
+
+
+
```js
module.exports = {
css: [
- // Load a node.js module
+ // node.js ã¢ãžã¥ãŒã«ãããŒã
'hover.css/css/hover-min.css',
- // node.js module but we specify the pre-processor
+ // node.js ã¢ãžã¥ãŒã«ã ãããªããã»ããµãæå®
{ src: 'bulma', lang: 'sass' },
- // Css file in the project
+ // ãããžã§ã¯ãå
ã® CSS ãã¡ã€ã«
'~assets/css/main.css'
]
}
```
-**In production**, all CSS will be minified and extracted in a file named `styles.css` and added in the `
` of the page.
+
+
+**ãããã¯ã·ã§ã³ã§ã¯**ããã¹ãŠã® CSS ã¯ãããã¡ã€ãã `styles.css` ãšãããã¡ã€ã«ã«æœåºãããŸãããããŠãããŒãžã® `
` ã¿ã°ã«è¿œå ãããŸãã
From b37eba1a43632c9cc4528081b4da99b521a51148 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Tue, 28 Feb 2017 22:09:17 +0900
Subject: [PATCH 070/129] Make ja/api/configuration-css.md natural
---
ja/api/configuration-css.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ja/api/configuration-css.md b/ja/api/configuration-css.md
index 33c8f42b2..162ae919f 100644
--- a/ja/api/configuration-css.md
+++ b/ja/api/configuration-css.md
@@ -52,7 +52,7 @@ module.exports = {
css: [
// node.js ã¢ãžã¥ãŒã«ãããŒã
'hover.css/css/hover-min.css',
- // node.js ã¢ãžã¥ãŒã«ã ãããªããã»ããµãæå®
+ // node.js ã¢ãžã¥ãŒã«ãããªããã»ããµãæå®
{ src: 'bulma', lang: 'sass' },
// ãããžã§ã¯ãå
ã® CSS ãã¡ã€ã«
'~assets/css/main.css'
@@ -62,4 +62,4 @@ module.exports = {
-**ãããã¯ã·ã§ã³ã§ã¯**ããã¹ãŠã® CSS ã¯ãããã¡ã€ãã `styles.css` ãšãããã¡ã€ã«ã«æœåºãããŸãããããŠãããŒãžã® `
` ã¿ã°ã«è¿œå ãããŸãã
+**ãããã¯ã·ã§ã³ã§ã¯**ããã¹ãŠã® CSS ã¯ãããã¡ã€ãã `styles.css` ãšãããã¡ã€ã«ã«æœåºãããŸãããããŠããŒãžã® `
` ã¿ã°å
ã« `style.css` ãèªã¿èŸŒã link ã¿ã°ã远å ãããŸãã
From abad3ddb270d254fde7bd9a1f7b5fb9bcc3f3a6a Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Tue, 28 Feb 2017 22:19:12 +0900
Subject: [PATCH 071/129] Translate ja/api/configuration-dev.md
---
ja/api/configuration-dev.md | 79 ++++++++++++++++++++++++++++++-------
1 file changed, 64 insertions(+), 15 deletions(-)
diff --git a/ja/api/configuration-dev.md b/ja/api/configuration-dev.md
index a913984a0..63f199c85 100644
--- a/ja/api/configuration-dev.md
+++ b/ja/api/configuration-dev.md
@@ -1,24 +1,45 @@
---
-title: "API: The dev Property"
-description: Define the development or production mode.
+title: "API: dev ããããã£"
+description: éçºã¢ãŒãããããã¯ã·ã§ã³ã¢ãŒãããæå®ããŸãã
---
-# The dev Property
+
+
-- Type: `Boolean`
-- Default: `true`
+
-> Define the development or production mode of nuxt.js
+# dev ããããã£
-This property is overwritten by [nuxt commands](/guide/commands):
-- `dev` is forced to `true` with `nuxt`
-- `dev` is force to `false` with `nuxt build`, `nuxt start` and `nuxt generate`
+
+
-This property should be used when using [nuxt.js programmatically](/api/nuxt):
+- ã¿ã€ã: `ããŒãªã¢ã³`
+- ããã©ã«ã: `true`
-Example:
+
+
+> Nuxt.js ã®éçºã¢ãŒããªã®ããããã¯ã·ã§ã³ã¢ãŒããªã®ããæå®ããŸãã
+
+
+
+ãã®ããããã£ã¯ [nuxt ã³ãã³ã](/guide/commands) ã«ãã£ãŠäžæžããããŸã:
+
+
+
+
+- `dev` 㯠`nuxt` ã³ãã³ãã§åŒ·å¶çã« `true` ã«ãªããŸã
+- `dev` 㯠`nuxt build`ã`nuxt start`ã`nuxt generate` ã³ãã³ãã§åŒ·å¶çã« `false` ã«ãªããŸã
+
+
+
+ãã®ããããã£ã¯ [nuxt.js programmatically](/api/nuxt) ãçšãããšãã«äœ¿ãããã¹ãã§ã:
+
+
+
+äŸ:
`nuxt.config.js`
+
```js
module.exports = {
dev: (process.env.NODE_ENV !== 'production')
@@ -26,17 +47,42 @@ module.exports = {
```
`server.js`
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
```js
const Nuxt = require('nuxt')
const app = require('express')()
const port = process.env.PORT || 3000
-// We instantiate Nuxt.js with the options
+// Nuxt.js ããªãã·ã§ã³ãçšããŠã€ã³ã¹ã¿ã³ã¹åãã
let config = require('./nuxt.config.js')
const nuxt = new Nuxt(config)
app.use(nuxt.render)
-// Build only in dev mode
+// éçºã¢ãŒãã®ãšãã®ã¿ãã«ããã
if (config.dev) {
nuxt.build()
.catch((error) => {
@@ -45,12 +91,15 @@ if (config.dev) {
})
}
-// Listen the server
+// ãµãŒããŒã Listen ãã
app.listen(port, '0.0.0.0')
console.log('Server listening on localhost:' + port)
```
-Then in your `package.json`:
+
+
+ãããã `package.json` ã«æ¬¡ã®ããã«æžããŸã:
+
```json
{
"scripts": {
From da2a9fddcfc73fbed01470d8e5eed3b2c53ad35d Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Tue, 28 Feb 2017 22:25:53 +0900
Subject: [PATCH 072/129] Make ja/api/configuration-dev.md natural
---
ja/api/configuration-dev.md | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/ja/api/configuration-dev.md b/ja/api/configuration-dev.md
index 63f199c85..0141fc316 100644
--- a/ja/api/configuration-dev.md
+++ b/ja/api/configuration-dev.md
@@ -27,12 +27,12 @@ description: éçºã¢ãŒãããããã¯ã·ã§ã³ã¢ãŒãããæå®ããŸ
-- `dev` 㯠`nuxt` ã³ãã³ãã§åŒ·å¶çã« `true` ã«ãªããŸã
-- `dev` 㯠`nuxt build`ã`nuxt start`ã`nuxt generate` ã³ãã³ãã§åŒ·å¶çã« `false` ã«ãªããŸã
+- `nuxt` ã³ãã³ãã䜿ããšã㯠`dev` ã¯åŒ·å¶çã« `true` ã«ãªããŸã
+- `nuxt build`ã`nuxt start`ã`nuxt generate` ã³ãã³ãã䜿ããšã㯠`dev` ã¯åŒ·å¶çã« `false` ã«ãªããŸã
-ãã®ããããã£ã¯ [nuxt.js programmatically](/api/nuxt) ãçšãããšãã«äœ¿ãããã¹ãã§ã:
+ãã®ããããã£ã¯ [Nuxt.js ãããã°ã©ã ã§äœ¿ã](/api/nuxt) ãšãã«åãããŠäœ¿ããšè¯ãã§ã:
@@ -77,7 +77,7 @@ const Nuxt = require('nuxt')
const app = require('express')()
const port = process.env.PORT || 3000
-// Nuxt.js ããªãã·ã§ã³ãçšããŠã€ã³ã¹ã¿ã³ã¹åãã
+// Nuxt.js ããªãã·ã§ã³ã䜿ã£ãŠã€ã³ã¹ã¿ã³ã¹åãã
let config = require('./nuxt.config.js')
const nuxt = new Nuxt(config)
app.use(nuxt.render)
From b63ff49ab35bf07a9d5749a0b70c8e4f6622053a Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Wed, 1 Mar 2017 21:28:35 +0900
Subject: [PATCH 073/129] Translate ja/api/configuration-env.md
---
ja/api/configuration-env.md | 52 +++++++++++++++++++++++++++----------
1 file changed, 39 insertions(+), 13 deletions(-)
diff --git a/ja/api/configuration-env.md b/ja/api/configuration-env.md
index 12765e988..3a47f1927 100644
--- a/ja/api/configuration-env.md
+++ b/ja/api/configuration-env.md
@@ -1,15 +1,26 @@
---
-title: "API: The env Property"
-description: Share environment variables between client and server.
+title: "API: env ããããã£"
+description: ã¯ã©ã€ã¢ã³ããšãµãŒããŒéã§ç°å¢å€æ°ãå
±æããŸãã
---
-# The env Property
+
+
-- Type: `Object`
+
-> Nuxt.js lets you create environment variables that will be shared for the client and server-side.
+# env ããããã£
-Example (`nuxt.config.js`):
+
+
+- ã¿ã€ã: `ãªããžã§ã¯ã`
+
+
+
+Nuxt.js ã§ã¯ã¯ã©ã€ã¢ã³ããµã€ããšãµãŒããŒãµã€ãã§å
±æãããç°å¢å€æ°ãäœæã§ããŸãã
+
+
+
+äŸïŒ`nuxt.config.js`ïŒ:
```js
module.exports = {
@@ -19,17 +30,30 @@ module.exports = {
}
```
-This lets me create a `baseUrl` property that will be equal to the `BASE_URL` environment variable if defined, otherwise, equal to `http://localhost:3000`.
+
+
+ãã®ããã«èšè¿°ãããš `baseUrl` ããããã£ã¯ãç°å¢å€æ° `BASE_URL` ãå®çŸ©ãããŠããã°ãããšåæ§ã«ãªããããã§ãªããã° `http://localhost:3000` ãšåæ§ã«ãªããŸãã
+
+
-Then, I can access my `baseUrl` variable with 2 ways:
-1. Via `process.env.baseUrl`
-2. Via `context.baseUrl`, see [context api](/api#context)
+ãã㊠`baseUrl` 倿°ã«ã¢ã¯ã»ã¹ããã«ã¯ 2ã€ã®æ¹æ³ããããŸã:
-You can use the `env` property for giving public token for example.
+
+
-For the example above, we can use it to configure [axios](https://github.com/mzabriskie/axios).
+1. `process.env.baseUrl` ãçµç±ãã
+2. `context.baseUrl` ãçµç±ããã詳现㯠[context API](/api#context)
+
+
+
+äŸãã°å
¬éããŒã¯ã³ãä»äžããããã« `env` ããããã£ã䜿ãããšãã§ããŸãã
+
+
+
+ãã®ãããªäŸãšã㊠[axios](https://github.com/mzabriskie/axios) ãèšå®ããããã« env ããããã£ã䜿ãããšãã§ããŸãã
`plugins/axios.js`:
+
```js
import axios from 'axios'
@@ -38,4 +62,6 @@ export default axios.create({
})
```
-Then, in your pages, you can import axios like this: `import axios from '~plugins/axios'`
+
+
+ãããããšããŒãžå
ã§æ¬¡ã®ããã« axios ãã€ã³ããŒãã§ããŸã: `import axios from '~plugins/axios'`
From 2a6b44cb3e560c388077298d7d0ab59c9b2eb229 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Wed, 1 Mar 2017 21:34:08 +0900
Subject: [PATCH 074/129] Make ja/api/configuration-env.md natural
---
ja/api/configuration-env.md | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/ja/api/configuration-env.md b/ja/api/configuration-env.md
index 3a47f1927..275c4c0c6 100644
--- a/ja/api/configuration-env.md
+++ b/ja/api/configuration-env.md
@@ -1,6 +1,6 @@
---
title: "API: env ããããã£"
-description: ã¯ã©ã€ã¢ã³ããšãµãŒããŒéã§ç°å¢å€æ°ãå
±æããŸãã
+description: ã¯ã©ã€ã¢ã³ããµã€ããšãµãŒããŒãµã€ãã§ç°å¢å€æ°ãå
±æããŸãã
---
@@ -32,7 +32,7 @@ module.exports = {
-ãã®ããã«èšè¿°ãããš `baseUrl` ããããã£ã¯ãç°å¢å€æ° `BASE_URL` ãå®çŸ©ãããŠããã°ãããšåæ§ã«ãªããããã§ãªããã° `http://localhost:3000` ãšåæ§ã«ãªããŸãã
+ãã®ããã«èšè¿°ãããš `baseUrl` ããããã£ã¯ãç°å¢å€æ° `BASE_URL` ãå®çŸ©ãããŠããã°ãããšåãã«ãªããããã§ãªããã° `http://localhost:3000` ã«ãªããŸãã
@@ -41,16 +41,16 @@ module.exports = {
-1. `process.env.baseUrl` ãçµç±ãã
+1. `process.env.baseUrl` çµç±ã§ã¢ã¯ã»ã¹ãã
2. `context.baseUrl` ãçµç±ããã詳现㯠[context API](/api#context)
-äŸãã°å
¬éããŒã¯ã³ãä»äžããããã« `env` ããããã£ã䜿ãããšãã§ããŸãã
+äŸãã° `env` ããããã£ã䜿ã£ãŠå
¬éããŒã¯ã³ãä»äžããããšãã§ããŸãã
-ãã®ãããªäŸãšã㊠[axios](https://github.com/mzabriskie/axios) ãèšå®ããããã« env ããããã£ã䜿ãããšãã§ããŸãã
+äžèšã®äŸãšã㊠env ããããã£ã䜿ã£ãŠ [axios](https://github.com/mzabriskie/axios) ãèšå®ã§ããŸãã
`plugins/axios.js`:
@@ -64,4 +64,4 @@ export default axios.create({
-ãããããšããŒãžå
ã§æ¬¡ã®ããã« axios ãã€ã³ããŒãã§ããŸã: `import axios from '~plugins/axios'`
+ãã®ããã«èšè¿°ãããšããŒãžå
ã§ `import axios from '~plugins/axios'` ãšããå
·åã« axios ãã€ã³ããŒãã§ããŸãã
From 0a4905d0feaade70d69ab3064a1480e6be6d9f5c Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Wed, 1 Mar 2017 21:51:48 +0900
Subject: [PATCH 075/129] Translate ja/api/configuration-generate.md
---
ja/api/configuration-generate.md | 82 ++++++++++++++++++++++++--------
1 file changed, 62 insertions(+), 20 deletions(-)
diff --git a/ja/api/configuration-generate.md b/ja/api/configuration-generate.md
index 1e3886819..f5172e07a 100644
--- a/ja/api/configuration-generate.md
+++ b/ja/api/configuration-generate.md
@@ -1,22 +1,38 @@
---
-title: "API: The generate Property"
-description: Configure the generation of your universal web application to a static web application.
+title: "API: generate ããããã£"
+description: ãŠãããŒãµã«ãªãŠã§ãã¢ããªã±ãŒã·ã§ã³ããéçãªãŠã§ãã¢ããªã±ãŒã·ã§ã³ã®çæã«ã€ããŠèšå®ããŸãã
---
-# The generate Property
+
+
-- Type: `Object`
+
+
+# generate ããããã£
+
+
+
+- ã¿ã€ã: `ãªããžã§ã¯ã`
+
+
+
+> ãŠãããŒãµã«ãªãŠã§ãã¢ããªã±ãŒã·ã§ã³ããéçãªãŠã§ãã¢ããªã±ãŒã·ã§ã³ã®çæã«ã€ããŠèšå®ããŸãã
-> Configure the generation of your universal web application to a static web application.
+
-When launching `nuxt generate` or calling `nuxt.generate()`, nuxt.js will use the configuration defined in the `generate` property.
+`nuxt generate` ãå®è¡ããã `nuxt.generate()` ãåŒã³åºãããšãã«ãNuxt.js 㯠`generete` ããããã£ã§å®çŸ©ãããèšå®ã䜿ããŸãã
## dir
-- Type: 'Sring'
-- Default: `'dist'`
+
+
-Directory name created by `nuxt generate`.
+- ã¿ã€ã: 'æåå'
+- ããã©ã«ã: `'dist'`
+
+
+
+`nuxt generate` ã§äœæããããã£ã¬ã¯ããªåã§ãã
## routeParams
@@ -24,9 +40,15 @@ Directory name created by `nuxt generate`.
- Key: `String` (route path)
- Value: `Array` or `Function`
-When using [dynamic routes](/guide/routing#dynamic-routes), you need to define a mapping of params for each dynamic route to generate.
+- ã¿ã€ãType: `ãªããžã§ã¯ã`
+ - ããŒ: `æåå`ïŒã«ãŒãã®ãã¹ïŒ
+ - å€: `é
å` ãŸã㯠`颿°`
+
+[åçãªã«ãŒãã£ã³ã°](/guide/routing#dynamic-routes) ã䜿ããšãã¯ãçæããããã«ãã©ã¡ãŒã¿ãšããããã®åçãªã«ãŒããšã®ãããã³ã°ãå®çŸ©ããå¿
èŠããããŸãã
-Example:
+
+
+äŸ:
```bash
-| pages/
@@ -35,15 +57,22 @@ Example:
-----| _id.vue
```
-The routes generated by nuxt.js are `/` and `/users/:id`.
+
+
+Nuxt.js ã«ãã£ãŠçæãããã«ãŒã㯠`/` ãš `/users/:id` ã§ãã
-If you try to launch `nuxt generate`, the terminal will exit with an error:
+
+
+`nuxt generate` ãå®è¡ããããšãããšãã¿ãŒããã«ã¯ãšã©ãŒã§çµäºããã§ããã:
```bash
Could not generate the dynamic route /users/:id, please add the mapping params in nuxt.config.js (generate.routeParams).
```
-We add the mapping for `/users/:id` in `nuxt.config.js`:
+
+
+`nuxt.config.js` å
ã« `/users/:id` ã®ãããã³ã°ã远å ããŸã:
+
```js
module.exports = {
generate: {
@@ -58,7 +87,10 @@ module.exports = {
}
```
-Then when we launch `nuxt generate`:
+
+
+ãããã `nuxt generate` ãå®è¡ããŸã:
+
```bash
[nuxt] Generating...
[...]
@@ -74,13 +106,22 @@ nuxt:generate HTML Files generated in 7.6s +6ms
[nuxt] Generate done
```
-Great, but what if we have **dynamic params**?
-1. Use a `Function` which returns a `Promise`
-2. Use a `Function` with a callback(err, params)
+
+
+ããã§ããããããããã **åçãªãã©ã¡ãŒã¿** ãå¿
èŠãªå Žåã¯ã©ãã§ãããïŒ
-### Function which returns a Promise
+
+
+
+1. `Promise` ãè¿ã `颿°` ã䜿ã£ãŠãã ãã
+2. ã³ãŒã«ããã¯ãšäžç·ã« `颿°` ã䜿ã£ãŠãã ãã
+
+
+
+### Promise ãè¿ã颿°ã䜿ã
`nuxt.config.js`
+
```js
import axios from 'axios'
@@ -100,9 +141,10 @@ module.exports = {
}
```
-## Function with a callback
+## ã³ãŒã«ããã¯ãšäžç·ã«é¢æ°ã䜿ã
`nuxt.config.js`
+
```js
import axios from 'axios'
From 337c83fa4c33de6c45421bd62bc9a41a092033ca Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Wed, 1 Mar 2017 21:57:23 +0900
Subject: [PATCH 076/129] Make ja/api/configuration-generate.md natural
---
ja/api/configuration-generate.md | 22 ++++++++++++----------
1 file changed, 12 insertions(+), 10 deletions(-)
diff --git a/ja/api/configuration-generate.md b/ja/api/configuration-generate.md
index f5172e07a..9971d43ce 100644
--- a/ja/api/configuration-generate.md
+++ b/ja/api/configuration-generate.md
@@ -20,7 +20,7 @@ description: ãŠãããŒãµã«ãªãŠã§ãã¢ããªã±ãŒã·ã§ã³ããéç
-`nuxt generate` ãå®è¡ããã `nuxt.generate()` ãåŒã³åºãããšãã«ãNuxt.js 㯠`generete` ããããã£ã§å®çŸ©ãããèšå®ã䜿ããŸãã
+`nuxt generate` ã³ãã³ããå®è¡ããã `nuxt.generate()` ãåŒã³åºãããšããNuxt.js 㯠`generete` ããããã£ã§å®çŸ©ãããèšå®ã䜿ããŸãã
## dir
@@ -36,15 +36,17 @@ description: ãŠãããŒãµã«ãªãŠã§ãã¢ããªã±ãŒã·ã§ã³ããéç
## routeParams
-- Type: `Object`
- - Key: `String` (route path)
- - Value: `Array` or `Function`
+
+
+
- ã¿ã€ãType: `ãªããžã§ã¯ã`
- ããŒ: `æåå`ïŒã«ãŒãã®ãã¹ïŒ
- å€: `é
å` ãŸã㯠`颿°`
-[åçãªã«ãŒãã£ã³ã°](/guide/routing#dynamic-routes) ã䜿ããšãã¯ãçæããããã«ãã©ã¡ãŒã¿ãšããããã®åçãªã«ãŒããšã®ãããã³ã°ãå®çŸ©ããå¿
èŠããããŸãã
+
+
+[åçãªã«ãŒãã£ã³ã°](/guide/routing#dynamic-routes) ã䜿ããšãã¯ããã©ã¡ãŒã¿ãšããããã®åçãªã«ãŒããšã®ãããã³ã°ãå®çŸ©ããå¿
èŠããããŸãã
@@ -63,7 +65,7 @@ Nuxt.js ã«ãã£ãŠçæãããã«ãŒã㯠`/` ãš `/users/:id` ã§ãã
-`nuxt generate` ãå®è¡ããããšãããšãã¿ãŒããã«ã¯ãšã©ãŒã§çµäºããã§ããã:
+äžã®ãããªèšå®ã§ `nuxt generate` ã³ãã³ããå®è¡ããããšãããšãã¿ãŒããã«ã¯ãšã©ãŒçµäºããã§ããã:
```bash
Could not generate the dynamic route /users/:id, please add the mapping params in nuxt.config.js (generate.routeParams).
@@ -71,7 +73,7 @@ Could not generate the dynamic route /users/:id, please add the mapping params i
-`nuxt.config.js` å
ã« `/users/:id` ã®ãããã³ã°ã远å ããŸã:
+ããã§ `nuxt.config.js` å
ã« `/users/:id` ã®ãããã³ã°ã远å ããŸã:
```js
module.exports = {
@@ -89,7 +91,7 @@ module.exports = {
-ãããã `nuxt generate` ãå®è¡ããŸã:
+ãã㊠`nuxt generate` ãå®è¡ããŸã:
```bash
[nuxt] Generating...
@@ -113,8 +115,8 @@ nuxt:generate HTML Files generated in 7.6s +6ms
-1. `Promise` ãè¿ã `颿°` ã䜿ã£ãŠãã ãã
-2. ã³ãŒã«ããã¯ãšäžç·ã« `颿°` ã䜿ã£ãŠãã ãã
+1. `Promise` ãè¿ã `颿°` ã䜿ã
+2. ã³ãŒã«ããã¯ãšäžç·ã« `颿°` ã䜿ã
From 949959e44f811a90a08336db5930f931ad4e5377 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Wed, 1 Mar 2017 22:06:48 +0900
Subject: [PATCH 077/129] Translate ja/api/configuration-head.md
---
ja/api/configuration-head.md | 27 ++++++++++++++++++++-------
1 file changed, 20 insertions(+), 7 deletions(-)
diff --git a/ja/api/configuration-head.md b/ja/api/configuration-head.md
index 3c8e71286..ccef7fd8d 100644
--- a/ja/api/configuration-head.md
+++ b/ja/api/configuration-head.md
@@ -1,13 +1,22 @@
---
-title: "API: The head Property"
-description: Nuxt.js let you define all default meta for your application inside nuxt.config.js.
+title: "API: head ããããã£"
+description: Nuxt.js ã§ã¯ nuxt.config.js å
ã«ã¢ããªã±ãŒã·ã§ã³ã®ãã¹ãŠã®ããã©ã«ãã®ã¡ã¿æ
å ±ãå®çŸ©ã§ããŸãã
---
-# The head Property
+
+
-> Nuxt.js let you define all default meta for your application inside `nuxt.config.js`, use the same `head` property:
+
-- **Type:** `Object`
+# head ããããã£
+
+
+
+Nuxt.js ã§ã¯ `nuxt.config.js` å
ã«ã¢ããªã±ãŒã·ã§ã³ã®ãã¹ãŠã®ããã©åºãšã®ã¡ã¿æ
å ±ãå®çŸ©ã§ããŸããããã«ã¯ `head` ããããã£ã䜿ããŸã:
+
+
+
+- **ã¿ã€ã:** `ãªããžã§ã¯ã`
```js
module.exports = {
@@ -22,6 +31,10 @@ module.exports = {
}
```
-To know the list of options you can give to `head`, take a look at [vue-meta documentation](https://github.com/declandewet/vue-meta#recognized-metainfo-properties).
+
+
+`head` ã«èšå®ã§ãããªãã·ã§ã³äžèЧãç¥ãã«ã¯ [vue-meta documentation](https://github.com/declandewet/vue-meta#recognized-metainfo-properties) ãåç
§ããŠãã ããã
+
+
-INFO: You can also use `head` in the page components and access to the component data through `this`, see [component head property](/api/pages-head).
+æ
å ±: ããŒãžã³ã³ããŒãã³ãã§ã `head` ã䜿ãããšãã§ããŸãã`this` ãçµç±ããŠã³ã³ããŒãã³ãã®ããŒã¿ã«ã¢ã¯ã»ã¹ã§ããŸãã[ã³ã³ããŒãã³ãã® head ããããã£](/api/pages-head) ãåç
§ããŠãã ããã
From f7811f7d14a441185f41a09661a5bebde1e124bb Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Wed, 1 Mar 2017 22:08:22 +0900
Subject: [PATCH 078/129] Make ja/api/configuration-head.md natural
---
ja/api/configuration-head.md | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/ja/api/configuration-head.md b/ja/api/configuration-head.md
index ccef7fd8d..04cb4adf8 100644
--- a/ja/api/configuration-head.md
+++ b/ja/api/configuration-head.md
@@ -1,6 +1,6 @@
---
title: "API: head ããããã£"
-description: Nuxt.js ã§ã¯ nuxt.config.js å
ã«ã¢ããªã±ãŒã·ã§ã³ã®ãã¹ãŠã®ããã©ã«ãã®ã¡ã¿æ
å ±ãå®çŸ©ã§ããŸãã
+description: Nuxt.js ã§ã¯ nuxt.config.js å
ã«ã¢ããªã±ãŒã·ã§ã³ã®ããã©ã«ãã®ã¡ã¿æ
å ±ãå®çŸ©ã§ããŸãã
---
@@ -12,7 +12,7 @@ description: Nuxt.js ã§ã¯ nuxt.config.js å
ã«ã¢ããªã±ãŒã·ã§ã³ã®ã
-Nuxt.js ã§ã¯ `nuxt.config.js` å
ã«ã¢ããªã±ãŒã·ã§ã³ã®ãã¹ãŠã®ããã©åºãšã®ã¡ã¿æ
å ±ãå®çŸ©ã§ããŸããããã«ã¯ `head` ããããã£ã䜿ããŸã:
+Nuxt.js ã§ã¯ `nuxt.config.js` å
ã«ã¢ããªã±ãŒã·ã§ã³ã®ããã©ã«ãã®ã¡ã¿æ
å ±ãå®çŸ©ã§ããŸããããã«ã¯ `head` ããããã£ã䜿ããŸã:
@@ -33,8 +33,8 @@ module.exports = {
-`head` ã«èšå®ã§ãããªãã·ã§ã³äžèЧãç¥ãã«ã¯ [vue-meta documentation](https://github.com/declandewet/vue-meta#recognized-metainfo-properties) ãåç
§ããŠãã ããã
+`head` ã«èšå®ã§ãããªãã·ã§ã³äžèŠ§ã¯ [vue-meta ã®ããã¥ã¡ã³ã](https://github.com/declandewet/vue-meta#recognized-metainfo-properties) ãåç
§ããŠãã ããã
-æ
å ±: ããŒãžã³ã³ããŒãã³ãã§ã `head` ã䜿ãããšãã§ããŸãã`this` ãçµç±ããŠã³ã³ããŒãã³ãã®ããŒã¿ã«ã¢ã¯ã»ã¹ã§ããŸãã[ã³ã³ããŒãã³ãã® head ããããã£](/api/pages-head) ãåç
§ããŠãã ããã
+æ
å ±: ããŒãžã®ã³ã³ããŒãã³ãã§ã `head` ã䜿ãããšãã§ãã`this` ãçµç±ããŠã³ã³ããŒãã³ãã®ããŒã¿ã«ã¢ã¯ã»ã¹ã§ããŸãã詳ãã㯠[ã³ã³ããŒãã³ãã® head ããããã£](/api/pages-head) ãåç
§ããŠãã ããã
From c8006df40bd8d180cb91986b7c55976b5d67dc7f Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Wed, 1 Mar 2017 22:47:28 +0900
Subject: [PATCH 079/129] Translate ja/api/configuration-loading.md
---
ja/api/configuration-loading.md | 106 +++++++++++++++++++++++---------
1 file changed, 78 insertions(+), 28 deletions(-)
diff --git a/ja/api/configuration-loading.md b/ja/api/configuration-loading.md
index a1276936a..ac60c0fc4 100644
--- a/ja/api/configuration-loading.md
+++ b/ja/api/configuration-loading.md
@@ -1,19 +1,34 @@
---
-title: "API: The loading Property"
-description: Nuxt.js uses it's own component to show a progress bar between the routes. You can customize it, disable it or create your own component.
+title: "API: loading ããããã£"
+description: Nuxt.js ã¯ã«ãŒãããå¥ã®ã«ãŒããžé·ç§»ããéãããã°ã¬ã¹ããŒã衚瀺ããããã«èªèº«ã®ã³ã³ããŒãã³ãã䜿ããŸãããããã«ã¹ã¿ãã€ãºããããããã°ã¬ã¹ããŒã䜿ããªãããã«ããããç¬èªã®ã³ã³ããŒãã³ããäœæãããã§ããŸãã
---
-# The loading Property
+
+
-- Type: `Boolean` or `Object` or `String`
+
-> Nuxt.js uses it's own component to show a progress bar between the routes. You can customize it, disable it or create your own component.
+# loadding ããããã£
-## Disable the Progress Bar
+
-- Type: `Boolean`
+- ã¿ã€ã: `ããŒãªã¢ã³` ãŸã㯠`ãªããžã§ã¯ã` ãŸã㯠`æåå`
-If you don't want to display the progress bar between the routes, simply add `loading: false` in your `nuxt.config.js` file:
+
+
+> Nuxt.js ã¯ã«ãŒãããå¥ã®ã«ãŒããžé·ç§»ããéãããã°ã¬ã¹ããŒã衚瀺ããããã«èªèº«ã®ã³ã³ããŒãã³ãã䜿ããŸãããããã«ã¹ã¿ãã€ãºããããããã°ã¬ã¹ããŒã䜿ããªãããã«ããããç¬èªã®ã³ã³ããŒãã³ããäœæãããã§ããŸãã
+
+
+
+## ããã°ã¬ã¹ããŒãç¡å¹ã«ãã
+
+
+
+- ã¿ã€ã: `ããŒãªã¢ã³`
+
+
+
+ã«ãŒãããå¥ã®ã«ãŒããžé·ç§»ããéã«ããã°ã¬ã¹ããŒã衚瀺ããããªããšã㯠`nuxt.config.js` ãã¡ã€ã«å
ã«åã« `loading: false` ãšèšè¿°ããŸã:
```js
module.exports = {
@@ -21,20 +36,35 @@ module.exports = {
}
```
-## Customize the Progress Bar
+
+
+## ããã°ã¬ã¹ããŒãã«ã¹ã¿ãã€ãºãã
+
+
+
+- ã¿ã€ã: `ãªããžã§ã¯ã`
-- Type: `Object`
+
-List of properties to customize the progress bar.
+ããã°ã¬ã¹ããŒãã«ã¹ã¿ãã€ãºããããããã£äžèЧã
-| Key | Type | Default | Description |
+
+
+
+
+
+
+
+| ã㌠| ã¿ã€ã | ããã©ã«ã | 説æ |
|-----|------|---------|-------------|
-| `color` | String | `'black'` | CSS color of the progress bar |
-| `failedColor` | String | `'red'` | CSS color of the progress bar when an error appended while rendering the route (if `data` or `fetch` sent back an error for example). |
-| `height` | String | `'2px'` | Height of the progress bar (used in the `style` property of the progress bar) |
-| `duration` | Number | `5000` | In ms, the maximum duration of the progress bar, Nuxt.js assumes that the route will be rendered before 5 seconds. |
+| `color` | æåå | `'black'` | ããã°ã¬ã¹ããŒã® CSS ã«ã©ãŒ |
+| `failedColor` | æåå | `'red'` | åœè©²ã«ãŒããã¬ã³ããªã³ã°äžã«ãšã©ãŒãçºçããå Žåã®ããã°ã¬ã¹ããŒã® CSS ã«ã©ãŒïŒäŸãã° `data` ãŸã㯠`fetch` ããšã©ãŒãè¿ãããšãïŒ |
+| `height` | æåå | `'2px'` | ããã°ã¬ã¹ããŒã®é«ãïŒããã°ã¬ã¹ããŒã® `style` ããããã£ã§äœ¿ãããŸãïŒ |
+| `duration` | æ°å€ | `5000` | ããã°ã¬ã¹ããŒã®æå€§ç¶ç¶æéãããªç§ã§æå®ããŸããNuxt.js ã¯åã«ãŒã㯠5ç§ä»¥å
ã«ã¬ã³ããªã³ã°ããããšæ³å®ããŠããŸã |
+
+
-For a blue progress bar with 5px of height, we update the `nuxt.config.js` to the following:
+éãããã°ã¬ã¹ããŒã 5px ã®é«ãã§è¡šç€ºããã«ã¯ `nuxt.config.js` ãæ¬¡ã®ããã«æŽæ°ããŸã:
```js
module.exports = {
@@ -45,22 +75,40 @@ module.exports = {
}
```
-## Use a Custom Loading Component
+
+
+## ç¬èªã®ã³ã³ããŒãã³ãã䜿ã
+
+
+
+- ã¿ã€ã: `æåå`
-- Type: `String`
+
-You can create your own component that Nuxt.js will call instead of its default component. To do so, you need to give a path to your component in the `loading` option. Then, your component will be called directly by Nuxt.js.
+Nuxt.js ãããã©ã«ãã®ã³ã³ããŒãã³ãã®ä»£ããã«åŒã³åºããç¬èªã®ã³ã³ããŒãã³ããäœæã§ããŸãããã®ããã«ã¯ `loading` ãªãã·ã§ã³å
ã«ç¬èªã³ã³ããŒãã³ãã®ãã¹ãæå®ããå¿
èŠããããŸããããããã°ç¬èªã³ã³ããŒãã³ã㯠Nuxt.js ã«ããçŽæ¥åŒã³åºãããŸãã
-**Your component has to expose some of theses methods:**
+
-| Method | Required | Description |
+**ç¬èªã³ã³ããŒãã³ãã¯ããã€ãã®ã¡ãœããã䜿ããããã«ããŠããå¿
èŠããããŸã:**
+
+
+
+
+
+
+
+
+| ã¡ãœãã | å¿
é ãåŠã | 説æ |
|--------|----------|-------------|
-| `start()` | Required | Called when a route changes, this is here where you display your component. |
-| `finish()` | Required | Called when a route is loaded (and data fetched), this is here where you hide your component. |
-| `fail()` | *Optional* | Called when a route couldn't be loaded (failed to fetch data for example). |
-| `increase(num)` | *Optional* | Called during loading the route component, `num` is an Integer < 100. |
+| `start()` | å¿
é | ã«ãŒãã倿Žããããšãã«åŒã³åºãããŸãããããç¬èªã³ã³ããŒãã³ãã衚瀺ãããæç¹ã§ã |
+| `finish()` | å¿
é | ã«ãŒããããŒãïŒåã³ããŒã¿ååŸïŒããããšãã«åŒã³åºãããŸãããããç¬èªã³ã³ããŒãã³ããé衚瀺ã«ãªãæç¹ã§ã |
+| `fail()` | *å¿
é ã§ãªã* | ã«ãŒããããŒãã§ããªãã£ããšãã«åŒã³åºãããŸãïŒäŸãã°ããŒã¿ã®ååŸã«å€±æãããªã©ïŒ |
+| `increase(num)` | *å¿
é ã§ãªã* | ã«ãŒãã®ã³ã³ããŒãã³ããããŒããããŠããéã«åŒã³åºãããŸãã`num` 㯠100 æªæºã®æŽæ°ã§ã |
+
+
+
+`components/loading.vue` ã«ç¬èªã³ã³ããŒãã³ããäœãããšãã§ããŸã:
-We can create our custom component in `components/loading.vue`:
```html
@@ -100,7 +148,9 @@ export default {
```
-Then, we update our `nuxt.config.js` to tell Nuxt.js to use our component:
+
+
+ãããã `nuxt.config.js` ãæŽæ°ããŠãç¬èªã³ã³ããŒãã³ãã䜿ãããšã Nuxt.js ã«äŒããŸã:
```js
module.exports = {
From 788a0c5d61ace844bea07b035f4f86484b529799 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Wed, 1 Mar 2017 22:58:13 +0900
Subject: [PATCH 080/129] Make ja/api/configuration-loading.md natural
---
ja/api/configuration-loading.md | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/ja/api/configuration-loading.md b/ja/api/configuration-loading.md
index ac60c0fc4..fc8a902fc 100644
--- a/ja/api/configuration-loading.md
+++ b/ja/api/configuration-loading.md
@@ -46,7 +46,7 @@ module.exports = {
-ããã°ã¬ã¹ããŒãã«ã¹ã¿ãã€ãºããããããã£äžèЧã
+ããã°ã¬ã¹ããŒãã«ã¹ã¿ãã€ãºããããã«äœ¿ããããããã£äžèЧã
@@ -58,13 +58,13 @@ module.exports = {
| ã㌠| ã¿ã€ã | ããã©ã«ã | 説æ |
|-----|------|---------|-------------|
| `color` | æåå | `'black'` | ããã°ã¬ã¹ããŒã® CSS ã«ã©ãŒ |
-| `failedColor` | æåå | `'red'` | åœè©²ã«ãŒããã¬ã³ããªã³ã°äžã«ãšã©ãŒãçºçããå Žåã®ããã°ã¬ã¹ããŒã® CSS ã«ã©ãŒïŒäŸãã° `data` ãŸã㯠`fetch` ããšã©ãŒãè¿ãããšãïŒ |
+| `failedColor` | æåå | `'red'` | ã«ãŒããã¬ã³ããªã³ã°äžã«ãšã©ãŒãçºçããå Žåã®ããã°ã¬ã¹ããŒã® CSS ã«ã©ãŒïŒäŸãã° `data` ãŸã㯠`fetch` ããšã©ãŒãè¿ãããšãïŒ |
| `height` | æåå | `'2px'` | ããã°ã¬ã¹ããŒã®é«ãïŒããã°ã¬ã¹ããŒã® `style` ããããã£ã§äœ¿ãããŸãïŒ |
-| `duration` | æ°å€ | `5000` | ããã°ã¬ã¹ããŒã®æå€§ç¶ç¶æéãããªç§ã§æå®ããŸããNuxt.js ã¯åã«ãŒã㯠5ç§ä»¥å
ã«ã¬ã³ããªã³ã°ããããšæ³å®ããŠããŸã |
+| `duration` | æ°å€ | `5000` | ããã°ã¬ã¹ããŒã衚瀺ããæéã®æå€§å€ãããªç§ã§æå®ããŸããNuxt.js ã¯åã«ãŒãã 5ç§ä»¥å
ã«ã¬ã³ããªã³ã°ããããšæ³å®ããŠããŸã |
-éãããã°ã¬ã¹ããŒã 5px ã®é«ãã§è¡šç€ºããã«ã¯ `nuxt.config.js` ãæ¬¡ã®ããã«æŽæ°ããŸã:
+äŸãšããŠãéãããã°ã¬ã¹ããŒã 5px ã®é«ãã§è¡šç€ºããã«ã¯ `nuxt.config.js` ãæ¬¡ã®ããã«ç·šéããŸã:
```js
module.exports = {
@@ -89,7 +89,7 @@ Nuxt.js ãããã©ã«ãã®ã³ã³ããŒãã³ãã®ä»£ããã«åŒã³åºãã
-**ç¬èªã³ã³ããŒãã³ãã¯ããã€ãã®ã¡ãœããã䜿ããããã«ããŠããå¿
èŠããããŸã:**
+**ç¬èªã³ã³ããŒãã³ãã¯ããã€ãã®ã¡ãœãããåããŠããå¿
èŠããããŸã:**
@@ -100,8 +100,8 @@ Nuxt.js ãããã©ã«ãã®ã³ã³ããŒãã³ãã®ä»£ããã«åŒã³åºãã
| ã¡ãœãã | å¿
é ãåŠã | 説æ |
|--------|----------|-------------|
-| `start()` | å¿
é | ã«ãŒãã倿Žããããšãã«åŒã³åºãããŸãããããç¬èªã³ã³ããŒãã³ãã衚瀺ãããæç¹ã§ã |
-| `finish()` | å¿
é | ã«ãŒããããŒãïŒåã³ããŒã¿ååŸïŒããããšãã«åŒã³åºãããŸãããããç¬èªã³ã³ããŒãã³ããé衚瀺ã«ãªãæç¹ã§ã |
+| `start()` | å¿
é | ã«ãŒãã倿Žããããšãã«åŒã³åºãããŸãããã®ãšãã«ç¬èªã³ã³ããŒãã³ãã®è¡šç€ºãéå§ãããŸã |
+| `finish()` | å¿
é | ã«ãŒããããŒãïŒåã³ããŒã¿ååŸïŒããããšãã«åŒã³åºãããŸãããã®ãšãã«ç¬èªã³ã³ããŒãã³ãã衚瀺ãçµäºããŸã |
| `fail()` | *å¿
é ã§ãªã* | ã«ãŒããããŒãã§ããªãã£ããšãã«åŒã³åºãããŸãïŒäŸãã°ããŒã¿ã®ååŸã«å€±æãããªã©ïŒ |
| `increase(num)` | *å¿
é ã§ãªã* | ã«ãŒãã®ã³ã³ããŒãã³ããããŒããããŠããéã«åŒã³åºãããŸãã`num` 㯠100 æªæºã®æŽæ°ã§ã |
@@ -150,7 +150,7 @@ export default {
-ãããã `nuxt.config.js` ãæŽæ°ããŠãç¬èªã³ã³ããŒãã³ãã䜿ãããšã Nuxt.js ã«äŒããŸã:
+ãããã `nuxt.config.js` ãç·šéããŠãç¬èªã³ã³ããŒãã³ãã䜿ãããšã Nuxt.js ã«äŒããŸã:
```js
module.exports = {
From 217125cd13d13b3aef80cc14ba9f47676745efe0 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Wed, 1 Mar 2017 23:10:17 +0900
Subject: [PATCH 081/129] Translate ja/api/configuration-plugins.md
---
ja/api/configuration-plugins.md | 44 ++++++++++++++++++++++++---------
1 file changed, 33 insertions(+), 11 deletions(-)
diff --git a/ja/api/configuration-plugins.md b/ja/api/configuration-plugins.md
index 6998e0082..33358cccf 100644
--- a/ja/api/configuration-plugins.md
+++ b/ja/api/configuration-plugins.md
@@ -1,23 +1,39 @@
---
-title: "API: The plugins Property"
-description: Use vue.js plugins with the plugins option of nuxt.js.
+title: "API: plugins ããããã£"
+description: Nuxt.js ã® plugins ãªãã·ã§ã³ã§ Vue.js ãã©ã°ã€ã³ã䜿ãããšãã§ããŸãã
---
-# The plugins Property
+
+
-- Type: `Array`
- - Items: `String`
+
-> The plugins property lets you add vue.js plugins easily to your main application.
+# plugins ããããã£
+
+
+
+
+- ã¿ã€ã: `é
å`
+ - èŠçŽ : `æåå`
+
+
+
+> plugins ããããã£ã䜿ããš Vue.js ãã©ã°ã€ã³ãã¡ã€ã³ã¢ããªã±ãŒã·ã§ã³ã«ç°¡åã«è¿œå ã§ããŸãã
+
+
+
+äŸïŒ`nuxt.config.js`ïŒ:
-Example (`nuxt.config.js`):
```js
module.exports = {
plugins: ['~plugins/vue-notifications']
}
```
-Then, we need to create a file in `plugins/vue-notifications.js`:
+
+
+ãããã `plugins/vue-notifications.js` ãã¡ã€ã«ãäœãå¿
èŠããããŸã:
+
```js
import Vue from 'vue'
import VueNotifications from 'vue-notifications'
@@ -25,8 +41,14 @@ import VueNotifications from 'vue-notifications'
Vue.use(VueNotifications)
```
-All the paths defined in the `plugins` property will be **imported** before initializing the main application.
+
+
+`plugins` ããããã£ã§èšå®ããããã¹ã¯ãã¹ãŠãã¡ã€ã³ã¢ããªã±ãŒã·ã§ã³ãåæåãããåã« **ã€ã³ããŒã** ãããŸãã
+
+
+
+`Vue.use()` ã䜿ãå¿
èŠããããšãã¯æ¯å `plugins/` å
ã«ãã¡ã€ã«ãäœæãããã®ãã¹ã `nuxt.config.js` å
ã® `plugins` ã«è¿œå ããå¿
èŠããããŸãã
-Every time you need to use `Vue.use()`, you should create a file in `plugins/` and add its path to `plugins` in `nuxt.config.js`.
+
-To learn more how to use the plugins, see the [guide documentation](/guide/plugins#vue-plugins).
+plugins ã®äœ¿ãæ¹ãããæ·±ãçè§£ããã«ã¯ [guide ããã¥ã¡ã³ã](/guide/plugins#vue-plugins) ãåç
§ããŠãã ããã
From 70d44abea047e75c994ecafa4c64709b04d6a485 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Wed, 1 Mar 2017 23:32:39 +0900
Subject: [PATCH 082/129] Translate ja/api/configuration-rootdir.md
---
ja/api/configuration-rootdir.md | 34 ++++++++++++++++++++++++---------
1 file changed, 25 insertions(+), 9 deletions(-)
diff --git a/ja/api/configuration-rootdir.md b/ja/api/configuration-rootdir.md
index f4570d221..906e4b2bd 100644
--- a/ja/api/configuration-rootdir.md
+++ b/ja/api/configuration-rootdir.md
@@ -1,17 +1,33 @@
---
-title: "API: The rootDir Property"
-description: Define the workspace of nuxt.js application
+title: "API: rootDir ããããã£"
+description: Nuxt.js ã¢ããªã±ãŒã·ã§ã³ã®ã¯ãŒã¯ã¹ããŒã¹ãæå®ããŸãã
---
-# The rootDir Property
+
+
-- Type: `String`
-- Default: `process.cwd()`
+
-> Define the workspace of your nuxt.js application.
+# rootDir ããããã£
-This property is overwritten by [nuxt commands](/guide/commands) and set to the argument of the command (example: `nuxt my-app/` will set the `rootDir` to `my-app/` with its absolute path).
+
+
-This property should be used when using [nuxt.js programmatically](/api/nuxt).
+- ã¿ã€ã: `æåå`
+- ããã©ã«ã: `process.cwd()`
-The downside of this option is that your `node_modules` directory should be inside the `rootDir` folder. If you want to set the path of the application without the node_modules, use the [`srcDir` option](/api/configuration-srcdir).
+
+
+Nuxt.js ã¢ããªã±ãŒã·ã§ã³ã®ã¯ãŒã¯ã¹ããŒã¹ãæå®ããŸãã
+
+
+
+ãã®ããããã£ã¯ [nuxt ã³ãã³ã](/guide/commands) ã«ããäžæžãããããã®ã³ãã³ãã®åŒæ°ãã»ãããããŸãïŒäŸ: `nuxt my-app/` ãå®è¡ãããš `rootDir` ã« `my-app/` ã絶察ãã¹ä»ãã§ã»ãããããŸãïŒ
+
+
+
+ãã®ããããã£ã¯ [Nuxt.js ãããã°ã©ã ã§äœ¿ã](/api/nuxt) ãšãã«çšããããã¹ãã§ãã
+
+
+
+ãã®ãªãã·ã§ã³ã®åŠå®çãªåŽé¢ã¯ `node_modules` ãã£ã¬ã¯ããªã `rootDir` ãã©ã«ãå
ã«ããããšãæ±ããããããšã§ããããã¢ããªã±ãŒã·ã§ã³ã®ãã¹ã node_modules ãªãã§èšå®ããããšã㯠[`srcDir` ãªãã·ã§ã³](/api/configuration-srcdir) ã䜿ã£ãŠãã ããã
From c52d898af83e77104a64591aa8718bb2be23aeb2 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Wed, 1 Mar 2017 23:35:55 +0900
Subject: [PATCH 083/129] Make ja/api/configuration-rootdir.md natural
---
ja/api/configuration-rootdir.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ja/api/configuration-rootdir.md b/ja/api/configuration-rootdir.md
index 906e4b2bd..c13f08814 100644
--- a/ja/api/configuration-rootdir.md
+++ b/ja/api/configuration-rootdir.md
@@ -26,8 +26,8 @@ Nuxt.js ã¢ããªã±ãŒã·ã§ã³ã®ã¯ãŒã¯ã¹ããŒã¹ãæå®ããŸãã
-ãã®ããããã£ã¯ [Nuxt.js ãããã°ã©ã ã§äœ¿ã](/api/nuxt) ãšãã«çšããããã¹ãã§ãã
+ãã®ããããã£ã¯ [Nuxt.js ãããã°ã©ã ã§äœ¿ã](/api/nuxt) ãšãã«çšãããšè¯ãã§ãã
-ãã®ãªãã·ã§ã³ã®åŠå®çãªåŽé¢ã¯ `node_modules` ãã£ã¬ã¯ããªã `rootDir` ãã©ã«ãå
ã«ããããšãæ±ããããããšã§ããããã¢ããªã±ãŒã·ã§ã³ã®ãã¹ã node_modules ãªãã§èšå®ããããšã㯠[`srcDir` ãªãã·ã§ã³](/api/configuration-srcdir) ã䜿ã£ãŠãã ããã
+ãã®ãªãã·ã§ã³ã¯ `node_modules` ãã£ã¬ã¯ããªã `rootDir` ãã©ã«ãå
ã«ããããšãæ±ãããšããåŽé¢ããããŸããããã¢ããªã±ãŒã·ã§ã³ã®ãã¹ã node_modules ãªãã§èšå®ããããšã㯠[`srcDir` ãªãã·ã§ã³](/api/configuration-srcdir) ã䜿ã£ãŠãã ããã
From 2e3e88a4bc8a6ce9d1c8fffc288d5b31d589f058 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Wed, 1 Mar 2017 23:45:03 +0900
Subject: [PATCH 084/129] Translate ja/api/configuration-srcdir.md
---
ja/api/configuration-srcdir.md | 35 +++++++++++++++++++++++++---------
1 file changed, 26 insertions(+), 9 deletions(-)
diff --git a/ja/api/configuration-srcdir.md b/ja/api/configuration-srcdir.md
index 9b23566d0..e64c34230 100644
--- a/ja/api/configuration-srcdir.md
+++ b/ja/api/configuration-srcdir.md
@@ -1,16 +1,28 @@
---
-title: "API: The srcDir Property"
-description: Define the source directory of your nuxt.js application
+title: "API: srcDir ããããã£"
+description: Nuxt.js ã¢ããªã±ãŒã·ã§ã³ã®ãœãŒã¹ãã£ã¬ã¯ããªãæå®ããŸãã
---
-# The srcDir Property
+
+
-- Type: `String`
-- Default: [rootDir value](/api/configuration-rootdir)
+
-> Define the source directory of your nuxt.js application
+# srcDir ããããã£
-Example (`nuxt.config.js`):
+
+
+
+- ã¿ã€ã: `æåå`
+- ããã©ã«ã: [rootDir ã®å€](/api/configuration-rootdir)
+
+
+
+> Nuxt.js ã¢ããªã±ãŒã·ã§ã³ã®ãœãŒã¹ãã£ã¬ã¯ããªãæå®ããŸãã
+
+
+
+äŸïŒ`nuxt.config.js`ïŒ:
```js
module.exports = {
@@ -18,7 +30,10 @@ module.exports = {
}
```
-Then, your application structure can be:
+
+
+äžã®ããã«æå®ãããšãã¢ããªã±ãŒã·ã§ã³ã®æ§é ãæ¬¡ã®ããã«ã§ããŸã:
+
```bash
-| app/
---| node_modules/
@@ -29,4 +44,6 @@ Then, your application structure can be:
---| package.json
```
-This option is useful to have a custom server and using nuxt.js, so all npm dependencies can be regrouped in one `package.json`.
+
+
+ãã®ãªãã·ã§ã³ã¯ Nuxt.js ã䜿ãã€ã€ã«ã¹ã¿ã ãµãŒããŒãæã€ãšãã«åœ¹ã«ç«ã¡ãŸãããã®ãããªãšãã«ããã¹ãŠã® npm äŸåããã±ãŒãžãã²ãšã€ã® `package.json` å
ã«åç·šæã§ããŸãã
From c2ba153172c4f49b1855ee9203d3669ec72b8ea5 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Wed, 1 Mar 2017 23:46:19 +0900
Subject: [PATCH 085/129] Make ja/api/configuration-srcdir.md natural
---
ja/api/configuration-srcdir.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ja/api/configuration-srcdir.md b/ja/api/configuration-srcdir.md
index e64c34230..5e496a659 100644
--- a/ja/api/configuration-srcdir.md
+++ b/ja/api/configuration-srcdir.md
@@ -46,4 +46,4 @@ module.exports = {
-ãã®ãªãã·ã§ã³ã¯ Nuxt.js ã䜿ãã€ã€ã«ã¹ã¿ã ãµãŒããŒãæã€ãšãã«åœ¹ã«ç«ã¡ãŸãããã®ãããªãšãã«ããã¹ãŠã® npm äŸåããã±ãŒãžãã²ãšã€ã® `package.json` å
ã«åç·šæã§ããŸãã
+ãã®ãªãã·ã§ã³ã¯ Nuxt.js ã䜿ãã€ã€ç¬èªã®ãµãŒããŒãæã¡ãããšãã«åœ¹ã«ç«ã¡ãŸãããã®ãããªãšãã«ããã¹ãŠã® npm äŸåããã±ãŒãžãã²ãšã€ã® `package.json` å
ã«ãŸãšããããšãã§ããŸãã
From b9fe63feee0221ad62434faa7f99911f6b577dde Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Wed, 1 Mar 2017 23:54:02 +0900
Subject: [PATCH 086/129] Translate ja/api/configuration-transition.md
---
ja/api/configuration-transition.md | 48 ++++++++++++++++++++++++------
1 file changed, 39 insertions(+), 9 deletions(-)
diff --git a/ja/api/configuration-transition.md b/ja/api/configuration-transition.md
index 9fa7efc79..5b4620a55 100644
--- a/ja/api/configuration-transition.md
+++ b/ja/api/configuration-transition.md
@@ -1,15 +1,27 @@
---
-title: "API: The transition Property"
-description: Set the default properties of the pages transitions.
+title: "API: transition ããããã£"
+description: ããŒãžã®ãã©ã³ãžã·ã§ã³ã®ããã©ã«ãèšå®ãæå®ããŸãã
---
-# The transition Property
+
+
-- Type: `String` or `Object`
+
-> Used to set the default properties of the pages transitions.
+# transition ããããã£
+
+
+
+- ã¿ã€ã: `æåå` ãŸã㯠`ãªããžã§ã¯ã`
+
+
+
+> ããŒãžã®ãã©ã³ãžã·ã§ã³ã®ããã©ã«ãèšå®ãæå®ããããã«äœ¿ãããŸãã
+
+
+
+ããã©ã«ã:
-Default:
```js
{
name: 'page',
@@ -17,12 +29,28 @@ Default:
}
```
-Example (`nuxt.config.js`):
+
+
+äŸïŒ`nuxt.config.js`ïŒ:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
```js
module.exports = {
transition: 'page'
- // or
+ // ãŸãã¯
transition: {
name: 'page',
mode: 'out-in',
@@ -33,4 +61,6 @@ module.exports = {
}
```
-The transition key in `nuxt.config.js` is used to set the default properties for the pages transitions. To learn more about the available keys when the `transition` key is an object, see the [pages transition property](/api/pages-transition#object).
+
+
+`nuxt.config.js` å
ã® transition ããŒã¯ããŒãžã®ãã©ã³ãžã·ã§ã³ã®ããã©ã«ãèšå®ãæå®ããããã«äœ¿ãããŸãã`transition` ããŒããªããžã§ã¯ãã®ãšãã«å©çšå¯èœãªããŒã«ã€ããŠããæ·±ãçè§£ããã«ã¯ [ããŒãžã®ãã©ã³ãžã·ã§ã³ããããã£](/api/pages-transition#object) ãåç
§ããŠãã ããã
From ea7312f4cf36c91dd0e4c2be1f00dccca6784412 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Thu, 2 Mar 2017 21:05:26 +0900
Subject: [PATCH 087/129] Translate ja/api/configuration-router.md
---
ja/api/configuration-router.md | 177 ++++++++++++++++++++++++++-------
1 file changed, 140 insertions(+), 37 deletions(-)
diff --git a/ja/api/configuration-router.md b/ja/api/configuration-router.md
index a95817023..5731a35c1 100644
--- a/ja/api/configuration-router.md
+++ b/ja/api/configuration-router.md
@@ -1,20 +1,35 @@
---
-title: "API: The router Property"
-description: The router property lets you customize nuxt.js router.
+title: "API: router ããããã£"
+description: router ããããã£ã䜿ã£ãŠ Nuxt.js ã®ã«ãŒã¿ãŒæ©èœãã«ã¹ã¿ãã€ãºã§ããŸãã
---
-# The router Property
+
+
-> The router property lets you customize nuxt.js router ([vue-router](https://router.vuejs.org/en/)).
+
+
+# router ããããã£
+
+
+
+> router ããããã£ã䜿ã£ãŠ Nuxt.js ã®ã«ãŒã¿ãŒæ©èœïŒ[vue-router](https://router.vuejs.org/en/)ïŒãã«ã¹ã¿ãã€ãºã§ããŸãã
## base
-- Type: `String`
-- Default: `'/'`
+
+
+
+- ã¿ã€ã: `æåå`
+- ããã©ã«ã: `'/'`
-The base URL of the app. For example, if the entire single page application is served under `/app/`, then base should use the value `'/app/'`.
+
+
+ã¢ããªã±ãŒã·ã§ã³ã®ããŒã¹ URL ã§ããäŸãã°ã·ã³ã°ã«ããŒãžã¢ããªã±ãŒã·ã§ã³å
šäœã `/app/` é
äžã§é
ä¿¡ãããå Žå㯠base ã« `'/app/'` ãèšå®ããŸãã
+
+
+
+äŸïŒ`nuxt.config.js`ïŒ:
-Example (`nuxt.config.js`):
```js
module.exports = {
router: {
@@ -23,18 +38,30 @@ module.exports = {
}
```
-When `base` is set, nuxt.js will also add in the document header ` `.
+
+
+`base` ãã»ãããããŠãããšã㯠Nuxt.js ã¯ããã¥ã¡ã³ãã®ããããŒã« ` ` ã远å ããŸãã
-> This option is given directly to the vue-router [Router constructor](https://router.vuejs.org/en/api/options.html).
+
+
+> ãã®ãªãã·ã§ã³ã¯ vue-router ã® [Router ã³ã³ã¹ãã©ã¯ã¿](https://router.vuejs.org/en/api/options.html) ã«çŽæ¥ä»äžãããŸãã
## linkActiveClass
-- Type: `String`
-- Default: `'nuxt-link-active'`
+
+
+
+- ã¿ã€ã: `æåå`
+- ããã©ã«ã: `'nuxt-link-active'`
+
+
+
+[``](/api/components-nuxt-link) ã®ããã©ã«ãã® active class ãã°ããŒãã«ã«èšå®ããŸãã
-Globally configure [``](/api/components-nuxt-link) default active class.
+
+
+äŸïŒ`nuxt.config.js`ïŒ:
-Example (`nuxt.config.js`):
```js
module.exports = {
router: {
@@ -43,32 +70,66 @@ module.exports = {
}
```
-> This option is given directly to the [vue-router Router constructor](https://router.vuejs.org/en/api/options.html).
+
-## scrollBehavior
+> ãã®ãªãã·ã§ã³ã¯ [vue-router ã® Router ã³ã³ã¹ãã©ã¯ã¿](https://router.vuejs.org/en/api/options.html) ã«çŽæ¥ä»äžãããŸãã
-- Type: `Function`
+## scrollBehavior
-The `scrollBehavior` option lets you define a custom behavior for the scroll position between the routes. This method is called every time a page is rendered.
+
+
+- ã¿ã€ã: `颿°`
+
+
+
+`scrollBehavior` ãªãã·ã§ã³ã䜿ã£ãŠãããŒãžéã®ã¹ã¯ããŒã«äœçœ®ã«ã€ããŠã®ç¬èªã®æ¯ãèããå®çŸ©ã§ããŸãããã®ã¡ãœããã¯ããŒãžãã¬ã³ããªã³ã°ããããã³ã«æ¯ååŒã³åºãããŸãã
+
+
+
+ããã©ã«ãã§ã¯ scrollBehavior ãªãã·ã§ã³ã¯æ¬¡ã®ããã«ã»ãããããŠããŸã:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-By default, the scrollBehavior option is set to:
```js
const scrollBehavior = (to, from, savedPosition) => {
- // savedPosition is only available for popstate navigations.
+ // savedPosition 㯠popState ããã²ãŒã·ã§ã³ã§ã®ã¿å©çšã§ããŸã
if (savedPosition) {
return savedPosition
} else {
let position = {}
- // if no children detected
+ // åãã¹ãèŠã€ãããªããšã
if (to.matched.length < 2) {
- // scroll to the top of the page
+ // ããŒãžã®ããããžã¹ã¯ããŒã«ãã
position = { x: 0, y: 0 }
}
else if (to.matched.some((r) => r.components.default.options.scrollToTop)) {
- // if one of the children has scrollToTop option set to true
+ // åãã¹ã®ã²ãšã€ã scrollToTop ãªãã·ã§ã³ã true ã«ã»ãããããŠãããšã
position = { x: 0, y: 0 }
}
- // if link has anchor, scroll to anchor by returning the selector
+ // ã¢ã³ã«ãŒããããšãã¯ãã»ã¬ã¯ã¿ãè¿ãããšã§ã¢ã³ã«ãŒãŸã§ã¹ã¯ããŒã«ãã
if (to.hash) {
position = { selector: to.hash }
}
@@ -77,9 +138,12 @@ const scrollBehavior = (to, from, savedPosition) => {
}
```
-Example of forcing the scroll position to the top for every routes:
+
+
+ãã¹ãŠã®ã«ãŒãã«ãããŠåŒ·å¶çã«ããããŸã§ã¹ã¯ããŒã«ãããäŸ:
`nuxt.config.js`
+
```js
module.exports = {
router: {
@@ -90,46 +154,83 @@ module.exports = {
}
```
-> This option is given directly to the vue-router [Router constructor](https://router.vuejs.org/en/api/options.html).
+
+
+> ãã®ãªãã·ã§ã³ã¯ vue-router ã® [Router ã³ã³ã¹ãã©ã¯ã¿](https://router.vuejs.org/en/api/options.html) ã«çŽæ¥ä»äžãããŸãã
## middleware
-- Type: `String` or `Array`
- - Items: `String`
+
+
+
+- ã¿ã€ã: `æåå` ãŸã㯠`é
å`
+ - èŠçŽ : `æåå`
+
+
-Set the default(s) middleware for every pages of the application.
-Example:
+ã¢ããªã±ãŒã·ã§ã³ã®ãã¹ãŠã®ããŒãžã«å¯ŸããŠããã©ã«ãã®ããã«ãŠã§ã¢ãã»ããããŸãã
+
+
+
+äŸ:
`nuxt.config.js`
+
+
+
+
+
+
+
+
+
+
```js
module.exports = {
router: {
- // Run the middleware/user-agent.js on every pages
+ // ãã¹ãŠã®ããŒãžã§ middleware/user-agent.js ãå®è¡ããŸã
middleware: 'user-agent'
}
}
```
`middleware/user-agent.js`
+
+
+
+
+
+
+
+
```js
export default function (context) {
- // Add the userAgent property in the context (available in `data` and `fetch`)
+ // userAgent ããããã£ã context å
ã«è¿œå ããŸãïŒcontext 㯠`data` ã¡ãœããã `fetch` ã¡ãœããå
ã§å©çšã§ããŸãïŒ
context.userAgent = context.isServer ? context.req.headers['user-agent'] : navigator.userAgent
}
```
-To learn more about the middleware, see the [middleware guide](/guide/routing#middleware).
+
+
+ããã«ãŠã§ã¢ã«ã€ããŠããæ·±ãçè§£ããã«ã¯ [middleware guide](/guide/routing#middleware) ã¬ã€ããåç
§ããŠãã ããã
## extendRoutes
-- Type: `Function`
+
+
+- ã¿ã€ã: `颿°`
-You may want to extend the routes created by nuxt.js. You can do it via the `extendRoutes` option.
+
-Example of adding a custom route:
+Nuxt.js ã«ãã£ãŠäœæãããã«ãŒãã£ã³ã°ãæ¡åŒµãããããšããããããããŸããããã㯠`extendRoutes` ãªãã·ã§ã³ã§å®çŸã§ããŸãã
+
+
+
+ç¬èªã®ã«ãŒãã远å ããäŸ:
`nuxt.config.js`
+
```js
const resolve = require('path').resolve
@@ -146,4 +247,6 @@ module.exports = {
}
```
-The schema of the route should respect the [vue-router](https://router.vuejs.org/en/) schema.
+
+
+ã«ãŒãã®ã¹ããŒã㯠[vue-router](https://router.vuejs.org/en/) ã®ã¹ããŒããå°éãã¹ãã§ãã
From 62e3fbec58388fd25a0ddfbbb54638de98117e03 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Thu, 2 Mar 2017 21:08:42 +0900
Subject: [PATCH 088/129] Make ja/api/configuration-router.md natural
---
ja/api/configuration-router.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ja/api/configuration-router.md b/ja/api/configuration-router.md
index 5731a35c1..342b501b4 100644
--- a/ja/api/configuration-router.md
+++ b/ja/api/configuration-router.md
@@ -1,6 +1,6 @@
---
title: "API: router ããããã£"
-description: router ããããã£ã䜿ã£ãŠ Nuxt.js ã®ã«ãŒã¿ãŒæ©èœãã«ã¹ã¿ãã€ãºã§ããŸãã
+description: router ããããã£ã䜿ã£ãŠ Nuxt.js ã®ã«ãŒã¿ãŒãã«ã¹ã¿ãã€ãºã§ããŸãã
---
@@ -12,7 +12,7 @@ description: router ããããã£ã䜿ã£ãŠ Nuxt.js ã®ã«ãŒã¿ãŒæ©èœã
-> router ããããã£ã䜿ã£ãŠ Nuxt.js ã®ã«ãŒã¿ãŒæ©èœïŒ[vue-router](https://router.vuejs.org/en/)ïŒãã«ã¹ã¿ãã€ãºã§ããŸãã
+> router ããããã£ã䜿ã£ãŠ Nuxt.js ã®ã«ãŒã¿ãŒïŒ[vue-router](https://router.vuejs.org/en/)ïŒãã«ã¹ã¿ãã€ãºã§ããŸãã
## base
From 1541d36407856ccae2e0ba287768d85308e8ed81 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Thu, 2 Mar 2017 23:20:07 +0900
Subject: [PATCH 089/129] Translate ja/api/nuxt.md
---
ja/api/nuxt.md | 46 +++++++++++++++++++++++++++++++++++++---------
1 file changed, 37 insertions(+), 9 deletions(-)
diff --git a/ja/api/nuxt.md b/ja/api/nuxt.md
index 4ff4de310..83eb579f5 100644
--- a/ja/api/nuxt.md
+++ b/ja/api/nuxt.md
@@ -1,21 +1,45 @@
---
title: "API: Nuxt(options)"
-description: You can use nuxt.js programmatically to use it as a middleware giving you the freedom of creating your own server for rendering your web applications.
+description: Nuxt.js ãããã°ã©ã ã§äœ¿ã£ãŠãNuxt.js ããŠã§ãã¢ããªã±ãŒã·ã§ã³ãã¬ã³ããªã³ã°ããç¬èªãµãŒããŒãã€ããèªç±ãäžããããã«ãŠã§ã¢ãšããŠäœ¿ãããšãã§ããŸãã
---
-# Using Nuxt.js Programmatically
+
+
-You might want to use your own server with your middleware and your API. That's why you can use Nuxt.js programmatically.
-Nuxt.js is built on the top of ES2015, which makes the code more enjoyable and cleaner to read. It doesn't make use of any transpilers and depends upon Core V8 implemented features. For these reasons, Nuxt.js targets Node.js `4.0` or higher.
+
+
+# Nuxt.js ãããã°ã©ã ã§äœ¿ã
+
+
+
+ããã«ãŠã§ã¢ã API ãšäžç·ã«ç¬èªãµãŒããŒã䜿ããããšãããããããããŸãããããã Nuxt.js ãããã°ã©ã ã§äœ¿ãããšãã§ããçç±ã§ãã
+
+
+Nuxt.js ã¯ã³ãŒããããæ¥œãããã®ããããèªã¿ããããã ES2015 以äžã§ãã«ããããŸãããã©ã³ã¹ãã€ã©ãå©çšããããŸã V8 ãšã³ãžã³ã§å®è£
ãããæ©èœã«äŸåããŸããããã®ãããªçç±ãã Nuxt.js 㯠Node.js `4.0` 以äžãã¿ãŒã²ããã«ããŠããŸãã
+
+
+
+Nuxt.js ããã®ããã« require ã§ããŸã:
-You can require Nuxt.js like this:
```js
const Nuxt = require('nuxt')
```
## Nuxt(options)
-To see the list of options to give to Nuxt.js, see the configuration section.
+
+
+Nuxt.js ã«äžãããããªãã·ã§ã³äžèЧãèŠãã«ã¯ãèšå®ã®ã»ã¯ã·ã§ã³ãåç
§ããŠãã ããã
+
+
+
+
+
+
+
+
+
+
```js
const options = {}
@@ -23,15 +47,19 @@ const options = {}
const nuxt = new Nuxt(options)
nuxt.build()
.then(() => {
- // We can use nuxt.render(req, res) or nuxt.renderRoute(route, context)
+ // nuxt.render(req, res) ããã㯠nuxt.renderRoute(route, context) ã䜿ãããšãã§ããŸã
})
```
-You can take a look at the [nuxt-express](https://github.com/nuxt/express) and [adonuxt](https://github.com/nuxt/adonuxt) starters to start quickly.
+
+
+ææ©ãå§ããããã« [nuxt-express](https://github.com/nuxt/express) ã [adonuxt](https://github.com/nuxt/adonuxt) ã¹ã¿ãŒã¿ãŒãèŠãããšãã§ããŸãã
### Debug logs
-If you want to display nuxt.js logs, you can add to the top of your file:
+
+
+Nuxt.js ã®ãã°ã衚瀺ããããšãã¯ãã¡ã€ã«ã®ãããã«äžèšã远å ããŠãã ãã:
```js
process.env.DEBUG = 'nuxt:*'
From 83874d387fc942f2b2c68341fa10f2d62c3dda4f Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Thu, 2 Mar 2017 23:29:02 +0900
Subject: [PATCH 090/129] Make ja/api/nuxt.md natural
---
ja/api/nuxt.md | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/ja/api/nuxt.md b/ja/api/nuxt.md
index 83eb579f5..052c649bb 100644
--- a/ja/api/nuxt.md
+++ b/ja/api/nuxt.md
@@ -1,6 +1,6 @@
---
title: "API: Nuxt(options)"
-description: Nuxt.js ãããã°ã©ã ã§äœ¿ã£ãŠãNuxt.js ããŠã§ãã¢ããªã±ãŒã·ã§ã³ãã¬ã³ããªã³ã°ããç¬èªãµãŒããŒãã€ããèªç±ãäžããããã«ãŠã§ã¢ãšããŠäœ¿ãããšãã§ããŸãã
+description: Nuxt.js ã¯ããã°ã©ã äžã§ãããã«ãŠã§ã¢ãšããŠäœ¿ãããšãã§ããŸããããããããšã§ãŠã§ãã¢ããªã±ãŒã·ã§ã³ãã¬ã³ããªã³ã°ããç¬èªã®ãµãŒããŒãèªç±ã«äœãããšãã§ããŸãã
---
@@ -12,7 +12,7 @@ description: Nuxt.js ãããã°ã©ã ã§äœ¿ã£ãŠãNuxt.js ããŠã§ãã¢ã
-ããã«ãŠã§ã¢ã API ãšäžç·ã«ç¬èªãµãŒããŒã䜿ããããšãããããããããŸãããããã Nuxt.js ãããã°ã©ã ã§äœ¿ãããšãã§ããçç±ã§ãã
+ããã«ãŠã§ã¢ã API ãšåãããŠç¬èªãµãŒããŒã䜿ããããšãããããããããŸããããã®ãããNuxt.js ã¯ããã°ã©ã ã§äœ¿ãããšãã§ããããã«ããŠããŸãã
Nuxt.js ã¯ã³ãŒããããæ¥œãããã®ããããèªã¿ããããã ES2015 以äžã§ãã«ããããŸãããã©ã³ã¹ãã€ã©ãå©çšããããŸã V8 ãšã³ãžã³ã§å®è£
ãããæ©èœã«äŸåããŸããããã®ãããªçç±ãã Nuxt.js 㯠Node.js `4.0` 以äžãã¿ãŒã²ããã«ããŠããŸãã
@@ -29,7 +29,7 @@ const Nuxt = require('nuxt')
-Nuxt.js ã«äžãããããªãã·ã§ã³äžèЧãèŠãã«ã¯ãèšå®ã®ã»ã¯ã·ã§ã³ãåç
§ããŠãã ããã
+Nuxt.js ã«æž¡ãããšãã§ãããªãã·ã§ã³äžèЧãèŠãã«ã¯ãèšå®ã®ã»ã¯ã·ã§ã³ãåç
§ããŠãã ããã
@@ -53,13 +53,13 @@ nuxt.build()
-ææ©ãå§ããããã« [nuxt-express](https://github.com/nuxt/express) ã [adonuxt](https://github.com/nuxt/adonuxt) ã¹ã¿ãŒã¿ãŒãèŠãããšãã§ããŸãã
+æã£åãæ©ãå§ããããã« [nuxt-express](https://github.com/nuxt/express) ã [adonuxt](https://github.com/nuxt/adonuxt) ã¹ã¿ãŒã¿ãŒãåç
§ã§ããŸãã
### Debug logs
-Nuxt.js ã®ãã°ã衚瀺ããããšãã¯ãã¡ã€ã«ã®ãããã«äžèšã远å ããŠãã ãã:
+Nuxt.js ã®ãã°ã衚瀺ããããšãã¯ãã¡ã€ã«ã®ãããã«æ¬¡ã®ã³ãŒãã远å ããŠãã ãã:
```js
process.env.DEBUG = 'nuxt:*'
From d4d195d6815db4237f90aabdd191517a9641af0f Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Fri, 3 Mar 2017 19:27:43 +0900
Subject: [PATCH 091/129] Translate ja/api/nuxt-render.md
---
ja/api/nuxt-render.md | 70 +++++++++++++++++++++++++++++++++++--------
1 file changed, 57 insertions(+), 13 deletions(-)
diff --git a/ja/api/nuxt-render.md b/ja/api/nuxt-render.md
index a3ee5e8eb..c334d3e44 100644
--- a/ja/api/nuxt-render.md
+++ b/ja/api/nuxt-render.md
@@ -1,34 +1,76 @@
---
title: "API: nuxt.render(req, res)"
-description: You can use Nuxt.js as a middleware for your node.js server.
+description: Nuxt.js ãç¬èªã® Node.js ãµãŒããŒã®ããã«ãŠã§ã¢ãšããŠäœ¿ãããšãã§ããŸãã
---
+
+
+
# nuxt.render(req, res)
-- Type: `Function`
-- Arguments:
- 1. [Request](https://nodejs.org/api/http.html#http_class_http_incomingmessage)
- 2. [Response](https://nodejs.org/api/http.html#http_class_http_serverresponse)
-- Returns: `Promise`
+
+
+
+
+
+
+- ã¿ã€ã: `颿°`
+- åŒæ°:
+ 1. [ãªã¯ãšã¹ã](https://nodejs.org/api/http.html#http_class_http_incomingmessage)
+ 2. [ã¬ã¹ãã³ã¹](https://nodejs.org/api/http.html#http_class_http_serverresponse)
+- æ»ãå€: `ãããã¹`
+
+
+
+> `nuxt.render` ã䜿ããš Nuxt.js ãç¬èªã® Node.js ãµãŒããŒã®ããã«ãŠã§ã¢ãšããŠäœ¿ãããšãã§ããŸãã
+
+
+
+[Express.js](https://github.com/expressjs/express) ãšäžç·ã«äœ¿ãäŸ:
-> You can use nuxt.js as a middleware with `nuxt.render` for your node.js server.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-Example with [Express.js](https://github.com/expressjs/express):
```js
const Nuxt = require('nuxt')
const app = require('express')()
const isProd = (process.env.NODE_ENV === 'production')
const port = process.env.PORT || 3000
-// We instantiate buxt.js with the options
+// Nuxt.js ããªãã·ã§ã³ãšãšãã«ã€ã³ã¹ã¿ã³ã¹å
let config = require('./nuxt.config.js')
config.dev = !isProd
const nuxt = new Nuxt(config)
-// Render every route with nuxt.js
+// ãã¹ãŠã®ã«ãŒãã Nuxt.js ã§ã¬ã³ããªã³ã°ãã
app.use(nuxt.render)
-// Build only in dev mode with hot-reloading
+// ããããªããŒãã£ã³ã°ããéçºã¢ãŒãã®ãšãã®ã¿ãã«ããã
if (config.dev) {
nuxt.build()
.catch((error) => {
@@ -37,9 +79,11 @@ if (config.dev) {
})
}
-// Listen the server
+// ãµãŒããŒã Listen ãã
app.listen(port, '0.0.0.0')
console.log('Server listening on localhost:' + port)
```
-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()
+
+
+ããã«ãŠã§ã¢ã®æåŸã§ **nuxt.render** ãåŒã³åºãããšãæšå¥šãããŸãããªããªã nuxt.render ã¯ãŠã§ãã¢ããªã±ãŒã·ã§ã³ã®ã¬ã³ããªã³ã°ããã³ããªã³ã°ããnext() ã¡ãœãããåŒã³åºããªãããã§ãã
From 9e14ecd22f4edd640f8a27556a00d98112159d19 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Fri, 3 Mar 2017 20:36:31 +0900
Subject: [PATCH 092/129] Translate ja/api/nuxt-render-route.md
---
ja/api/nuxt-render-route.md | 76 ++++++++++++++++++++++++++++---------
1 file changed, 59 insertions(+), 17 deletions(-)
diff --git a/ja/api/nuxt-render-route.md b/ja/api/nuxt-render-route.md
index b99091adb..2e038ec66 100644
--- a/ja/api/nuxt-render-route.md
+++ b/ja/api/nuxt-render-route.md
@@ -1,26 +1,68 @@
---
title: "API: nuxt.renderRoute(route, context)"
-description: Render a specific route with a given context.
+description: ç¹å®ã®ã«ãŒããäžããããã³ã³ããã¹ãã§ã¬ã³ããªã³ã°ããŸãã
---
+
+
+
# nuxt.renderRoute(route, context = {})
-- Type: `Function`
-- Arguments:
- 1. `String`, route to render
- 2. *Optional*, `Object`, context given, available keys: `req` & `res`
-- Returns: `Promise`
- - `html`: `String`
- - `error`: `null` or `Object`
- - `redirected`: `false` or `Object`
+
+
+
+
+
+
+
+
+
+- ã¿ã€ã: `颿°`
+- åŒæ°:
+ 1. `æåå`, ã¬ã³ããªã³ã°ããã«ãŒã
+ 2. *ãªãã·ã§ã³*, `ãªããžã§ã¯ã`, ä»äžããã³ã³ããã¹ã, å©çšã§ããããŒ: `req` åã³ `res`
+- æ»ãå€: `Promise`
+ - `html`: `æåå`
+ - `error`: `null` ãŸã㯠`ãªããžã§ã¯ã`
+ - `redirected`: `false` ãŸã㯠`ãªããžã§ã¯ã`
+
+
+
+> ç¹å®ã®ã«ãŒããäžããããã³ã³ããã¹ãã§ã¬ã³ããªã³ã°ããŸãã
+
+
+
+ãã®ã¡ãœããã¯å€§æµã¯ [nuxt.renderAndGetWindow](/api/nuxt-render-and-get-window) ãšãšãã« [ãã¹ãããç®ç](guide/development-tools#end-to-end-testing) ã§äœ¿ãããŸãã
+
+
+
+`nuxt.renderRoute` ã¯ãããã¯ã·ã§ã³ã¢ãŒãïŒdev: falseïŒã§ã¯ãã«ãåŠçã®åŸã«å®è¡ãããã¹ãã§ãã
+
+
+
+äŸ:
+
+
+
+
+
+
-> Render a specific route with a given context.
+
+
+
+
+
+
-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).
+
+
-`nuxt.renderRoute` should be executed after the build process in production mode (dev: false).
+
+
+
+
-Example:
```js
const Nuxt = require('nuxt')
let config = require('./nuxt.config.js')
@@ -32,12 +74,12 @@ nuxt.build()
return nuxt.renderRoute('/')
})
.then(({ html, error, redirected }) => {
- // html will be always a string
+ // html ã¯åžžã«æåå
- // error not null when the error layout is displayed, the error format is:
- // { statusCode: 500, message: 'My error message' }
+ // ãšã©ãŒã¬ã€ã¢ãŠãã衚瀺ããããšã㯠error 㯠null ã§ã¯ãããŸããããšã©ãŒãã©ãŒãããã¯äžèš:
+ // { statusCode: 500, message: 'ãšã©ãŒã¡ãã»ãŒãž' }
- // redirect is not false when redirect() has been used in data() or fetch()
+ // data() ã fetch() ã§ redirect() ã䜿ããããšã㯠redirected 㯠false ã§ã¯ãããŸãã
// { path: '/other-path', query: {}, status: 302 }
})
```
From 57362625fe98debb8b00c888676214c1d38485ab Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Fri, 3 Mar 2017 20:57:21 +0900
Subject: [PATCH 093/129] Translate ja/api/nuxt-render-and-get-window.md
---
ja/api/nuxt-render-and-get-window.md | 58 +++++++++++++++++++++-------
1 file changed, 45 insertions(+), 13 deletions(-)
diff --git a/ja/api/nuxt-render-and-get-window.md b/ja/api/nuxt-render-and-get-window.md
index b8c4368f9..50f7c4c45 100644
--- a/ja/api/nuxt-render-and-get-window.md
+++ b/ja/api/nuxt-render-and-get-window.md
@@ -1,35 +1,67 @@
---
title: "API: nuxt.renderAndGetWindow(url, options)"
-description: Get the window from a given url of a nuxt.js application.
+description: äžãããã Nuxt.js ã¢ããªã±ãŒã·ã§ã³ã® URL ãã window ãååŸããŸãã
---
+
+
+
# nuxt.renderAndGetWindow(url, options = {})
-- Type: `Function`
-- Argument: `String`
- 1. `String`: url to render
- 2. *Optional*, `Object`: options
- - virtualConsole: `Boolean` (default: `true`)
-- Returns: `Promise`
- - Returns: `window`
+
+
+
+
+
+
+
+
+- ã¿ã€ã: `颿°`
+- åŒæ°: `æåå`
+ 1. `æåå`: ã¬ã³ããªã³ã°ãã URL
+ 2. *ãªãã·ã§ã³*, `ãªããžã§ã¯ã`: ãªãã·ã§ã³
+ - virtualConsole: `ããŒãªã¢ã³`ïŒããã©ã«ã: `true`ïŒ
+- æ»ãå€: `Promise`
+ - æ»ãå€: `window`
+
+
+
+> äžãããã Nuxt.js ã¢ããªã±ãŒã·ã§ã³ã® URL ãã window ãååŸããŸãã
+
+
-> Get the window from a given url of a nuxt.js application.
+ãã®ã¡ãœãã㯠[ãã¹ãããç®ç](guide/development-tools#end-to-end-testing) ã®ããã®ã¢ãŒãã§ãã
-This method is made for [test purposes](guide/development-tools#end-to-end-testing).
+
+
+ãã®é¢æ°ã䜿ãããã«ã¯ `jsdom` ãã€ã³ã¹ããŒã«ããå¿
èŠããããŸãã:
-To use this function, you have to install `jsdom`:
```bash
npm install --save-dev jsdom
```
-Example:
+
+
+äŸ:
+
+
+
+
+
+
+
+
+
+
+
+
```js
const Nuxt = require('nuxt')
const nuxt = new Nuxt()
nuxt.renderAndGetWindow('http://localhost:3000')
.then((window) => {
- // Display the head
+ // head å
ã® ã®å
容ã衚瀺
console.log(window.document.title)
})
```
From 3079749c0eb257fdcf57a80956b39ee9d6bfafb8 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Fri, 3 Mar 2017 21:09:53 +0900
Subject: [PATCH 094/129] Make ja/api/nuxt-* natural
---
ja/api/nuxt-render-and-get-window.md | 8 ++++----
ja/api/nuxt-render-route.md | 10 +++++-----
ja/api/nuxt-render.md | 6 +++---
ja/api/nuxt.md | 2 +-
4 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/ja/api/nuxt-render-and-get-window.md b/ja/api/nuxt-render-and-get-window.md
index 50f7c4c45..2686e2b0a 100644
--- a/ja/api/nuxt-render-and-get-window.md
+++ b/ja/api/nuxt-render-and-get-window.md
@@ -1,6 +1,6 @@
---
title: "API: nuxt.renderAndGetWindow(url, options)"
-description: äžãããã Nuxt.js ã¢ããªã±ãŒã·ã§ã³ã® URL ãã window ãååŸããŸãã
+description: Nuxt.js ã¢ããªã±ãŒã·ã§ã³ã® URL ãæž¡ã㊠window ãååŸããŸãã
---
@@ -21,16 +21,16 @@ description: äžãããã Nuxt.js ã¢ããªã±ãŒã·ã§ã³ã® URL ãã wind
1. `æåå`: ã¬ã³ããªã³ã°ãã URL
2. *ãªãã·ã§ã³*, `ãªããžã§ã¯ã`: ãªãã·ã§ã³
- virtualConsole: `ããŒãªã¢ã³`ïŒããã©ã«ã: `true`ïŒ
-- æ»ãå€: `Promise`
+- æ»ãå€: `ãããã¹`
- æ»ãå€: `window`
-> äžãããã Nuxt.js ã¢ããªã±ãŒã·ã§ã³ã® URL ãã window ãååŸããŸãã
+> Nuxt.js ã¢ããªã±ãŒã·ã§ã³ã® URL ãæž¡ã㊠window ãååŸããŸãã
-ãã®ã¡ãœãã㯠[ãã¹ãããç®ç](guide/development-tools#end-to-end-testing) ã®ããã®ã¢ãŒãã§ãã
+ãã®ã¡ãœãã㯠[ãã¹ãããç®ç](guide/development-tools#end-to-end-testing) ã§äœ¿ãããŸãã
diff --git a/ja/api/nuxt-render-route.md b/ja/api/nuxt-render-route.md
index 2e038ec66..e9ea5a809 100644
--- a/ja/api/nuxt-render-route.md
+++ b/ja/api/nuxt-render-route.md
@@ -1,6 +1,6 @@
---
title: "API: nuxt.renderRoute(route, context)"
-description: ç¹å®ã®ã«ãŒããäžããããã³ã³ããã¹ãã§ã¬ã³ããªã³ã°ããŸãã
+description: ç¹å®ã®ã«ãŒããã¬ã³ããªã³ã°ããŸãããã®éã«ã³ã³ããã¹ããæž¡ãããšãã§ããŸãã
---
@@ -21,22 +21,22 @@ description: ç¹å®ã®ã«ãŒããäžããããã³ã³ããã¹ãã§ã¬ã³ã
- åŒæ°:
1. `æåå`, ã¬ã³ããªã³ã°ããã«ãŒã
2. *ãªãã·ã§ã³*, `ãªããžã§ã¯ã`, ä»äžããã³ã³ããã¹ã, å©çšã§ããããŒ: `req` åã³ `res`
-- æ»ãå€: `Promise`
+- æ»ãå€: `ãããã¹`
- `html`: `æåå`
- `error`: `null` ãŸã㯠`ãªããžã§ã¯ã`
- `redirected`: `false` ãŸã㯠`ãªããžã§ã¯ã`
-> ç¹å®ã®ã«ãŒããäžããããã³ã³ããã¹ãã§ã¬ã³ããªã³ã°ããŸãã
+> ç¹å®ã®ã«ãŒããã¬ã³ããªã³ã°ããŸãããã®éã«ã³ã³ããã¹ããæž¡ãããšãã§ããŸãã
-ãã®ã¡ãœããã¯å€§æµã¯ [nuxt.renderAndGetWindow](/api/nuxt-render-and-get-window) ãšãšãã« [ãã¹ãããç®ç](guide/development-tools#end-to-end-testing) ã§äœ¿ãããŸãã
+ãã®ã¡ãœããã¯ã»ãšãã©ã®å Žå [nuxt.renderAndGetWindow](/api/nuxt-render-and-get-window) ãšãšãã« [ãã¹ãããç®ç](guide/development-tools#end-to-end-testing) ã§äœ¿ãããŸãã
-`nuxt.renderRoute` ã¯ãããã¯ã·ã§ã³ã¢ãŒãïŒdev: falseïŒã§ã¯ãã«ãåŠçã®åŸã«å®è¡ãããã¹ãã§ãã
+`nuxt.renderRoute` ã¯ãããã¯ã·ã§ã³ã¢ãŒãïŒdev: falseïŒã§ã¯ãã«ãåŠçã®åŸã«å®è¡ãããšè¯ãã§ãããã
diff --git a/ja/api/nuxt-render.md b/ja/api/nuxt-render.md
index c334d3e44..9fb07a72c 100644
--- a/ja/api/nuxt-render.md
+++ b/ja/api/nuxt-render.md
@@ -26,7 +26,7 @@ description: Nuxt.js ãç¬èªã® Node.js ãµãŒããŒã®ããã«ãŠã§ã¢ãš
-[Express.js](https://github.com/expressjs/express) ãšäžç·ã«äœ¿ãäŸ:
+Nuxt.js ã [express](https://github.com/expressjs/express) ãšäžç·ã«äœ¿ãäŸ:
@@ -62,7 +62,7 @@ const app = require('express')()
const isProd = (process.env.NODE_ENV === 'production')
const port = process.env.PORT || 3000
-// Nuxt.js ããªãã·ã§ã³ãšãšãã«ã€ã³ã¹ã¿ã³ã¹å
+// Nuxt.js ããªãã·ã§ã³ãšãšãã«ã€ã³ã¹ã¿ã³ã¹åãã
let config = require('./nuxt.config.js')
config.dev = !isProd
const nuxt = new Nuxt(config)
@@ -86,4 +86,4 @@ console.log('Server listening on localhost:' + port)
-ããã«ãŠã§ã¢ã®æåŸã§ **nuxt.render** ãåŒã³åºãããšãæšå¥šãããŸãããªããªã nuxt.render ã¯ãŠã§ãã¢ããªã±ãŒã·ã§ã³ã®ã¬ã³ããªã³ã°ããã³ããªã³ã°ããnext() ã¡ãœãããåŒã³åºããªãããã§ãã
+ããã«ãŠã§ã¢ã®æåŸã§ **nuxt.render** ãåŒã³åºãããšãæšå¥šãããŸãããã㯠nuxt.render ã¯ãŠã§ãã¢ããªã±ãŒã·ã§ã³ã®ã¬ã³ããªã³ã°ããã³ããªã³ã°ããnext() ã¡ãœãããåŒã³åºããªãããã§ãã
diff --git a/ja/api/nuxt.md b/ja/api/nuxt.md
index 052c649bb..3840b021e 100644
--- a/ja/api/nuxt.md
+++ b/ja/api/nuxt.md
@@ -55,7 +55,7 @@ nuxt.build()
æã£åãæ©ãå§ããããã« [nuxt-express](https://github.com/nuxt/express) ã [adonuxt](https://github.com/nuxt/adonuxt) ã¹ã¿ãŒã¿ãŒãåç
§ã§ããŸãã
-### Debug logs
+### ãã°ã䜿ã£ãŠãããã°ãã
From 134e41d040125e3dc3ff7e701b1cb48b46d81e05 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Fri, 3 Mar 2017 21:24:52 +0900
Subject: [PATCH 095/129] Translate ja/api/menu.json
---
ja/api/menu.json | 22 +++++++++++-----------
ja/lang.json | 2 +-
2 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/ja/api/menu.json b/ja/api/menu.json
index e32f0ff0f..eb68a3cde 100644
--- a/ja/api/menu.json
+++ b/ja/api/menu.json
@@ -1,6 +1,6 @@
[
{
- "title": "Pages",
+ "title": "ããŒãž",
"links": [
{ "name": "data", "to": "/" },
{ "name": "fetch", "to": "/pages-fetch" },
@@ -11,16 +11,16 @@
{
"name": "transition", "to": "/pages-transition",
"contents": [
- { "name": "String", "to": "#string" },
- { "name": "Object", "to": "#object" },
- { "name": "Function", "to": "#function" }
+ { "name": "æåå", "to": "#æåå" },
+ { "name": "ãªããžã§ã¯ã", "to": "#ãªããžã§ã¯ã" },
+ { "name": "颿°", "to": "#颿°" }
]
},
{ "name": "validate", "to": "/pages-validate" }
]
},
{
- "title": "Components",
+ "title": "ã³ã³ããŒãã³ã",
"links": [
{ "name": "nuxt", "to": "/components-nuxt" },
{ "name": "nuxt-child", "to": "/components-nuxt-child" },
@@ -28,7 +28,7 @@
]
},
{
- "title": "Configuration",
+ "title": "èšå®",
"links": [
{
"name": "build",
@@ -61,9 +61,9 @@
"name": "loading",
"to": "/configuration-loading",
"contents": [
- { "name": "Disable the Progress Bar", "to": "#disable-the-progress-bar" },
- { "name": "Customize the Progress Bar", "to": "#customize-the-progress-bar" },
- { "name": "Use a Custom Loading Component", "to": "#use-a-custom-loading-component" }
+ { "name": "ããã°ã¬ã¹ããŒãç¡å¹ã«ãã", "to": "#ããã°ã¬ã¹ããŒãç¡å¹ã«ãã" },
+ { "name": "ããã°ã¬ã¹ããŒãã«ã¹ã¿ãã€ãºãã", "to": "#ããã°ã¬ã¹ããŒãã«ã¹ã¿ãã€ãºãã" },
+ { "name": "ç¬èªã®ã³ã³ããŒãã³ãã䜿ã", "to": "#ç¬èªã®ã³ã³ããŒãã³ãã䜿ã" }
]
},
{ "name": "plugins", "to": "/configuration-plugins" },
@@ -84,9 +84,9 @@
]
},
{
- "title": "Nuxt Module",
+ "title": "Nuxt ã¢ãžã¥ãŒã«",
"links": [
- { "name": "Usage", "to": "/nuxt" },
+ { "name": "Nuxt.js ãããã°ã©ã ã§äœ¿ã", "to": "/nuxt" },
{ "name": "render", "to": "/nuxt-render" },
{ "name": "renderRoute", "to": "/nuxt-render-route" },
{ "name": "renderAndGetWindow", "to": "/nuxt-render-and-get-window" }
diff --git a/ja/lang.json b/ja/lang.json
index e12c28e76..140261cae 100644
--- a/ja/lang.json
+++ b/ja/lang.json
@@ -11,7 +11,7 @@
"faq": "FAQ",
"get_started": "ã¯ããã",
"github": "Github",
- "guide": "Guide",
+ "guide": "ã¬ã€ã",
"homepage": "ããŒã ",
"live_demo": "ã©ã€ããã¢",
"live_edit": "ã©ã€ããšãã£ãã",
From 7aefa554da66d72f53e0e2a27cc776b5c3bdcd00 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Tue, 7 Mar 2017 22:32:38 +0900
Subject: [PATCH 096/129] Translate ja/examples/auth-routes.md
---
ja/examples/auth-routes.md | 274 ++++++++++++++++++++++++++++++++-----
1 file changed, 236 insertions(+), 38 deletions(-)
diff --git a/ja/examples/auth-routes.md b/ja/examples/auth-routes.md
index 033b605ed..6bc5c93ea 100644
--- a/ja/examples/auth-routes.md
+++ b/ja/examples/auth-routes.md
@@ -1,37 +1,107 @@
---
title: Auth Routes
-description: Authenticated routes example with Nuxt.js
+description: Nuxt.js ã®èªèšŒãããã«ãŒãã®äŸ
github: auth-routes
livedemo: https://nuxt-auth-routes.gomix.me
liveedit: https://gomix.com/#!/project/nuxt-auth-routes
---
-# Documentation
+
+
+
+
+
-> Nuxt.js can be used to create authenticated routes easily.
+
-## Using Express and Sessions
+# ããã¥ã¡ã³ã
-To add the sessions feature in our application, we will use `express` and `express-session`, for this, we need to use Nuxt.js programmatically.
+
+
+> Nuxt.js ã¯èªèšŒãããã«ãŒããç°¡åã«äœæããããã«ã䜿ãããšãã§ããŸãã
+
+
+
+## Express ãšã»ãã·ã§ã³ã䜿ã
+
+
+
+ã¢ããªã±ãŒã·ã§ã³ã«ã»ãã·ã§ã³æ©èœã远å ããããã« `express` ãš `express-session` ã䜿ããŸãããã®ããã« Nuxt.js ãããã°ã©ã ã§äœ¿ãå¿
èŠããããŸãã
+
+
+
+ãŸãäŸåããã±ãŒãžãã€ã³ã¹ããŒã«ããŸã:
-First, we install the dependencies:
```bash
yarn add express express-session body-parser whatwg-fetch
```
-*We will talk about `whatwg-fetch` later.*
+
+
+*`whatwg-fetch` ã«ã€ããŠã¯åŸã»ã©è¿°ã¹ãŸãã*
+
+
+
+ãããã `server.js` ãã¡ã€ã«ãäœæããŸã:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-Then we create our `server.js`:
```js
const Nuxt = require('nuxt')
const bodyParser = require('body-parser')
const session = require('express-session')
const app = require('express')()
-// Body parser, to access req.body
+// req.body ãžã¢ã¯ã»ã¹ããããã« body-parser ã䜿ããŸã
app.use(bodyParser.json())
-// Sessions to create req.session
+// req.session ãäœæããŸã
app.use(session({
secret: 'super-secret-key',
resave: false,
@@ -39,7 +109,7 @@ app.use(session({
cookie: { maxAge: 60000 }
}))
-// POST /api/login to log in the user and add him to the req.session.authUser
+// ãŠãŒã¶ãŒãšããŠãã°ã€ã³ãããã®ãŠãŒã¶ãŒã req.session.authUser ã«è¿œå ããããã« /api/login ã« POST ããŸã
app.post('/api/login', function (req, res) {
if (req.body.username === 'demo' && req.body.password === 'demo') {
req.session.authUser = { username: 'demo' }
@@ -49,15 +119,18 @@ app.post('/api/login', function (req, res) {
})
// POST /api/logout to log out the user and remove it from the req.session
+
+// ãã°ã¢ãŠããããã®ãŠãŒã¶ãŒã req.session ããåé€ããããã« /api/logout ã POST ãã
app.post('/api/logout', function (req, res) {
delete req.session.authUser
res.json({ ok: true })
})
-// We instantiate Nuxt.js with the options
+// ãªãã·ã§ã³ãšãšãã« Nuxt.js ãã€ã³ã¹ã¿ã³ã¹åãã
const isProd = process.env.NODE_ENV === 'production'
const nuxt = new Nuxt({ dev: !isProd })
-// No build in production
+
+// ãããã¯ã·ã§ã³ç°å¢ã§ã¯ãã«ãããªã
const promise = (isProd ? Promise.resolve() : nuxt.build())
promise.then(() => {
app.use(nuxt.render)
@@ -70,7 +143,10 @@ promise.then(() => {
})
```
-And we update our `package.json` scripts:
+
+
+ãã㊠`package.json` scripts ãæŽæ°ããŸã:
+
```json
// ...
"scripts": {
@@ -81,11 +157,45 @@ And we update our `package.json` scripts:
// ...
```
-## Using the store
+
+
+## ã¹ãã¢ã䜿ã
+
+
+
+ã¢ããªã±ãŒã·ã§ã³ã«ãŠãŒã¶ãŒã **ããŒãžããŸããã§** æ¥ç¶ãããããç¥ãããããã«ãã°ããŒãã«ãªã¹ããŒãïŒç¶æ
ïŒãå¿
èŠã§ãã
+
+
+
+Nuxt.js ã« Vuex ã䜿ãããããã« `store/index.js` ãã¡ã€ã«ãäœæããŸã:
+
+
+
+
+
+
+
+
+
-We need a global state to let our application know if the user is connected **across the pages**.
+
+
+
+
-To let Nuxt.js use Vuex, we create a `store/index.js` file:
+
+
+
+
+
+
+
+
+
+
+
+
+
```js
import Vue from 'vue'
@@ -93,11 +203,10 @@ import Vuex from 'vuex'
Vue.use(Vuex)
-// Polyfill for window.fetch()
+// window.fetch() ã®ããã®ããªãã£ã«
require('whatwg-fetch')
const store = new Vuex.Store({
-
state: {
authUser: null
},
@@ -111,22 +220,33 @@ const store = new Vuex.Store({
actions: {
// ...
}
-
})
export default store
```
-1. We import `Vue` and `Vuex` (included in Nuxt.js) and we tell Vue to use Vuex to let us use `$store` in our components
-2. We `require('whatwg-fetch')` to polyfill the `fetch()` method across all browsers (see [fetch repo](https://github.com/github/fetch))
-3. We create our `SET_USER` mutation which will set the `state.authUser` to the conntected user
-4. We export our store instance to Nuxt.js can inject it to our main application
+
+
+
+
+
+1. `Vue` åã³ `Vuex` ãã€ã³ããŒããïŒNuxt.js ã«å«ãŸããŠããŸãïŒVue ã« ã³ã³ããŒãã³ãå
ã§ `$store` ã䜿ãããã« Vuex ã䜿ãããšã Vue ã«äŒããŸã
+2. ãã¹ãŠã®ãã©ãŠã¶ããŸããã§ `fetch()` ã¡ãœãããããªãã£ã«ããããã« `require('whatwg-fetch')` ããŸãïŒè©³ãã㯠[fetch ãªããžããª](https://github.com/github/fetch) åç
§ïŒ
+3. `SET_USER` ãã¥ãŒããŒã·ã§ã³ãäœæããŸããããã¯æ¥ç¶ããããŠãŒã¶ãŒã« `state.authUser` ãã»ããããŸã
+4. Nuxt.js ãã¹ãã¢ã€ã³ã¹ã¿ã³ã¹ãã¡ã€ã³ã¢ããªã±ãŒã·ã§ã³ã«æ³šå
¥ã§ããããã«ããããã«ãã¹ãã¢ã€ã³ã¹ã¿ã³ã¹ããšã¯ã¹ããŒãããŸã
-### nuxtServerInit() action
+
-Nuxt.js will call a specific action called `nuxtServerInit` with the context in argument, so when the app will be loaded, the store will be already filled with some data we can get from the server.
+### nuxtServerInit() ã¢ã¯ã·ã§ã³
+
+
+
+Nuxt.js 㯠`nuxtServerInit` ãšåŒã°ããç¹å®ã®ã¢ã¯ã·ã§ã³ãåŒã³åºããŸããåŒæ°ã«ã³ã³ããã¹ããæž¡ããŸãããã®ãããã¢ããªã±ãŒã·ã§ã³ãããŒãããããšããã¹ãã¢ã¯æ¢ã«ãµãŒããŒããååŸã§ããããŒã¿ãå
¥ããããŠããŸãã
+
+
+
+`store/index.js` å
ã« `nuxtServerInit` ã¢ã¯ã·ã§ã³ã远å ã§ããŸã:
-In our `store/index.js`, we can add the `nuxtServerInit` action:
```js
nuxtServerInit ({ commit }, { req }) {
if (req.session && req.session.authUser) {
@@ -135,13 +255,45 @@ nuxtServerInit ({ commit }, { req }) {
}
```
-### login() action
+
+
+### login() ã¢ã¯ã·ã§ã³
+
+
+
+`login` ã¢ã¯ã·ã§ã³ã远å ã§ããŸãããã®ã¢ã¯ã·ã§ã³ã¯ãã°ã€ã³ããããã«ããŒãžã³ã³ããŒãã³ãããåŒã³åºãããŸã:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-We add a `login` action which will be called from our pages component to log in the user:
```js
login ({ commit }, { username, password }) {
return fetch('/api/login', {
- // Send the client cookies to the server
+ // ã¯ã©ã€ã¢ã³ãã®ã¯ãããŒããµãŒããŒã«éä¿¡ããŸã
credentials: 'same-origin',
method: 'POST',
headers: {
@@ -165,12 +317,27 @@ login ({ commit }, { username, password }) {
}
```
-### logout() method
+
+
+### logout() ã¡ãœãã
+
+
+
+
+
+
+
+
+
+
+
+
+
```js
logout ({ commit }) {
return fetch('/api/logout', {
- // Send the client cookies to the server
+ // ã¯ã©ã€ã¢ã³ãã®ã¯ãããŒããµãŒããŒã«éä¿¡ããŸã
credentials: 'same-origin',
method: 'POST'
})
@@ -180,13 +347,42 @@ logout ({ commit }) {
}
```
-## Pages components
+
+
+## ããŒãžã³ã³ããŒãã³ã
+
+
+
+ãããããŠãŒã¶ãŒãã¢ããªã±ãŒã·ã§ã³ã«æ¥ç¶ããŠãããåŠãããã§ãã¯ããããã« `$store.state.authUser` ãããŒãžã³ã³ããŒãã³ãå
ã§äœ¿ãããšãã§ããŸãã
+
+
-Then we can use `$store.state.authUser` in our pages components to check if the user is connected in our application or not.
+### ãŠãŒã¶ãŒãæ¥ç¶ãããŠããªããšãã¯ãªãã€ã¬ã¯ããã
-### Redirect user if not connected
+
+
+`/secret` ã«ãŒãã远å ããŠã¿ãŸãããããã®ã«ãŒãã¯æ¥ç¶ãããŠãŒã¶ãŒã®ã¿ãã³ã³ãã³ããé²èЧã§ããŸã:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-Let's add a `/secret` route where only the connected user can see its content:
```html
@@ -197,7 +393,7 @@ Let's add a `/secret` route where only the connected user can see its content:
```
-We can see in the `fetch` method that we call `redirect('/')` when our user is not connected.
+
+
+ãŠãŒã¶ãŒãæ¥ç¶ããŠããªãã£ããšã `fetch` ã¡ãœããå
ã§ `redirect('/')` ãåŒã³åºãããããšã確èªã§ããŸãã
From 8d7bee3dfc6d87c585d5e21e826f2f0acd0b8b03 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Tue, 7 Mar 2017 23:06:31 +0900
Subject: [PATCH 097/129] Make ja/examples/auth-routes.md natural
---
ja/examples/auth-routes.md | 54 +++++++++++++++++++-------------------
1 file changed, 27 insertions(+), 27 deletions(-)
diff --git a/ja/examples/auth-routes.md b/ja/examples/auth-routes.md
index 6bc5c93ea..c5edc038d 100644
--- a/ja/examples/auth-routes.md
+++ b/ja/examples/auth-routes.md
@@ -1,6 +1,6 @@
---
-title: Auth Routes
-description: Nuxt.js ã®èªèšŒãããã«ãŒãã®äŸ
+title: èªèšŒã«ãŒã
+description: Nuxt.js ã䜿ã£ãèªèšŒã«ãŒãã®äŸ
github: auth-routes
livedemo: https://nuxt-auth-routes.gomix.me
liveedit: https://gomix.com/#!/project/nuxt-auth-routes
@@ -18,15 +18,15 @@ liveedit: https://gomix.com/#!/project/nuxt-auth-routes
-> Nuxt.js ã¯èªèšŒãããã«ãŒããç°¡åã«äœæããããã«ã䜿ãããšãã§ããŸãã
+> Nuxt.js ã䜿ããšèªèšŒãå¿
èŠãªã«ãŒããç°¡åã«äœæã§ããŸãã
-## Express ãšã»ãã·ã§ã³ã䜿ã
+## express ãšã»ãã·ã§ã³ã䜿ã
-ã¢ããªã±ãŒã·ã§ã³ã«ã»ãã·ã§ã³æ©èœã远å ããããã« `express` ãš `express-session` ã䜿ããŸãããã®ããã« Nuxt.js ãããã°ã©ã ã§äœ¿ãå¿
èŠããããŸãã
+ã¢ããªã±ãŒã·ã§ã³ã«ã»ãã·ã§ã³æ©èœã远å ããããã« `express` ãš `express-session` ã䜿ããŸãããã®ããã« Nuxt.js ãããã°ã©ã ã§äœ¿ãå¿
èŠããããŸãã
@@ -98,7 +98,7 @@ const bodyParser = require('body-parser')
const session = require('express-session')
const app = require('express')()
-// req.body ãžã¢ã¯ã»ã¹ããããã« body-parser ã䜿ããŸã
+// req.body ãžã¢ã¯ã»ã¹ããããã« body-parser ã䜿ã
app.use(bodyParser.json())
// req.session ãäœæããŸã
@@ -109,7 +109,7 @@ app.use(session({
cookie: { maxAge: 60000 }
}))
-// ãŠãŒã¶ãŒãšããŠãã°ã€ã³ãããã®ãŠãŒã¶ãŒã req.session.authUser ã«è¿œå ããããã« /api/login ã« POST ããŸã
+// POST /api/login ããŠãã°ã€ã³ããèªèšŒããããŠãŒã¶ãŒã req.session.authUser ã«è¿œå
app.post('/api/login', function (req, res) {
if (req.body.username === 'demo' && req.body.password === 'demo') {
req.session.authUser = { username: 'demo' }
@@ -118,15 +118,13 @@ app.post('/api/login', function (req, res) {
res.status(401).json({ error: 'Bad credentials' })
})
-// POST /api/logout to log out the user and remove it from the req.session
-
-// ãã°ã¢ãŠããããã®ãŠãŒã¶ãŒã req.session ããåé€ããããã« /api/logout ã POST ãã
+// POST /api/logout ããŠãã°ã¢ãŠããããã°ã¢ãŠããããŠãŒã¶ãŒã req.session ããåé€
app.post('/api/logout', function (req, res) {
delete req.session.authUser
res.json({ ok: true })
})
-// ãªãã·ã§ã³ãšãšãã« Nuxt.js ãã€ã³ã¹ã¿ã³ã¹åãã
+// ãªãã·ã§ã³ãšãšãã« Nuxt.js ãã€ã³ã¹ã¿ã³ã¹å
const isProd = process.env.NODE_ENV === 'production'
const nuxt = new Nuxt({ dev: !isProd })
@@ -145,7 +143,7 @@ promise.then(() => {
-ãã㊠`package.json` scripts ãæŽæ°ããŸã:
+ãŸã `package.json` scripts ãæŽæ°ããŸã:
```json
// ...
@@ -163,11 +161,11 @@ promise.then(() => {
-ã¢ããªã±ãŒã·ã§ã³ã«ãŠãŒã¶ãŒã **ããŒãžããŸããã§** æ¥ç¶ãããããç¥ãããããã«ãã°ããŒãã«ãªã¹ããŒãïŒç¶æ
ïŒãå¿
èŠã§ãã
+ã¢ããªã±ãŒã·ã§ã³ãããŠãŒã¶ãŒãèªèšŒãããŠãããåŠãã **ããŒãžããŸããã§** ç¥ãããã«ã¯ãã°ããŒãã«ãªã¹ããŒãïŒç¶æ
ïŒãå¿
èŠã§ãã
-Nuxt.js ã« Vuex ã䜿ãããããã« `store/index.js` ãã¡ã€ã«ãäœæããŸã:
+Nuxt.js ã Vuex ã䜿ããã `store/index.js` ãã¡ã€ã«ãäœæããŸã:
@@ -227,13 +225,13 @@ export default store
-
+
-1. `Vue` åã³ `Vuex` ãã€ã³ããŒããïŒNuxt.js ã«å«ãŸããŠããŸãïŒVue ã« ã³ã³ããŒãã³ãå
ã§ `$store` ã䜿ãããã« Vuex ã䜿ãããšã Vue ã«äŒããŸã
-2. ãã¹ãŠã®ãã©ãŠã¶ããŸããã§ `fetch()` ã¡ãœãããããªãã£ã«ããããã« `require('whatwg-fetch')` ããŸãïŒè©³ãã㯠[fetch ãªããžããª](https://github.com/github/fetch) åç
§ïŒ
-3. `SET_USER` ãã¥ãŒããŒã·ã§ã³ãäœæããŸããããã¯æ¥ç¶ããããŠãŒã¶ãŒã« `state.authUser` ãã»ããããŸã
-4. Nuxt.js ãã¹ãã¢ã€ã³ã¹ã¿ã³ã¹ãã¡ã€ã³ã¢ããªã±ãŒã·ã§ã³ã«æ³šå
¥ã§ããããã«ããããã«ãã¹ãã¢ã€ã³ã¹ã¿ã³ã¹ããšã¯ã¹ããŒãããŸã
+1. `Vue` åã³ `Vuex` ãã€ã³ããŒããïŒããã㯠Nuxt.js å
ã§ã€ã³ã¯ã«ãŒããããŠããŸãïŒãã³ã³ããŒãã³ãå
ã§ `$store` ã䜿ãããã« Vuex ã䜿ãããšã Vue ã«äŒããŸã
+2. ãã¹ãŠã®ãã©ãŠã¶ã§ `fetch()` ã¡ãœãããããªãã£ã«ããããã« `require('whatwg-fetch')` ããŸãïŒè©³ãã㯠[fetch ãªããžããª](https://github.com/github/fetch) åç
§ïŒ
+3. `SET_USER` ãã¥ãŒããŒã·ã§ã³ãäœæããŸããããã¯èªèšŒããããŠãŒã¶ãŒã `state.authUser` ã«ã»ããããŸã
+4. Nuxt.js ãã¹ãã¢ã€ã³ã¹ã¿ã³ã¹ãã¡ã€ã³ã¢ããªã±ãŒã·ã§ã³ã«æ³šå
¥ã§ããããã«ãããããã¹ãã¢ã€ã³ã¹ã¿ã³ã¹ããšã¯ã¹ããŒãããŸã
@@ -241,7 +239,7 @@ export default store
-Nuxt.js 㯠`nuxtServerInit` ãšåŒã°ããç¹å®ã®ã¢ã¯ã·ã§ã³ãåŒã³åºããŸããåŒæ°ã«ã³ã³ããã¹ããæž¡ããŸãããã®ãããã¢ããªã±ãŒã·ã§ã³ãããŒãããããšããã¹ãã¢ã¯æ¢ã«ãµãŒããŒããååŸã§ããããŒã¿ãå
¥ããããŠããŸãã
+Nuxt.js 㯠`nuxtServerInit` ãšåŒã°ããç¹å®ã®ã¢ã¯ã·ã§ã³ããåŒæ°ã§ã³ã³ããã¹ããæž¡ããŠåŒã³åºããŸãããããã£ãŠãã¢ããªã±ãŒã·ã§ã³ãããŒãããããšãããµãŒããŒããååŸã§ããããŒã¿ãã¹ãã¢ã«æ¢ã«ã¯å
¥ããããŠããŸãã
@@ -263,6 +261,8 @@ nuxtServerInit ({ commit }, { req }) {
`login` ã¢ã¯ã·ã§ã³ã远å ã§ããŸãããã®ã¢ã¯ã·ã§ã³ã¯ãã°ã€ã³ããããã«ããŒãžã³ã³ããŒãã³ãããåŒã³åºãããŸã:
+ãã°ã€ã³ããããã«ããŒãžã³ã³ããŒãã³ãããåŒã³åºããã `login` ã¢ã¯ã·ã§ã³ã远å ããŸã:
+
@@ -293,7 +293,7 @@ nuxtServerInit ({ commit }, { req }) {
```js
login ({ commit }, { username, password }) {
return fetch('/api/login', {
- // ã¯ã©ã€ã¢ã³ãã®ã¯ãããŒããµãŒããŒã«éä¿¡ããŸã
+ // ã¯ã©ã€ã¢ã³ãã®ã¯ãããŒããµãŒããŒã«éä¿¡
credentials: 'same-origin',
method: 'POST',
headers: {
@@ -337,7 +337,7 @@ login ({ commit }, { username, password }) {
```js
logout ({ commit }) {
return fetch('/api/logout', {
- // ã¯ã©ã€ã¢ã³ãã®ã¯ãããŒããµãŒããŒã«éä¿¡ããŸã
+ // ã¯ã©ã€ã¢ã³ãã®ã¯ãããŒããµãŒããŒã«éä¿¡
credentials: 'same-origin',
method: 'POST'
})
@@ -353,15 +353,15 @@ logout ({ commit }) {
-ãããããŠãŒã¶ãŒãã¢ããªã±ãŒã·ã§ã³ã«æ¥ç¶ããŠãããåŠãããã§ãã¯ããããã« `$store.state.authUser` ãããŒãžã³ã³ããŒãã³ãå
ã§äœ¿ãããšãã§ããŸãã
+ãŠãŒã¶ãŒãã¢ããªã±ãŒã·ã§ã³ã§èªèšŒãããŠãããåŠãããã§ãã¯ããããã«ãããŒãžã³ã³ããŒãã³ãå
ã§ `$store.state.authUser` ã䜿ãããšãã§ããŸãã
-### ãŠãŒã¶ãŒãæ¥ç¶ãããŠããªããšãã¯ãªãã€ã¬ã¯ããã
+### ãŠãŒã¶ãŒãèªèšŒãããŠããªããšãã¯ãªãã€ã¬ã¯ããã
-`/secret` ã«ãŒãã远å ããŠã¿ãŸãããããã®ã«ãŒãã¯æ¥ç¶ãããŠãŒã¶ãŒã®ã¿ãã³ã³ãã³ããé²èЧã§ããŸã:
+èªèšŒããããŠãŒã¶ãŒã®ã¿ãã³ã³ãã³ããé²èЧã§ãã `/secret` ã«ãŒãã远å ããŠã¿ãŸããã:
@@ -393,7 +393,7 @@ logout ({ commit }) {
```
-You can learn more how to use it in the [JSX section](https://vuejs.org/v2/guide/render-function.html#JSX) of the Vue.js documentation.
+
+
+JSX ã®äœ¿ãæ¹ãããæ·±ãçè§£ããã«ã¯ Vue.js ããã¥ã¡ã³ãã® [JSX ã®ã»ã¯ã·ã§ã³](https://vuejs.org/v2/guide/render-function.html#JSX) ãåç
§ããŠãã ããã
From 7c2bfe29b5505a38f1228e828fffc7601e901a65 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Tue, 7 Mar 2017 23:58:06 +0900
Subject: [PATCH 102/129] Translate ja/faq/postcss-plugins.md
---
ja/faq/postcss-plugins.md | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
diff --git a/ja/faq/postcss-plugins.md b/ja/faq/postcss-plugins.md
index 3f83d2476..1dfa5bf98 100644
--- a/ja/faq/postcss-plugins.md
+++ b/ja/faq/postcss-plugins.md
@@ -1,11 +1,18 @@
---
-title: Postcss plugins
-description: How to add postcss plugins?
+title: PostCSS ãã©ã°ã€ã³
+description: PostCSS ãã©ã°ã€ã³ã远å ããã«ã¯ïŒ
---
-# How to add postcss plugins?
+
+
-In your `nuxt.config.js` file:
+
+
+# PostCSS ãã©ã°ã€ã³ã远å ããã«ã¯ïŒ
+
+
+
+`nuxt.config.js` ãã¡ã€ã«å
ã«æ¬¡ã®ããã«èšè¿°ããŸã:
```js
module.exports = {
From 82786f3d7df515a789a04fa00e86293a1391f689 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Wed, 8 Mar 2017 00:01:10 +0900
Subject: [PATCH 103/129] Translate ja/faq/extend-webpack.md
---
ja/faq/extend-webpack.md | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
diff --git a/ja/faq/extend-webpack.md b/ja/faq/extend-webpack.md
index c2500ad25..4953adfbc 100644
--- a/ja/faq/extend-webpack.md
+++ b/ja/faq/extend-webpack.md
@@ -1,11 +1,18 @@
---
-title: Extend Webpack
-description: How to extend webpack config?
+title: Webpack èšå®ãæ¡åŒµãã
+description: Webpack ã®èšå®ãæ¡åŒµããã«ã¯ïŒ
---
-# How to extend webpack config?
+
+
-You can extend the webpack configuration via the `extend` option in your `nuxt.config.js`:
+
+
+# Webpack ã®èšå®ãæ¡åŒµããã«ã¯ïŒ
+
+
+
+`nuxt.config.js` å
ã® `extend` ãªãã·ã§ã³ã§ Webpack ã®èšå®ãæ¡åŒµã§ããŸã:
```js
module.exports = {
From b369ad3ccfec73cb2cd880db8f67c259d9cbe923 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Wed, 8 Mar 2017 00:08:06 +0900
Subject: [PATCH 104/129] Translate ja/faq/webpack-plugins.md
---
ja/faq/postcss-plugins.md | 2 +-
ja/faq/webpack-plugins.md | 15 +++++++++++----
2 files changed, 12 insertions(+), 5 deletions(-)
diff --git a/ja/faq/postcss-plugins.md b/ja/faq/postcss-plugins.md
index 1dfa5bf98..1d2dd5d32 100644
--- a/ja/faq/postcss-plugins.md
+++ b/ja/faq/postcss-plugins.md
@@ -12,7 +12,7 @@ description: PostCSS ãã©ã°ã€ã³ã远å ããã«ã¯ïŒ
-`nuxt.config.js` ãã¡ã€ã«å
ã«æ¬¡ã®ããã«èšè¿°ããŸã:
+`nuxt.config.js` ãã¡ã€ã«ã«æ¬¡ã®ããã«èšè¿°ããŸã:
```js
module.exports = {
diff --git a/ja/faq/webpack-plugins.md b/ja/faq/webpack-plugins.md
index 0c874b844..61cd319db 100644
--- a/ja/faq/webpack-plugins.md
+++ b/ja/faq/webpack-plugins.md
@@ -1,11 +1,18 @@
---
-title: Webpack plugins
-description: How to add webpack plugins?
+title: Webpack ãã©ã°ã€ã³
+description: Webpack ãã©ã°ã€ã³ã远å ããã«ã¯ïŒ
---
-# How to add webpack plugins?
+
+
-In your `nuxt.config.js` file:
+
+
+# Webpack ãã©ã°ã€ã³ã远å ããã«ã¯ïŒ
+
+
+
+`nuxt.config.js` ãã¡ã€ã«ã«æ¬¡ã®ããã«èšè¿°ããŸã:
```js
const webpack = require('webpack')
From 453daa75dd79c29ee2e278a5bf52c24430ef75c4 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Wed, 8 Mar 2017 00:12:40 +0900
Subject: [PATCH 105/129] Translate ja/faq/host-port.md
---
ja/faq/host-port.md | 27 +++++++++++++++++++++------
1 file changed, 21 insertions(+), 6 deletions(-)
diff --git a/ja/faq/host-port.md b/ja/faq/host-port.md
index 5c97c492f..d84590622 100644
--- a/ja/faq/host-port.md
+++ b/ja/faq/host-port.md
@@ -1,18 +1,33 @@
---
-title: HOST and PORT
-description: How to edit HOST and PORT with Nuxt.js?
+title: ãã¹ããšããŒãçªå·
+description: Nuxt.js ã§ãã¹ããšããŒãçªå·ã倿Žããã«ã¯ïŒ
---
-# How to edit HOST and PORT?
+
+
+
+
+
+# ãã¹ããšããŒãçªå·ã倿Žããã«ã¯ïŒ
+
+
+
+ããŒãçªå·ãèšå®ããã«ã¯ 2ã€ã®ç°ãªãæ¹æ³ããããŸã:
+
+
+
+- ç°å¢å€æ°çµç±
-You can configure the PORT with 2 different ways:
-- Via a env variables
```js
"scripts": {
"dev": "HOST=0.0.0.0 PORT=3333 nuxt"
}
```
-- Via a nuxt config in the `package.json`:
+
+
+
+- `package.json` å
ã® nuxt èšå®çµç±:
+
```js
"config": {
"nuxt": {
From f3de0f55f06a47e960e2bf32a066d5f0093a5a90 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Wed, 8 Mar 2017 00:14:17 +0900
Subject: [PATCH 106/129] Make ja/faq/host-port.md natural
---
ja/faq/host-port.md | 4 ++--
ja/faq/postcss-plugins.md | 2 +-
ja/faq/webpack-plugins.md | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/ja/faq/host-port.md b/ja/faq/host-port.md
index d84590622..efe807e98 100644
--- a/ja/faq/host-port.md
+++ b/ja/faq/host-port.md
@@ -16,7 +16,7 @@ description: Nuxt.js ã§ãã¹ããšããŒãçªå·ã倿Žããã«ã¯ïŒ
-- ç°å¢å€æ°çµç±
+- ç°å¢å€æ°ã䜿ã
```js
"scripts": {
@@ -26,7 +26,7 @@ description: Nuxt.js ã§ãã¹ããšããŒãçªå·ã倿Žããã«ã¯ïŒ
-- `package.json` å
ã® nuxt èšå®çµç±:
+- `package.json` å
ã® nuxt èšå®ã䜿ã:
```js
"config": {
diff --git a/ja/faq/postcss-plugins.md b/ja/faq/postcss-plugins.md
index 1d2dd5d32..1dfa5bf98 100644
--- a/ja/faq/postcss-plugins.md
+++ b/ja/faq/postcss-plugins.md
@@ -12,7 +12,7 @@ description: PostCSS ãã©ã°ã€ã³ã远å ããã«ã¯ïŒ
-`nuxt.config.js` ãã¡ã€ã«ã«æ¬¡ã®ããã«èšè¿°ããŸã:
+`nuxt.config.js` ãã¡ã€ã«å
ã«æ¬¡ã®ããã«èšè¿°ããŸã:
```js
module.exports = {
diff --git a/ja/faq/webpack-plugins.md b/ja/faq/webpack-plugins.md
index 61cd319db..78682f2bb 100644
--- a/ja/faq/webpack-plugins.md
+++ b/ja/faq/webpack-plugins.md
@@ -12,7 +12,7 @@ description: Webpack ãã©ã°ã€ã³ã远å ããã«ã¯ïŒ
-`nuxt.config.js` ãã¡ã€ã«ã«æ¬¡ã®ããã«èšè¿°ããŸã:
+`nuxt.config.js` ãã¡ã€ã«å
ã«æ¬¡ã®ããã«èšè¿°ããŸã:
```js
const webpack = require('webpack')
From f308f56a62598b18af6dc9a6f99914e047a52694 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Wed, 8 Mar 2017 00:28:02 +0900
Subject: [PATCH 107/129] Translate ja/faq/google-analytics.md
---
ja/faq/google-analytics.md | 79 +++++++++++++++++++++++++++++++-------
1 file changed, 65 insertions(+), 14 deletions(-)
diff --git a/ja/faq/google-analytics.md b/ja/faq/google-analytics.md
index 6d094dbf3..05bbafbe9 100644
--- a/ja/faq/google-analytics.md
+++ b/ja/faq/google-analytics.md
@@ -1,39 +1,81 @@
---
-title: Google Analytics Integration
-description: How to use Google Analytics?
+title: Google ã¢ããªãã£ã¯ã¹ã®çµ±å
+description: Google ã¢ããªãã£ã¯ã¹ã䜿ãã«ã¯ïŒ
---
-## How to use Google Analytics?
+
+
-To use [Google Analytics](https://analytics.google.com/analytics/web/) with your nuxt.js application, we recommend to create a file `plugins/ga.js`:
+
+
+## Google ã¢ããªãã£ã¯ã¹ã䜿ãã«ã¯ïŒ
+
+
+
+Nuxt.js ã¢ããªã±ãŒã·ã§ã³ã§ [Google ã¢ããªãã£ã¯ã¹](https://analytics.google.com/analytics/web/) ã䜿ãã«ã¯ `plugins/ga.js` ãšãããã¡ã€ã«ãäœæããããšãæšå¥šããŸã:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
```js
/*
-** Only run on client-side and only in production mode
+** ã¯ã©ã€ã¢ã³ããµã€ããã€ãããã¯ã·ã§ã³ã¢ãŒãã§ã®ã¿å®è¡
*/
if (process.BROWSER_BUILD && process.env.NODE_ENV === 'production') {
/*
- ** Include Google Analytics Script
+ ** Google ã¢ããªãã£ã¯ã¹ã®ã¹ã¯ãªãããã€ã³ã¯ã«ãŒã
*/
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
/*
- ** Set the current page
+ ** çŸåšã®ããŒãžãã»ãã
*/
ga('create', 'UA-XXXXXXXX-X', 'auto')
ga('send', 'pageview')
/*
- ** When the app is mounted
+ ** ã¢ããªã±ãŒã·ã§ã³ãããŠã³ããããšã
*/
window.onNuxtReady((app) => {
/*
- ** Every time the route changes
+ ** ã«ãŒãã倿Žããããã³ã«
*/
app.$nuxt.$on('routeChanged', (to, from) => {
/*
- ** We tell Google Analytic to add a page view
+ ** Google ã¢ããªãã£ã¯ã¹ã«ããŒãžãã¥ãŒã远å ãããããšãäŒãã
*/
ga('set', 'page', to.fullPath)
ga('send', 'pageview')
@@ -42,11 +84,16 @@ if (process.BROWSER_BUILD && process.env.NODE_ENV === 'production') {
}
```
-> Replace `UA-XXXXXXXX-X` by your Google Analytics tracking ID.
+
+
+> `UA-XXXXXXXX-X`ã Google ã¢ããªãã£ã¯ã¹ã®ãã©ããã³ã° ID ã«çœ®ãæããŠãã ããã
-Then, we tell nuxt.js to import it in our main application:
+
+
+ãããã `plugins/ga.js` ãã¡ã€ã³ã¢ããªã±ãŒã·ã§ã³å
ã§ã€ã³ããŒãããããšã Nuxt.js ã«äŒããŸã:
`nuxt.config.js`
+
```js
module.exports = {
plugins: [
@@ -55,6 +102,10 @@ module.exports = {
}
```
-Voilà , Google Analytics is integrated into your nuxt.js application and will track every page view!
+
+
+ããã§ Google ã¢ããªãã£ã¯ã¹ã¯ Nuxt.js ã¢ããªã±ãŒã·ã§ã³ã«çµ±åããããã¹ãŠã®ããŒãžãã¥ãŒããã©ããã³ã°ããããã«ãªããŸããïŒ
+
+
-INFO: you can use this method for any other tracking service.
+æ
å ±: ãã®æ¹æ³ãä»ã®ãã©ããã³ã°ãµãŒãã¹ã§ã䜿ãããšãã§ããŸãã
From 1a4bbb2679f49f1b60a894dffcbf1b812b157f2e Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Wed, 8 Mar 2017 00:29:42 +0900
Subject: [PATCH 108/129] Make ja/faq/google-analytics.md natural
---
ja/faq/google-analytics.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ja/faq/google-analytics.md b/ja/faq/google-analytics.md
index 05bbafbe9..80ebba6dd 100644
--- a/ja/faq/google-analytics.md
+++ b/ja/faq/google-analytics.md
@@ -104,8 +104,8 @@ module.exports = {
-ããã§ Google ã¢ããªãã£ã¯ã¹ã¯ Nuxt.js ã¢ããªã±ãŒã·ã§ã³ã«çµ±åããããã¹ãŠã®ããŒãžãã¥ãŒããã©ããã³ã°ããããã«ãªããŸããïŒ
+ããïŒããã§ Google ã¢ããªãã£ã¯ã¹ã¯ Nuxt.js ã¢ããªã±ãŒã·ã§ã³ã«çµ±åããããã¹ãŠã®ããŒãžãã¥ãŒããã©ããã³ã°ããããã«ãªããŸããïŒ
-æ
å ±: ãã®æ¹æ³ãä»ã®ãã©ããã³ã°ãµãŒãã¹ã§ã䜿ãããšãã§ããŸãã
+æ
å ±: ä»ã®ãã©ããã³ã°ãµãŒãã¹ã§ããåæ§ã®æ¹æ³ã䜿ãããšãã§ããŸãã
From 5938e0c3cc86c4193fc6feccc6c52ee2b8b083ec Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Wed, 8 Mar 2017 00:49:51 +0900
Subject: [PATCH 109/129] Format indent of code
---
ja/faq/host-port.md | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/ja/faq/host-port.md b/ja/faq/host-port.md
index efe807e98..efc8538cc 100644
--- a/ja/faq/host-port.md
+++ b/ja/faq/host-port.md
@@ -20,7 +20,7 @@ description: Nuxt.js ã§ãã¹ããšããŒãçªå·ã倿Žããã«ã¯ïŒ
```js
"scripts": {
- "dev": "HOST=0.0.0.0 PORT=3333 nuxt"
+ "dev": "HOST=0.0.0.0 PORT=3333 nuxt"
}
```
@@ -30,12 +30,12 @@ description: Nuxt.js ã§ãã¹ããšããŒãçªå·ã倿Žããã«ã¯ïŒ
```js
"config": {
- "nuxt": {
- "host": "0.0.0.0",
- "port": "3333"
- }
+ "nuxt": {
+ "host": "0.0.0.0",
+ "port": "3333"
+ }
},
"scripts": {
- "dev": "nuxt"
+ "dev": "nuxt"
}
```
From d328cc5419a03a0e96d8e381846fc3c84c67b371 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Wed, 8 Mar 2017 19:57:03 +0900
Subject: [PATCH 110/129] Translate ja/faq/window-document-undefined.md
---
ja/faq/window-document-undefined.md | 30 ++++++++++++++++++++++-------
1 file changed, 23 insertions(+), 7 deletions(-)
diff --git a/ja/faq/window-document-undefined.md b/ja/faq/window-document-undefined.md
index 3a405280c..e7d4c7d63 100644
--- a/ja/faq/window-document-undefined.md
+++ b/ja/faq/window-document-undefined.md
@@ -1,21 +1,37 @@
---
-title: Window or Document undefined
-description: Window or Document undefined with Nuxt.js?
+title: Window ãŸã㯠Document ã undefined
+description: Nuxt.js ã§ Window ãŸã㯠Document ã undefined ã®ãšãã¯ïŒ
---
-# Window or Document undefined?
+
+
-This is due to the server-side rendering.
-If you need to specify that you want to import a resource only on the client-side, you need to use the `process.BROWSER_BUILD` variable.
+
+
+# Window ãŸã㯠Document ã undefined ã®ãšãã¯ïŒ
+
+
+
+ãã®ãšã©ãŒã¯ãµãŒããŒãµã€ãã¬ã³ããªã³ã°ã«èµ·å ããŠããŸãã
+
+
+
+ãããªãœãŒã¹ãã¯ã©ã€ã¢ã³ããµã€ãã§ã®ã¿ã€ã³ããŒãããããšã㯠`process.BROWSER_BUILD` 倿°ã䜿ãå¿
èŠããããŸãã
+
+
+
+äŸãã° .vue ãã¡ã€ã«ã«æ¬¡ã®ããã«æžããŸã:
-For example, in your .vue file:
```js
if (process.BROWSER_BUILD) {
require('external_library')
}
```
-Don't forget to add your library in the [vendor bundle](/api/configuration-build#build-vendor) in your `nuxt.config.js`:
+
+
+`nuxt.config.js` ãã¡ã€ã«å
ã§åœè©²ã©ã€ãã©ãªã [vendor bundle](/api/configuration-build#build-vendor) ã«å ããŠããã®ãå¿ããªãã§ãã ããã
+
```js
build: {
vendor: ['external_library']
From df4f899c8f96cc03d56a2fd492905f43fd711b28 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Wed, 8 Mar 2017 20:10:25 +0900
Subject: [PATCH 111/129] Translate ja/faq/css-flash.md
---
ja/faq/css-flash.md | 15 ++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)
diff --git a/ja/faq/css-flash.md b/ja/faq/css-flash.md
index 41a5ed34e..baaeda7e7 100644
--- a/ja/faq/css-flash.md
+++ b/ja/faq/css-flash.md
@@ -1,12 +1,21 @@
---
title: CSS Flash
-description: Why a CSS Flash appears with Nuxt.js?
+description: ã©ãã㊠Nuxt.js ã§ CSS Flash ãèŠããã®ãïŒ
---
-# Why a CSS Flash appears?
+
+
+
+
+
+# ã©ãã㊠CSS Flash ãèŠããã®ãïŒ

-This is because the CSS is in the JavaScript build in **development mode** to allow hot-reloading via Webpack.
+
+
+ãããèŠããã®ã¯ Webpack ããšãããŠããããªããŒãã£ã³ã°ãã **éçºã¢ãŒã** ã§ãã«ããã JavaScript ã®äžã« CSS ãåã蟌ãŸããŠããããã§ãã
Don't worry in production mode, the CSS is separated and put in the header so this "flash" does not appear anymore.
+
+å¿é
ããªããŠãã ããããããã¯ã·ã§ã³ã¢ãŒãã§ã¯ CSS ã¯åé¢ãã㊠head ã«çœ®ãããããããã®ãã㪠"flash" ã¯èŠããŸããã
From eb4d26c2ab846d3861dfa1f21476a022142dd60f Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Wed, 8 Mar 2017 21:08:05 +0900
Subject: [PATCH 112/129] Translate ja/faq/async-data-components.md
---
ja/faq/async-data-components.md | 31 +++++++++++++++++++++++--------
1 file changed, 23 insertions(+), 8 deletions(-)
diff --git a/ja/faq/async-data-components.md b/ja/faq/async-data-components.md
index b96e4e2f2..b4547be64 100644
--- a/ja/faq/async-data-components.md
+++ b/ja/faq/async-data-components.md
@@ -1,14 +1,29 @@
---
-title: Async data in components
-description: Async data in components?
+title: ã³ã³ããŒãã³ãå
ã®éåæããŒã¿
+description: ã³ã³ããŒãã³ãå
ã§éåæããŒã¿ãæ±ãã«ã¯ïŒ
---
-# Async data in components?
+
+
-It is not possible because it's not linked to a route, Nuxt.js surcharges the component data() associated to a route to allow async data.
+
-For sub components, there are 2 ways of achieving it:
-1. Making the API call in the mounted() hook and setting the data afterwards, downside: no server rendering
-2. Making the API call in the data() of the page component and giving the data as a prop to the subComponent: server rendering OK. But the data() of the page might be less readable because it's loading the async data of the sub components
+# ã³ã³ããŒãã³ãå
ã§éåæããŒã¿ãæ±ãã«ã¯ïŒ
-It all depends if you want the sub components to be server-rendered or not.
+
+
+ã³ã³ããŒãã³ãã¯ã«ãŒãã«é¢é£ä»ããããŠããªãããïŒè𳿳š: åºæ¬çã«ã¯ïŒéåæããŒã¿ãæ±ãããšã¯ã§ããŸãããNuxt.js ã§ã¯ã«ãŒãã«é¢é£ä»ããããã³ã³ããŒãã³ãã® data() ã¡ãœããã«æãå ããŠéåæããŒã¿ãæ±ããããã«ããŠããŸãã
+
+
+
+ããããªããããµãã³ã³ããŒãã³ãã§ãéåæããŒã¿ãæ±ããããã«ããæ¹æ³ã 2ã€ãããŸã:
+
+
+
+
+1. mounted() ããã¯å
ã« API ã³ãŒã«ãäœæãããã®åŒã³åºã以éã«ããŒã¿ãã»ããããããšããã€ãã¹ãªåŽé¢ãšããŠã¯ããµãŒããŒãµã€ãã¬ã³ããªã³ã°ã§ããªããªããŸãã
+2. ããŒãžã³ã³ããŒãã³ãã® data() ã¡ãœããå
ã« API ã³ãŒã«ãäœæããããŒã¿ãããããã£ãšããŠãµãã³ã³ããŒãã³ãã«æž¡ãããšããã®æ¹æ³ã§ã¯ãµãŒããŒãµã€ãã¬ã³ããªã³ã°ã§ããŸãããããããŒãžã® data() ã¡ãœããããµãã³ã³ããŒãã³ãã®éåæããŒã¿ãããŒããããããå¯èªæ§ãèœã¡ããããããŸããã
+
+
+
+ã©ã¡ããéžã¶ã¹ããã¯ããµãã³ã³ããŒãã³ãããµãŒããŒãµã€ãã¬ã³ããªã³ã°ããããåŠãã«ããã£ãŠããŸãã
From bdad48e41b8fa3561f1e70a3036d8042ad02bd5e Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Wed, 8 Mar 2017 21:31:25 +0900
Subject: [PATCH 113/129] Translate ja/faq/duplicated-meta-tags.md
---
ja/faq/duplicated-meta-tags.md | 37 +++++++++++++++++++++++++---------
1 file changed, 28 insertions(+), 9 deletions(-)
diff --git a/ja/faq/duplicated-meta-tags.md b/ja/faq/duplicated-meta-tags.md
index 235a51f11..75fc76244 100644
--- a/ja/faq/duplicated-meta-tags.md
+++ b/ja/faq/duplicated-meta-tags.md
@@ -1,17 +1,31 @@
---
-title: Duplicated Meta tags
-description: Duplicated Meta tags with Nuxt.js?
+title: éè€ããã¡ã¿ã¿ã°
+description: Nuxt.js ã§ã¡ã¿ã¿ã°ãéè€ãããšãã¯ïŒ
---
-# Duplicated Meta tags?
+
+
-This is a "feature" of [vue-meta](https://github.com/declandewet/vue-meta), please take a look at the [documentation of head elements](https://nuxtjs.org/guide/html-head#defaults-meta).
+
-> To avoid any duplication when used in child component, please give a unique identifier with the hid key, please [read more](https://github.com/declandewet/vue-meta#lists-of-tags) about it.
+# ã¡ã¿ã¿ã°ãéè€ãããšãã¯ïŒ
-For the meta description, you need to add the unique identifier `hid` so vue-meta will know that it has to overwrite the default tag.
+
+
+ãã㯠[vue-meta](https://github.com/declandewet/vue-meta) ã® "ç¹åŸŽ" ã§ãã[head èŠçŽ ã®ããã¥ã¡ã³ã](https://nuxtjs.org/guide/html-head#defaults-meta) ãåç
§ããŠãã ããã
+
+
+
+ã³ã³ããŒãã³ãã§ vue-meta ã䜿ããããšãã«éè€ãé¿ããããã«ã¯ããŠããŒã¯èå¥åã hid ããŒã§ä»äžããŠãã ããã詳现㯠[ãã¡ã](https://github.com/declandewet/vue-meta#lists-of-tags) ãåç
§ããŠãã ããã
+
+
+
+äŸãã° description ã®ã¡ã¿ã¿ã°ã«ã€ããŠã`hid` ãŠããŒã¯èå¥åãä»äžããå¿
èŠããããŸããããããã° vue-meta ã¯ãããã©ã«ãã®ã¿ã°ãäžæžããã¹ããšããããšãç¥ãããšãã§ããŸãã
+
+
+
+`nuxt.config.js`:
-Your `nuxt.config.js`:
```js
...head: {
title: 'starter',
@@ -25,7 +39,10 @@ Your `nuxt.config.js`:
...
```
-An then in your individual page:
+
+
+ããããåå¥ããŒãžã«ã¯æ¬¡ã®ããã«èšè¿°ããŸã:
+
```js
export default {
head () {
@@ -39,4 +56,6 @@ export default {
}
```
-To learn how to use the `head` property in your pages, please see the [HTML head documentation](/guide/views/#html-head).
+
+
+ããŒãžå
ã® `head` ããããã£ã®äœ¿ãæ¹ãããæ·±ãçè§£ããã«ã¯ [HTML ã® head æ
å ±ã®ããã¥ã¡ã³ã](/guide/views/#html-head) ãåç
§ããŠãã ããã
From 9b39d96af7a186509f1f705bbcf6d97e91df46ff Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Thu, 9 Mar 2017 21:16:06 +0900
Subject: [PATCH 114/129] Translate ja/faq/heroku-deployment.md
---
ja/faq/heroku-deployment.md | 45 ++++++++++++++++++++++++++++---------
1 file changed, 34 insertions(+), 11 deletions(-)
diff --git a/ja/faq/heroku-deployment.md b/ja/faq/heroku-deployment.md
index d077f027f..409891c36 100644
--- a/ja/faq/heroku-deployment.md
+++ b/ja/faq/heroku-deployment.md
@@ -1,28 +1,46 @@
---
-title: Heroku Deployment
-description: How to deploy Nuxt.js on Heroku?
+title: Heroku ãžãããã€
+description: Heroku ãžãããã€ããã«ã¯ïŒ
---
-# How to deploy on Heroku?
+
+
-We recommend you to read the [Heroku documentation for node.js](https://devcenter.heroku.com/articles/nodejs-support).
+
+
+# Heroku ãžãããã€ããã«ã¯ïŒ
+
+
+
+[Node.js çšã® Heroku ããã¥ã¡ã³ã](https://devcenter.heroku.com/articles/nodejs-support) ãèªãããšããå§ãããŸãã
+
+
+
+ãŸã `npm run build` ãå®è¡ã§ããããã«ããããã«ã Heroku ã«ãããžã§ã¯ãã® `devDependencies` ãã€ã³ã¹ããŒã«ããããšãäŒããå¿
èŠããããŸã:
-First, we need to tell Heroku to install the `devDependencies` of the project (to be able to launch `npm run build`):
```bash
heroku config:set NPM_CONFIG_PRODUCTION=false
```
-Also, we want our application to listen on the port `0.0.0.0` and run in production mode:
+
+
+ãŸãã¢ããªã±ãŒã·ã§ã³ã« `0.0.0.0` ããŒãã Listen ããããããã¯ã·ã§ã³ã¢ãŒãã§èµ·åããŸã:
+
```bash
heroku config:set HOST=0.0.0.0
heroku config:set NODE_ENV=production
```
-You should see this in your Heroku dashboard (Settings section):
+
-
+Heroku ããã·ã¥ããŒãã® Settings ã»ã¯ã·ã§ã³ã§ç¢ºèªãã¹ãã§ãã
+
+ 
+
+
+
+ãããã `package.json` å
ã® `heroku-postbuild` ã¹ã¯ãªããçµç±ã§ Heroku ã« `npm run build` ãå®è¡ããããäŒããŸã:
-Then, we tell Heroku to launch `npm run build` via the `heroku-postbuild` script in our `package.json`:
```js
"scripts": {
"dev": "nuxt",
@@ -32,9 +50,14 @@ Then, we tell Heroku to launch `npm run build` via the `heroku-postbuild` script
}
```
-Finally, we can push the app on Heroku with:
+
+
+æåŸã«ã¢ããªã±ãŒã·ã§ã³ã Heroku ã« git push ããŸã:
+
```bash
git push heroku master
```
-Voilà ! Your nuxt.js application is now hosted on Heroku!
+
+
+ãããŸããïŒããã§ Nuxt.js ã¢ããªã±ãŒã·ã§ã³ã¯ Heroku ã§ãã¹ããããããã«ãªããŸããïŒ
From 17532a97c36042f1473647cf5192401f6ffd309c Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Thu, 9 Mar 2017 21:19:01 +0900
Subject: [PATCH 115/129] Make ja/faq/heroku-deployment.md natural
---
ja/faq/heroku-deployment.md | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/ja/faq/heroku-deployment.md b/ja/faq/heroku-deployment.md
index 409891c36..75e07720c 100644
--- a/ja/faq/heroku-deployment.md
+++ b/ja/faq/heroku-deployment.md
@@ -12,11 +12,11 @@ description: Heroku ãžãããã€ããã«ã¯ïŒ
-[Node.js çšã® Heroku ããã¥ã¡ã³ã](https://devcenter.heroku.com/articles/nodejs-support) ãèªãããšããå§ãããŸãã
+[Node.js çšã® Heroku ããã¥ã¡ã³ã](https://devcenter.heroku.com/articles/nodejs-support) ããèªã¿ã«ãªãããšããå§ãããŸãã
-ãŸã `npm run build` ãå®è¡ã§ããããã«ããããã«ã Heroku ã«ãããžã§ã¯ãã® `devDependencies` ãã€ã³ã¹ããŒã«ããããšãäŒããå¿
èŠããããŸã:
+ãŸã `npm run build` ãå®è¡ã§ããããã«ããããã«ãHeroku ã«ãããžã§ã¯ãã® `devDependencies` ãã€ã³ã¹ããŒã«ããããšãäŒããå¿
èŠããããŸã:
```bash
heroku config:set NPM_CONFIG_PRODUCTION=false
@@ -33,13 +33,13 @@ heroku config:set NODE_ENV=production
-Heroku ããã·ã¥ããŒãã® Settings ã»ã¯ã·ã§ã³ã§ç¢ºèªãã¹ãã§ãã
+äžèšã¯ Heroku ããã·ã¥ããŒãã® Settings ã»ã¯ã·ã§ã³ã«è¡šç€ºãããŠããŸã:

-ãããã `package.json` å
ã® `heroku-postbuild` ã¹ã¯ãªããçµç±ã§ Heroku ã« `npm run build` ãå®è¡ããããäŒããŸã:
+ãããã `package.json` å
ã® `heroku-postbuild` ã¹ã¯ãªããã䜿ã£ãŠãHeroku ã« `npm run build` ãå®è¡ããããäŒããŸã:
```js
"scripts": {
From b35feee8436b14e79c2f42ef99322b7768001de8 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Thu, 9 Mar 2017 21:23:00 +0900
Subject: [PATCH 116/129] Translate ja/faq/now-deployment.md
---
ja/faq/now-deployment.md | 24 ++++++++++++++++++------
1 file changed, 18 insertions(+), 6 deletions(-)
diff --git a/ja/faq/now-deployment.md b/ja/faq/now-deployment.md
index e796d437d..db41cf3ca 100644
--- a/ja/faq/now-deployment.md
+++ b/ja/faq/now-deployment.md
@@ -1,11 +1,19 @@
---
-title: Now Deployment
-description: How to deploy Nuxt.js with Now.sh?
+title: Now ã䜿ã£ããããã€
+description: Now ã䜿ã£ãŠãããã€ããã«ã¯ïŒ
---
-# How to deploy with Now.sh?
+
+
+
+
+
+# Now ã䜿ã£ãŠãããã€ããã«ã¯ïŒ
+
+
+
+[now.sh](https://zeit.co/now) ã䜿ã£ãŠãããã€ããã«ã¯ `package.json` ãæ¬¡ã®ããã«èšè¿°ããããšãæšå¥šãããŸã:
-To deploy with [now.sh](https://zeit.co/now) a `package.json` like follows is recommended:
```json
{
"name": "my-app",
@@ -20,6 +28,10 @@ To deploy with [now.sh](https://zeit.co/now) a `package.json` like follows is re
}
```
-Then run `now` and enjoy!
+
+
+ããã§ `now` ãå®è¡ã§ããŸãïŒãšã³ãžã§ã€ïŒ
+
+
-Note: we recommend putting `.nuxt` in `.npmignore` or `.gitignore`.
+ã¡ã¢: `.nuxt` ã `.npmignore` ãŸã㯠`.gitignore` ã«å
¥ããŠããããšããå§ãããŸãã
From ba87ec4d2d8bbaf6a9399fcd763ba6c7a2fe71e8 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Thu, 9 Mar 2017 21:42:10 +0900
Subject: [PATCH 117/129] Translate ja/faq/surge-deployment.md
---
ja/faq/surge-deployment.md | 44 ++++++++++++++++++++++++++++----------
1 file changed, 33 insertions(+), 11 deletions(-)
diff --git a/ja/faq/surge-deployment.md b/ja/faq/surge-deployment.md
index 7af82dec5..7675dcab7 100644
--- a/ja/faq/surge-deployment.md
+++ b/ja/faq/surge-deployment.md
@@ -1,33 +1,55 @@
---
-title: Surge Deployment
-description: How to deploy Nuxt.js with Surge.sh?
+title: Surge ãžãããã€
+description: Surge.sh ãžãããã€ããã«ã¯ïŒ
---
-# How to deploy with Surge.sh?
+
+
-Nuxt.js gives you the possibility to host your web application on any static hosting like [surge.sh](https://surge.sh/) for example.
+
+
+# Surge.sh ãžãããã€ããã«ã¯ïŒ
+
+
+
+Nuxt.js ã䜿ããšãäŸãã° [surge.sh](https://surge.sh/) ã®ãããªéçãã¹ãã£ã³ã°ãµãŒãã¹ã§ããŠã§ãã¢ããªã±ãŒã·ã§ã³ããã¹ãããããšãå¯èœã§ãã
+
+
+
+surge.sh ãžãããã€ããã«ã¯ããŸã surge ãã€ã³ã¹ããŒã«ããŸã:
-To deploy on surge.sh, first install it on your computer:
```bash
npm install -g surge
```
-Then, we tell nuxt.js to generate our web application:
+
+
+ãããã Nuxt.js ã«ãŠã§ãã¢ããªã±ãŒã·ã§ã³ãçæãããŸã:
```bash
npm run generate
```
-It will create a `dist` folder with everything inside ready to be deployed on a static hosting.
+
-We can then deploy it to surge.sh:
+`dist` ãã©ã«ããäœæããããã®äžã«éçãã¹ãã£ã³ã°ãµãŒãã¹ãžãããã€ããããã®ããã¹ãŠå
¥ããŸãã
+
+
+
+surge.sh ãžãããã€ã§ããŸã:
```bash
surge dist/
```
-Done :)
+
+
+ããã§å®äºã§ãã:)
+
+
+
+ãããžã§ã¯ãã [åçãªã«ãŒãã£ã³ã°](/guide/routing#dynamic-routes) ãããŠãããªããNuxt.js ã«åçãªã«ãŒãã£ã³ã°ãçæããæ¹æ³ãäŒããããã« [çæèšå®](/api/configuration-generate) ãåç
§ããŠãã ããã
-If you have a project with [dynamic routes](/guide/routing#dynamic-routes), take a look at the [generate configuration](/api/configuration-generate) to tell nuxt.js how to generate these dynamic routes.
+
-When generating your web application with `nuxt generate`, [the context](/api) given to [data()](/guide/async-data#the-data-method) and [fetch()](/guide/vuex-store#the-fetch-method) will not have `req` and `res`.
+`nuxt generate` ã§ãŠã§ãã¢ããªã±ãŒã·ã§ã³ãçæãããšã㯠[data()](/guide/async-data#the-data-method) åã³ [fetch()](/guide/vuex-store#the-fetch-method) ã«æž¡ããã [context](/api) ã `req` åã³ `res` ãæã£ãŠããŸããã
From 8a62b9c70f4c14f429a1bc0c5eb98beb60f1e5b9 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Thu, 9 Mar 2017 21:46:35 +0900
Subject: [PATCH 118/129] Make ja/faq/surge-deployment.md natural
---
ja/faq/surge-deployment.md | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/ja/faq/surge-deployment.md b/ja/faq/surge-deployment.md
index 7675dcab7..51b13ce6e 100644
--- a/ja/faq/surge-deployment.md
+++ b/ja/faq/surge-deployment.md
@@ -32,11 +32,11 @@ npm run generate
-`dist` ãã©ã«ããäœæããããã®äžã«éçãã¹ãã£ã³ã°ãµãŒãã¹ãžãããã€ããããã®ããã¹ãŠå
¥ããŸãã
+ãã®ãšã `dist` ãã©ã«ããäœæããããã®äžã«éçãã¹ãã£ã³ã°ãµãŒãã¹ãžãããã€ããããã®ããã¹ãŠå
¥ããŸãã
-surge.sh ãžãããã€ã§ããŸã:
+ãã㊠surge.sh ãžãããã€ã§ããŸã:
```bash
surge dist/
@@ -48,8 +48,8 @@ surge dist/
-ãããžã§ã¯ãã [åçãªã«ãŒãã£ã³ã°](/guide/routing#dynamic-routes) ãããŠãããªããNuxt.js ã«åçãªã«ãŒãã£ã³ã°ãçæããæ¹æ³ãäŒããããã« [çæèšå®](/api/configuration-generate) ãåç
§ããŠãã ããã
+ãããžã§ã¯ãã [åçãªã«ãŒãã£ã³ã°](/guide/routing#dynamic-routes) ãããŠããå Žåã¯ãåçãªã«ãŒãã£ã³ã°ãã©ã®ããã«çæãããã Nuxt.js ã«äŒããããã« [çæã®èšå®](/api/configuration-generate) ãåç
§ããŠãã ããã
-`nuxt generate` ã§ãŠã§ãã¢ããªã±ãŒã·ã§ã³ãçæãããšã㯠[data()](/guide/async-data#the-data-method) åã³ [fetch()](/guide/vuex-store#the-fetch-method) ã«æž¡ããã [context](/api) ã `req` åã³ `res` ãæã£ãŠããŸããã
+`nuxt generate` ã§ãŠã§ãã¢ããªã±ãŒã·ã§ã³ãçæãããšã㯠[data()](/guide/async-data#the-data-method) ã [fetch()](/guide/vuex-store#the-fetch-method) ã«æž¡ããã [context](/api) ã `req` åã³ `res` ãæã£ãŠããŸããã
From 52a25cc6b5aed22fc25b36ab81a9c34f503ac3bf Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Thu, 9 Mar 2017 22:08:50 +0900
Subject: [PATCH 119/129] Translate ja/faq/github-pages.md
---
ja/faq/github-pages.md | 50 ++++++++++++++++++++++++++++++++----------
1 file changed, 38 insertions(+), 12 deletions(-)
diff --git a/ja/faq/github-pages.md b/ja/faq/github-pages.md
index 205dabb37..5e5d9b520 100644
--- a/ja/faq/github-pages.md
+++ b/ja/faq/github-pages.md
@@ -1,31 +1,54 @@
---
-title: Github Pages Deployment
-description: How to deploy Nuxt.js on Github Pages?
+title: Github Pages ãžãããã€
+description: Github Pages ãžãããã€ããã«ã¯ïŒ
---
-# How to deploy on Github Pages?
+
+
-Nuxt.js gives you the possibility to host your web application on any static hosting like [Github Pages](https://pages.github.com/) for example.
+
-To deploy on Github Pages, you need to generate your static web application:
+# Github Pages ãžãããã€ããã«ã¯ïŒ
+
+
+
+Nuxt.js ã䜿ããšãäŸãã° [Github Pages](https://pages.github.com/) ã®ãããªéçãã¹ãã£ã³ã°ãµãŒãã¹ã§ããŠã§ãã¢ããªã±ãŒã·ã§ã³ããã¹ãããããšãå¯èœã§ãã
+
+
+
+Github Pages ãžãããã€ããã«ã¯ãéçãªãŠã§ãã¢ããªã±ãŒã·ã§ã³ãçæããå¿
èŠããããŸã:
```bash
npm run generate
```
-It will create a `dist` folder with everything inside ready to be deployed on Github Pages hosting.
-Branch `gh-pages` for project repository OR branch `master` for user or organization site
+
+
+ãã®ãšã dist ãã©ã«ããäœæããããã®äžã« Github Pages ãã¹ãã£ã³ã°ãžãããã€ããããã®ããã¹ãŠå
¥ããŸãã
+
+
+
+ãããžã§ã¯ããªããžããªãªãã° `gh-pages` ãã©ã³ãããŠãŒã¶ãŒãŸãã¯çµç¹ãµã€ããªãã° `master` ãã©ã³ããæå®ããŠãã ããã
-## Command line deployment
+
-You can also use [push-dir package](https://github.com/L33T-KR3W/push-dir):
+## ã³ãã³ãã©ã€ã³ã§ãããã€ãã
+
+
+
+[push-dir package](https://github.com/L33T-KR3W/push-dir) ã䜿ãããšãã§ããŸã:
+
+
+
+ãŸã npm ã§ã€ã³ã¹ããŒã«ããŠãã ãã:
-First install it via npm:
```bash
npm install push-dir --save-dev
```
-Add a `deploy` command to your package.json with the branch as `gh-pages` for project repository OR `master` for user or organization site.
+
+
+`deploy` ã³ãã³ãã package.json ã«è¿œå ããŠãã ããããã©ã³ãã¯ããããžã§ã¯ããªããžããªãªãã° `gh-pages` ãã©ã³ãããŠãŒã¶ãŒãŸãã¯çµç¹ãµã€ããªãã° `master` ãã©ã³ããæå®ããŠãã ããã
```js
"scripts": {
@@ -37,7 +60,10 @@ Add a `deploy` command to your package.json with the branch as `gh-pages` for pr
},
```
-Then generate and deploy your static application:
+
+
+ããããéçãªã¢ããªã±ãŒã·ã§ã³ãçæãããããã€ããŠãã ãã:
+
```bash
npm run generate
npm run deploy
From ec6d05719c3d8e0d80b000a4377252b412de5cf1 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Thu, 9 Mar 2017 22:22:39 +0900
Subject: [PATCH 120/129] Japanese translation is maintained by INOUE Takuya
---
README.md | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/README.md b/README.md
index df7e1b425..2870f960b 100644
--- a/README.md
+++ b/README.md
@@ -18,6 +18,7 @@ npm run dev
### Russian
Russian translation is maintained by Translation Gang.
+
* Translation Repo â [/translation-gang/ru.docs.nuxtjs](https://github.com/translation-gang/ru.docs.nuxtjs)
* Primary maintainer - [Grigoriy Beziuk](https://gbezyuk.github.io)
* Primary translator - [Nicholas Shachmatov](https://github.com/theOnlyBoy)
@@ -25,10 +26,19 @@ Russian translation is maintained by Translation Gang.
### Chinese
Chinese translation is maintained by AOTU Labs from China, Shenzhen.
+
* Translation Repo â [/o2team/i18n-cn-nuxtjs-docs](https://github.com/o2team/i18n-cn-nuxtjs-docs)
* Primary maintainer - [AOTU Labs](https://aotu.io)
* Primary translator - [Levin Wong](http://faso.me), [Edward Chu](https://github.com/chuyik)
+### Japanese
+
+Japanese translation is maintained by INOUE Takuya.
+
+* Translation Repo â [/inouetakuya/ja.docs.nuxtjs](https://github.com/inouetakuya/ja.docs.nuxtjs)
+* Primary maintainer - [INOUE Takuya](http://blog.inouetakuya.info/)
+* Primary translator - [INOUE Takuya](https://github.com/inouetakuya)
+
### Want to help with the translation?
If you feel okay with translating sorta alone, just fork the repo, create a "work-in-progress" pull request (mark it with [WIP], see [Russian translation](https://github.com/nuxt/docs/pull/3) if you need an example) â and just go on.
From e86036898c7e50f55a33a53ed98b0812436deefb Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Sat, 11 Mar 2017 22:15:58 +0900
Subject: [PATCH 121/129] Translate ja/faq/menu.json
---
ja/faq/css-flash.md | 4 +--
ja/faq/duplicated-meta-tags.md | 2 +-
ja/faq/google-analytics.md | 2 +-
ja/faq/menu.json | 38 ++++++++++++++---------------
ja/faq/window-document-undefined.md | 6 ++---
5 files changed, 26 insertions(+), 26 deletions(-)
diff --git a/ja/faq/css-flash.md b/ja/faq/css-flash.md
index baaeda7e7..cdcb7d411 100644
--- a/ja/faq/css-flash.md
+++ b/ja/faq/css-flash.md
@@ -1,6 +1,6 @@
---
title: CSS Flash
-description: ã©ãã㊠Nuxt.js ã§ CSS Flash ãèŠããã®ãïŒ
+description: ãªã CSS Flash ãèŠããã®ãïŒ
---
@@ -8,7 +8,7 @@ description: ã©ãã㊠Nuxt.js ã§ CSS Flash ãèŠããã®ãïŒ
-# ã©ãã㊠CSS Flash ãèŠããã®ãïŒ
+# ãªã CSS Flash ãèŠããã®ãïŒ

diff --git a/ja/faq/duplicated-meta-tags.md b/ja/faq/duplicated-meta-tags.md
index 75fc76244..460666a66 100644
--- a/ja/faq/duplicated-meta-tags.md
+++ b/ja/faq/duplicated-meta-tags.md
@@ -1,6 +1,6 @@
---
title: éè€ããã¡ã¿ã¿ã°
-description: Nuxt.js ã§ã¡ã¿ã¿ã°ãéè€ãããšãã¯ïŒ
+description: ã¡ã¿ã¿ã°ãéè€ãããšãã¯ïŒ
---
diff --git a/ja/faq/google-analytics.md b/ja/faq/google-analytics.md
index 80ebba6dd..d69ca33aa 100644
--- a/ja/faq/google-analytics.md
+++ b/ja/faq/google-analytics.md
@@ -8,7 +8,7 @@ description: Google ã¢ããªãã£ã¯ã¹ã䜿ãã«ã¯ïŒ
-## Google ã¢ããªãã£ã¯ã¹ã䜿ãã«ã¯ïŒ
+# Google ã¢ããªãã£ã¯ã¹ã䜿ãã«ã¯ïŒ
diff --git a/ja/faq/menu.json b/ja/faq/menu.json
index ba43e2a84..2eb6f68d9 100644
--- a/ja/faq/menu.json
+++ b/ja/faq/menu.json
@@ -1,33 +1,33 @@
[
{
- "title": "Configuration",
+ "title": "èšå®",
"links": [
- { "name": "How to use external resources?", "to": "" },
- { "name": "How to use pre-processors?", "to": "/pre-processors" },
- { "name": "How to use JSX?", "to": "/jsx" },
- { "name": "How to add postcss plugins?", "to": "/postcss-plugins" },
- { "name": "How to extend webpack config?", "to": "/extend-webpack" },
- { "name": "How to add webpack plugins?", "to": "/webpack-plugins" },
- { "name": "How to edit HOST and PORT?", "to": "/host-port" },
- { "name": "How to use Google Analytics?", "to": "/google-analytics" }
+ { "name": "å€éšãªãœãŒã¹ã䜿ãã«ã¯ïŒ", "to": "" },
+ { "name": "ããªããã»ããµã䜿ãã«ã¯ïŒ", "to": "/pre-processors" },
+ { "name": "JSX ã䜿ãã«ã¯ïŒ", "to": "/jsx" },
+ { "name": "PostCSS ãã©ã°ã€ã³ã远å ããã«ã¯ïŒ", "to": "/postcss-plugins" },
+ { "name": "Webpack ã®èšå®ãæ¡åŒµããã«ã¯ïŒ", "to": "/extend-webpack" },
+ { "name": "Webpack ãã©ã°ã€ã³ã远å ããã«ã¯ïŒ", "to": "/webpack-plugins" },
+ { "name": "ãã¹ããšããŒãçªå·ã倿Žããã«ã¯ïŒ", "to": "/host-port" },
+ { "name": "Google ã¢ããªãã£ã¯ã¹ã䜿ãã«ã¯ïŒ", "to": "/google-analytics" }
]
},
{
- "title": "Development",
+ "title": "éçº",
"links": [
- { "name": "Window/Document undefined?", "to": "/window-document-undefined" },
- { "name": "Why a CSS Flash appears?", "to": "/css-flash" },
- { "name": "Async data in components?", "to": "/async-data-components" },
- { "name": "Duplicated Meta Tags?", "to": "/duplicated-meta-tags" }
+ { "name": "window ãŸã㯠document ã undefined ã®ãšãã¯ïŒ", "to": "/window-document-undefined" },
+ { "name": "ãªã CSS Flash ãèŠããã®ãïŒ", "to": "/css-flash" },
+ { "name": "ã³ã³ããŒãã³ãå
ã§éåæããŒã¿ãæ±ãã«ã¯ïŒ", "to": "/async-data-components" },
+ { "name": "ã¡ã¿ã¿ã°ãéè€ãããšãã¯ïŒ", "to": "/duplicated-meta-tags" }
]
},
{
- "title": "Deployment",
+ "title": "ãããã€",
"links": [
- { "name": "How to deploy on Heroku?", "to": "/heroku-deployment" },
- { "name": "How to deploy with Now.sh?", "to": "/now-deployment" },
- { "name": "How to deploy with Surge.sh?", "to": "/surge-deployment" },
- { "name": "How to deploy on Github?", "to": "/github-pages" }
+ { "name": "Heroku ãžãããã€ããã«ã¯ïŒ", "to": "/heroku-deployment" },
+ { "name": "Now ã䜿ã£ãŠãããã€ããã«ã¯ïŒ", "to": "/now-deployment" },
+ { "name": "Surge.sh ãžãããã€ããã«ã¯ïŒ", "to": "/surge-deployment" },
+ { "name": "Github Pages ãžãããã€ããã«ã¯ïŒ", "to": "/github-pages" }
]
}
]
diff --git a/ja/faq/window-document-undefined.md b/ja/faq/window-document-undefined.md
index e7d4c7d63..5b0df1896 100644
--- a/ja/faq/window-document-undefined.md
+++ b/ja/faq/window-document-undefined.md
@@ -1,6 +1,6 @@
---
-title: Window ãŸã㯠Document ã undefined
-description: Nuxt.js ã§ Window ãŸã㯠Document ã undefined ã®ãšãã¯ïŒ
+title: window ãŸã㯠document ã undefined
+description: Nuxt.js ã§ window ãŸã㯠document ã undefined ã®ãšãã¯ïŒ
---
@@ -8,7 +8,7 @@ description: Nuxt.js ã§ Window ãŸã㯠Document ã undefined ã®ãšãã¯ïŒ
-# Window ãŸã㯠Document ã undefined ã®ãšãã¯ïŒ
+# window ãŸã㯠document ã undefined ã®ãšãã¯ïŒ
From 6531fb8fbdec50f04b3137c439cf8accb097cd75 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Sat, 11 Mar 2017 23:42:29 +0900
Subject: [PATCH 122/129] Improve translation in ja/guide/index.md
---
ja/guide/index.md | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/ja/guide/index.md b/ja/guide/index.md
index 0d158d90c..655ba160a 100644
--- a/ja/guide/index.md
+++ b/ja/guide/index.md
@@ -1,6 +1,6 @@
---
title: ã¯ããã«
-description: "2016幎10æ25æ¥ãzeit.co ã®ããŒã ã React ã¢ããªã±ãŒã·ã§ã³ããµãŒããŒãµã€ãã¬ã³ããªã³ã°ããããã®ãã¬ãŒã ã¯ãŒã¯ Next.js ãçºè¡šããŸããããããŠãã®çºè¡šããæ°æéåŸãNext.js ãšåãããæ¹ã§ããããä»åºŠã¯ Vue.js ããµãŒããŒãµã€ãã¬ã³ããªã³ã°ããã¢ããªã±ãŒã·ã§ã³ãæ§ç¯ããã¢ã€ãã£ã¢ãçãŸããŸãããããªãã¡ Nuxt.js ã®èªçã§ãã"
+description: "2016幎10æ25æ¥ zeit.co ã®ããŒã ã React ã¢ããªã±ãŒã·ã§ã³ããµãŒããŒãµã€ãã¬ã³ããªã³ã°ããããã®ãã¬ãŒã ã¯ãŒã¯ Next.js ãçºè¡šããŸããããããŠãã®çºè¡šããæ°æéåŸãNext.js ãšåãããæ¹ã§ããããä»åºŠã¯ Vue.js ããµãŒããŒãµã€ãã¬ã³ããªã³ã°ããã¢ããªã±ãŒã·ã§ã³ãæ§ç¯ããã¢ã€ãã£ã¢ãçãŸããŸãããããªãã¡ Nuxt.js ã®èªçã§ãã"
---
@@ -8,7 +8,7 @@ description: "2016幎10æ25æ¥ãzeit.co ã®ããŒã ã React ã¢ããªã±ãŒ
-> 2016幎10æ25æ¥ã[zeit.co](https://zeit.co/) ã®ããŒã ã React ã¢ããªã±ãŒã·ã§ã³ããµãŒããŒãµã€ãã¬ã³ããªã³ã°ããããã®ãã¬ãŒã ã¯ãŒã¯ [Next.js](https://zeit.co/blog/next) ãçºè¡šããŸããããããŠãã®çºè¡šãããããæ°æéåŸãNext.js ãšåãããæ¹ã§ããããä»åºŠã¯ [Vue.js](https://vuejs.org) ããµãŒããŒãµã€ãã¬ã³ããªã³ã°ããã¢ããªã±ãŒã·ã§ã³ãæ§ç¯ããã¢ã€ãã£ã¢ãçãŸããŸãããããªãã¡ **Nuxt.js** ã®èªçã§ãã
+> 2016幎10æ25æ¥ [zeit.co](https://zeit.co/) ã®ããŒã ã React ã¢ããªã±ãŒã·ã§ã³ããµãŒããŒãµã€ãã¬ã³ããªã³ã°ããããã®ãã¬ãŒã ã¯ãŒã¯ [Next.js](https://zeit.co/blog/next) ãçºè¡šããŸããããããŠãã®çºè¡šãããããæ°æéåŸãNext.js ãšåãããæ¹ã§ããããä»åºŠã¯ [Vue.js](https://vuejs.org) ããµãŒããŒãµã€ãã¬ã³ããªã³ã°ããã¢ããªã±ãŒã·ã§ã³ãæ§ç¯ããã¢ã€ãã£ã¢ãçãŸããŸãããããªãã¡ **Nuxt.js** ã®èªçã§ãã
@@ -20,7 +20,7 @@ Next.js ãšã¯ãŠãããŒãµã«ãª Vue.js ã¢ããªã±ãŒã·ã§ã³ãæ§ç¯ã
-ã¯ã©ã€ã¢ã³ããµã€ããšãµãŒããŒãµã€ãã®ãã£ã¹ããªãã¥ãŒã·ã§ã³ãæœè±¡åããŠããéã® **UI ã¬ã³ããªã³ã°** ã«çŠç¹ãåœãŠãŠããŸãã
+ã¯ã©ã€ã¢ã³ããµã€ãçšã®ãã£ã¹ããªãã¥ãŒã·ã§ã³ãšããµãŒããŒãµã€ãçšã®ãã£ã¹ããªãã¥ãŒã·ã§ã³ãšãåé¢ããŠçæããŠããéã«è¡ã **UI ã¬ã³ããªã³ã°** ã«çŠç¹ãåœãŠãŠããŸãã
@@ -28,16 +28,16 @@ Next.js ãšã¯ãŠãããŒãµã«ãª Vue.js ã¢ããªã±ãŒã·ã§ã³ãæ§ç¯ã
-Nuxt.js 㯠**ãµãŒããŒãµã€ãã¬ã³ããªã³ã°** ãã Vue.js ã¢ããªã±ãŒã·ã§ã³ã®éçºããã£ãšæ¥œããããããã«å¿
èŠãªèšå®ãçšæããŠããŸãã
+Nuxt.js 㯠**ãµãŒããŒãµã€ãã¬ã³ããªã³ã°** ãã Vue.js ã¢ããªã±ãŒã·ã§ã³ã®éçºããã£ãšæ¥œããããããã«å¿
èŠãªèšå®ãããããããã»ããããŠããŸãã
-ããã«å ããŠã*nuxt genrate* ãšåŒã°ããå¥ã®éçºãªãã·ã§ã³ãæäŸããŸãããã㯠**éçã«çæããã** Vue.js ã¢ããªã±ãŒã·ã§ã³ãæ§ç¯ããããã®ãã®ã§ããç§ãã¡ã¯ãã®ãªãã·ã§ã³ãããã€ã¯ããµãŒãã¹ã§ãŠã§ãã¢ããªã±ãŒã·ã§ã³ãéçºããããã®æ¬¡ã®å€§ããªäžæ©ã«ãªãåŸããšä¿¡ããŠããŸãã
+ããã«å ã㊠*nuxt genrate* ãšåŒã°ããå¥ã®éçºãªãã·ã§ã³ãæäŸããŸãããã㯠**éçã«çæããã** Vue.js ã¢ããªã±ãŒã·ã§ã³ãæ§ç¯ããããã®ãã®ã§ããç§ãã¡ã¯ãã®ãªãã·ã§ã³ãããã€ã¯ããµãŒãã¹ã§ãŠã§ãã¢ããªã±ãŒã·ã§ã³ãéçºããããã®æ¬¡ã®å€§ããªäžæ©ã«ãªãåŸããšä¿¡ããŠããŸãã
-Nuxt.js ã¯ãã¬ãŒã ã¯ãŒã¯ãšããŠãã¯ã©ã€ã¢ã³ããµã€ããšãµãŒããŒãµã€ãéã«ãŸãããéçºãæå©ããããããããã®æ©èœãåããŠããŸããäŸãã°ãéåæã§ã®ããŒã¿ãããåãããããã«ãŠã§ã¢ãã¬ã€ã¢ãŠããªã©ã§ãã
+Nuxt.js ã¯ãã¬ãŒã ã¯ãŒã¯ãšããŠãã¯ã©ã€ã¢ã³ããµã€ããšãµãŒããŒãµã€ãéã«ãŸãããéçºãæå©ããããããããã®æ©èœãåããŠããŸããäŸãã°ãéåæã§ã®ããŒã¿ã®ããåãããNuxt.js ãããã«ãŠã§ã¢ãšããŠå©çšããããšããã¬ã€ã¢ãŠãæ©èœãªã©ã§ãã
@@ -80,11 +80,11 @@ Nuxt.js ã¯ãªãããªãŠã§ãã¢ããªã±ãŒã·ã§ã³ãæ§ç¯ããããã«
- Vue ãã¡ã€ã«ã§èšè¿°ã§ããããš
- ã³ãŒããèªåçã«åå²ããããš
- ãµãŒããŒãµã€ãã¬ã³ããªã³ã°
-- éåæããŒã¿ã䌎ããã¯ãã«ãªã«ãŒãã£ã³ã°
+- éåæããŒã¿ããã³ããªã³ã°ãããã¯ãã«ãªã«ãŒãã£ã³ã°
- éçãªãã¡ã€ã«ã®é
ä¿¡
- ES6/ES7 ã®ãã©ã³ã¹ãã€ã¬ãŒã·ã§ã³
- JS ãš CSS ã®ãã³ãã«åã³ãããã¡ã€
-- Head ã¿ã°ïŒè𳿳š: ã¡ã¿ã¿ã°ïŒã®ç®¡ç
+- Head èŠçŽ ã®ç®¡ç
- éçºã¢ãŒãã«ãããããããªããŒãã£ã³ã°
- SASS, LESS, Stylus ãªã©ã®ããªããã»ããµã®ãµããŒã
@@ -185,4 +185,4 @@ Nuxt.js ã«ãã倧ããªã€ãããŒã·ã§ã³ããã£ãŠããŸããããã
-ããã«é²ã㊠`nuxt generate` ã§çæããã E ã³ããŒã¹ã®ãŠã§ãã¢ããªã±ãŒã·ã§ã³ãèããŠã¿ãŸãããããã®ã¢ããªã±ãŒã·ã§ã³ã¯ CDN ã§ãã¹ããããååãåšåº«åãã«ãªã£ããå
¥è·ãããããããã³ã«ã¢ããªã±ãŒã·ã§ã³ãåçæãããŸãããŠãŒã¶ãŒãã¢ããªã±ãŒã·ã§ã³é·ç§»ããŠããéã«ãåšåº«ã®ç¶æ
ãïŒåçæã®ãããã§ïŒææ°ã®ç¶æ
ã«ãªãã®ã§ããã€ãŸãããµãŒããŒã§ãããããªã€ã³ã¹ã¿ã³ã¹ãèµ·åãããããã£ãã·ã¥ãæã£ããããå¿
èŠããããªãã®ã§ãïŒ
+ããã«é²ã㊠`nuxt generate` ã§çæããã E ã³ããŒã¹ã®ãŠã§ãã¢ããªã±ãŒã·ã§ã³ãèããŠã¿ãŸãããããã®ã¢ããªã±ãŒã·ã§ã³ã¯ CDN ã§ãã¹ããããååãåšåº«åãã«ãªã£ããå
¥è·ãããããããã³ã«ã¢ããªã±ãŒã·ã§ã³ãåçæãããŸãããŠãŒã¶ãŒãã¢ããªã±ãŒã·ã§ã³é·ç§»ããŠããéã«ãåšåº«ã®ç¶æ
ãïŒåçæã®ãããã§ïŒææ°ã®ç¶æ
ã«ãªãã®ã§ããã€ãŸãããµãŒããŒã§ãããããªã€ã³ã¹ã¿ã³ã¹ãèµ·åãããããã£ãã·ã¥ãæã£ããããå¿
èŠã¯ãããªãã®ã§ãïŒ
From 37f69bcdbacc4394c627158b9f7180a2f0a954c2 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Sat, 11 Mar 2017 23:59:09 +0900
Subject: [PATCH 123/129] Improve translation in ja/guide/installation.md
---
ja/guide/installation.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ja/guide/installation.md b/ja/guide/installation.md
index b0fc3223c..4a6301f6a 100644
--- a/ja/guide/installation.md
+++ b/ja/guide/installation.md
@@ -103,7 +103,7 @@ $ cd
-`package.json` ãäœæããåŸããã«ã`nuxt` ã NPM çµç±ã§ãããžã§ã¯ã远å ããŸããã:
+`package.json` ãäœæããåŸãã `nuxt` ã NPM çµç±ã§ãããžã§ã¯ã远å ããŸããã:
```bash
npm install --save nuxt
From d87c9948a34706b2eb8d6f041b6a9298ff9cf66e Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Sun, 12 Mar 2017 00:35:27 +0900
Subject: [PATCH 124/129] Fix anchor links in ja
---
ja/api/components-nuxt-child.md | 2 +-
ja/api/components-nuxt.md | 2 +-
ja/api/configuration-css.md | 2 +-
ja/api/configuration-env.md | 2 +-
ja/api/configuration-generate.md | 2 +-
ja/api/configuration-plugins.md | 2 +-
ja/api/configuration-router.md | 2 +-
ja/api/configuration-transition.md | 2 +-
ja/api/nuxt-render-route.md | 2 +-
ja/api/pages-fetch.md | 2 +-
ja/api/pages-layout.md | 2 +-
ja/api/pages-middleware.md | 2 +-
ja/examples/custom-routes.md | 2 +-
ja/faq/duplicated-meta-tags.md | 8 ++++----
ja/faq/surge-deployment.md | 2 +-
ja/faq/window-document-undefined.md | 2 +-
ja/guide/async-data.md | 4 ++--
ja/guide/commands.md | 2 +-
ja/guide/directory-structure.md | 4 ++--
ja/guide/routing.md | 4 ++--
ja/guide/views.md | 6 +++---
21 files changed, 29 insertions(+), 29 deletions(-)
diff --git a/ja/api/components-nuxt-child.md b/ja/api/components-nuxt-child.md
index 5ef2d7163..7aeab77ad 100644
--- a/ja/api/components-nuxt-child.md
+++ b/ja/api/components-nuxt-child.md
@@ -12,7 +12,7 @@ description: çŸåšã®ããŒãžã衚瀺ããŸãã
-> ãã®ã³ã³ããŒãã³ã㯠[ãã¹ããããã«ãŒã](/guide/routing#nested-routes) å
ã§åã³ã³ããŒãã³ãã衚瀺ããããã«äœ¿ãããŸãã
+> ãã®ã³ã³ããŒãã³ã㯠[ãã¹ããããã«ãŒã](/guide/routing#ãã¹ããããã«ãŒã) å
ã§åã³ã³ããŒãã³ãã衚瀺ããããã«äœ¿ãããŸãã
diff --git a/ja/api/components-nuxt.md b/ja/api/components-nuxt.md
index c8b301976..70791440d 100644
--- a/ja/api/components-nuxt.md
+++ b/ja/api/components-nuxt.md
@@ -12,7 +12,7 @@ description: ã¬ã€ã¢ãŠãå
ã§ããŒãžã³ã³ããŒãã³ãã衚瀺ããŸ
-> ãã®ã³ã³ããŒãã³ã㯠[ã¬ã€ã¢ãŠã](/guide/views#layouts) å
ã§ã®ã¿ãããŒãžã³ã³ããŒãã³ãã衚瀺ããããã«äœ¿ãããŸãã
+> ãã®ã³ã³ããŒãã³ã㯠[ã¬ã€ã¢ãŠã](/guide/views#ã¬ã€ã¢ãŠã) å
ã§ã®ã¿ãããŒãžã³ã³ããŒãã³ãã衚瀺ããããã«äœ¿ãããŸãã
diff --git a/ja/api/configuration-css.md b/ja/api/configuration-css.md
index 162ae919f..067254de0 100644
--- a/ja/api/configuration-css.md
+++ b/ja/api/configuration-css.md
@@ -28,7 +28,7 @@ description: Nuxt.js ã§ã¯ã°ããŒãã«ã«é©çšãããïŒãã¹ãŠã®ã
- src: `æåå`ïŒãã¡ã€ã«ã®ãã¹ïŒ
-- lang: `æåå`ïŒ[䜿ãããŠããããªããã»ããµ](/guide/pages#using-pre-processors)ïŒ
+- lang: `æåå`ïŒ[ããªããã»ããµã䜿ãã«ã¯ïŒ](/faq/pre-processors)ïŒ
diff --git a/ja/api/configuration-env.md b/ja/api/configuration-env.md
index 275c4c0c6..ec23ebd60 100644
--- a/ja/api/configuration-env.md
+++ b/ja/api/configuration-env.md
@@ -42,7 +42,7 @@ module.exports = {
1. `process.env.baseUrl` çµç±ã§ã¢ã¯ã»ã¹ãã
-2. `context.baseUrl` ãçµç±ããã詳现㯠[context API](/api#context)
+2. `context.baseUrl` ãçµç±ããã詳现㯠[ã³ã³ããã¹ã API](/api#ã³ã³ããã¹ã)
diff --git a/ja/api/configuration-generate.md b/ja/api/configuration-generate.md
index 9971d43ce..4b4590e52 100644
--- a/ja/api/configuration-generate.md
+++ b/ja/api/configuration-generate.md
@@ -46,7 +46,7 @@ description: ãŠãããŒãµã«ãªãŠã§ãã¢ããªã±ãŒã·ã§ã³ããéç
-[åçãªã«ãŒãã£ã³ã°](/guide/routing#dynamic-routes) ã䜿ããšãã¯ããã©ã¡ãŒã¿ãšããããã®åçãªã«ãŒããšã®ãããã³ã°ãå®çŸ©ããå¿
èŠããããŸãã
+[åçãªã«ãŒãã£ã³ã°](/guide/routing#åçãªã«ãŒãã£ã³ã°) ã䜿ããšãã¯ããã©ã¡ãŒã¿ãšããããã®åçãªã«ãŒããšã®ãããã³ã°ãå®çŸ©ããå¿
èŠããããŸãã
diff --git a/ja/api/configuration-plugins.md b/ja/api/configuration-plugins.md
index 33358cccf..eb520cc78 100644
--- a/ja/api/configuration-plugins.md
+++ b/ja/api/configuration-plugins.md
@@ -51,4 +51,4 @@ Vue.use(VueNotifications)
-plugins ã®äœ¿ãæ¹ãããæ·±ãçè§£ããã«ã¯ [guide ããã¥ã¡ã³ã](/guide/plugins#vue-plugins) ãåç
§ããŠãã ããã
+plugins ã®äœ¿ãæ¹ãããæ·±ãçè§£ããã«ã¯ [ã¬ã€ã](/guide/plugins#vue-ãã©ã°ã€ã³) ãåç
§ããŠãã ããã
diff --git a/ja/api/configuration-router.md b/ja/api/configuration-router.md
index 342b501b4..98b8428ca 100644
--- a/ja/api/configuration-router.md
+++ b/ja/api/configuration-router.md
@@ -213,7 +213,7 @@ export default function (context) {
-ããã«ãŠã§ã¢ã«ã€ããŠããæ·±ãçè§£ããã«ã¯ [middleware guide](/guide/routing#middleware) ã¬ã€ããåç
§ããŠãã ããã
+ããã«ãŠã§ã¢ã«ã€ããŠããæ·±ãçè§£ããã«ã¯ [ããã«ãŠã§ã¢](/guide/routing#ããã«ãŠã§ã¢) ã¬ã€ããåç
§ããŠãã ããã
## extendRoutes
diff --git a/ja/api/configuration-transition.md b/ja/api/configuration-transition.md
index 5b4620a55..4a0df526e 100644
--- a/ja/api/configuration-transition.md
+++ b/ja/api/configuration-transition.md
@@ -63,4 +63,4 @@ module.exports = {
-`nuxt.config.js` å
ã® transition ããŒã¯ããŒãžã®ãã©ã³ãžã·ã§ã³ã®ããã©ã«ãèšå®ãæå®ããããã«äœ¿ãããŸãã`transition` ããŒããªããžã§ã¯ãã®ãšãã«å©çšå¯èœãªããŒã«ã€ããŠããæ·±ãçè§£ããã«ã¯ [ããŒãžã®ãã©ã³ãžã·ã§ã³ããããã£](/api/pages-transition#object) ãåç
§ããŠãã ããã
+`nuxt.config.js` å
ã® transition ããŒã¯ããŒãžã®ãã©ã³ãžã·ã§ã³ã®ããã©ã«ãèšå®ãæå®ããããã«äœ¿ãããŸãã`transition` ããŒããªããžã§ã¯ãã®ãšãã«å©çšå¯èœãªããŒã«ã€ããŠããæ·±ãçè§£ããã«ã¯ [ããŒãžã®ãã©ã³ãžã·ã§ã³ããããã£](/api/pages-transition#ãªããžã§ã¯ã) ãåç
§ããŠãã ããã
diff --git a/ja/api/nuxt-render-route.md b/ja/api/nuxt-render-route.md
index e9ea5a809..1d6f4c013 100644
--- a/ja/api/nuxt-render-route.md
+++ b/ja/api/nuxt-render-route.md
@@ -32,7 +32,7 @@ description: ç¹å®ã®ã«ãŒããã¬ã³ããªã³ã°ããŸãããã®éã«ã³
-ãã®ã¡ãœããã¯ã»ãšãã©ã®å Žå [nuxt.renderAndGetWindow](/api/nuxt-render-and-get-window) ãšãšãã« [ãã¹ãããç®ç](guide/development-tools#end-to-end-testing) ã§äœ¿ãããŸãã
+ãã®ã¡ãœããã¯ã»ãšãã©ã®å Žå [nuxt.renderAndGetWindow](/api/nuxt-render-and-get-window) ãšãšãã« [ãã¹ãããç®ç](guide/development-tools#ãšã³ãããŒãšã³ããã¹ã) ã§äœ¿ãããŸãã
diff --git a/ja/api/pages-fetch.md b/ja/api/pages-fetch.md
index 0bcf04280..aa392071b 100644
--- a/ja/api/pages-fetch.md
+++ b/ja/api/pages-fetch.md
@@ -24,7 +24,7 @@ description: fetch ã¡ãœããã¯ãããŒãžãã¬ã³ããªã³ã°ãããå
-`fetch` ã¡ãœããã¯ç¬¬äžåŒæ°ãšã㊠[context](/api#context) ãåãåããcontext ã䜿ã£ãŠããŒã¿ãååŸããŠããŒã¿ãã¹ãã¢ã«å
¥ããããšãã§ããŸããfetch ã¡ãœãããéåæã«ããããã«ã¯ **Promise ãè¿ãããã«ããŠãã ãã**ãNuxt.js ã¯ã³ã³ããŒãã³ããã¬ã³ããªã³ã°ãããåã« Promise ã解決ããããŸã§åŸ
ã¡ãŸãã
+`fetch` ã¡ãœããã¯ç¬¬äžåŒæ°ãšã㊠[context](/api#ã³ã³ããã¹ã) ãåãåããcontext ã䜿ã£ãŠããŒã¿ãååŸããŠããŒã¿ãã¹ãã¢ã«å
¥ããããšãã§ããŸããfetch ã¡ãœãããéåæã«ããããã«ã¯ **Promise ãè¿ãããã«ããŠãã ãã**ãNuxt.js ã¯ã³ã³ããŒãã³ããã¬ã³ããªã³ã°ãããåã« Promise ã解決ããããŸã§åŸ
ã¡ãŸãã
diff --git a/ja/api/pages-layout.md b/ja/api/pages-layout.md
index f63163066..41d8eb90b 100644
--- a/ja/api/pages-layout.md
+++ b/ja/api/pages-layout.md
@@ -37,4 +37,4 @@ export default {
åäœããæ§åã [ãã¢åç»](https://www.youtube.com/watch?v=YOKnSTp7d38) ã§ç¢ºèªããŠã¿ãŠãã ããã
-Nuxt.js ã§ã¬ã€ã¢ãŠããã©ã®ããã«åäœããããããæ·±ãçè§£ããã«ã¯ [layout ããã¥ã¡ã³ã](/guide/views#layouts) ãåç
§ããŠãã ããã
+Nuxt.js ã§ã¬ã€ã¢ãŠããã©ã®ããã«åäœããããããæ·±ãçè§£ããã«ã¯ [layout ããã¥ã¡ã³ã](/guide/views#ã¬ã€ã¢ãŠã) ãåç
§ããŠãã ããã
diff --git a/ja/api/pages-middleware.md b/ja/api/pages-middleware.md
index 693cbf03a..088e5a094 100644
--- a/ja/api/pages-middleware.md
+++ b/ja/api/pages-middleware.md
@@ -72,4 +72,4 @@ export default function ({ store, redirect }) {
-ããã«ãŠã§ã¢ã«ã€ããŠããæ·±ãçè§£ããã«ã¯ [ããã«ãŠã§ã¢ã®ã¬ã€ã](/guide/routing#middleware) ãåç
§ããŠãã ããã
+ããã«ãŠã§ã¢ã«ã€ããŠããæ·±ãçè§£ããã«ã¯ [ããã«ãŠã§ã¢ã®ã¬ã€ã](/guide/routing#ããã«ãŠã§ã¢) ãåç
§ããŠãã ããã
diff --git a/ja/examples/custom-routes.md b/ja/examples/custom-routes.md
index e7e53c4bc..21fd68e1b 100644
--- a/ja/examples/custom-routes.md
+++ b/ja/examples/custom-routes.md
@@ -3,7 +3,7 @@ title: ã«ã¹ã¿ã ã«ãŒãã£ã³ã°
description: ã«ã¹ã¿ã ã«ãŒãã£ã³ã°ãè¡ãäŸ
github: custom-routes
livedemo: https://custom-routes.nuxtjs.org
-documentation: /guide/routing#dynamic-routes
+documentation: /guide/routing#åçãªã«ãŒãã£ã³ã°
---
diff --git a/ja/faq/duplicated-meta-tags.md b/ja/faq/duplicated-meta-tags.md
index 460666a66..cf4767a61 100644
--- a/ja/faq/duplicated-meta-tags.md
+++ b/ja/faq/duplicated-meta-tags.md
@@ -10,9 +10,9 @@ description: ã¡ã¿ã¿ã°ãéè€ãããšãã¯ïŒ
# ã¡ã¿ã¿ã°ãéè€ãããšãã¯ïŒ
-
+
-ãã㯠[vue-meta](https://github.com/declandewet/vue-meta) ã® "ç¹åŸŽ" ã§ãã[head èŠçŽ ã®ããã¥ã¡ã³ã](https://nuxtjs.org/guide/html-head#defaults-meta) ãåç
§ããŠãã ããã
+ãã㯠[vue-meta](https://github.com/declandewet/vue-meta) ã® "ç¹åŸŽ" ã§ãã[head èŠçŽ ã®ããã¥ã¡ã³ã](/guide/views#html-ã®-head-æ
å ±) ãåç
§ããŠãã ããã
@@ -56,6 +56,6 @@ export default {
}
```
-
+
-ããŒãžå
ã® `head` ããããã£ã®äœ¿ãæ¹ãããæ·±ãçè§£ããã«ã¯ [HTML ã® head æ
å ±ã®ããã¥ã¡ã³ã](/guide/views/#html-head) ãåç
§ããŠãã ããã
+ããŒãžå
ã® `head` ããããã£ã®äœ¿ãæ¹ãããæ·±ãçè§£ããã«ã¯ [HTML ã® head æ
å ±ã®ããã¥ã¡ã³ã](/guide/views#html-ã®-head-æ
å ±) ãåç
§ããŠãã ããã
diff --git a/ja/faq/surge-deployment.md b/ja/faq/surge-deployment.md
index 51b13ce6e..84c2c3001 100644
--- a/ja/faq/surge-deployment.md
+++ b/ja/faq/surge-deployment.md
@@ -48,7 +48,7 @@ surge dist/
-ãããžã§ã¯ãã [åçãªã«ãŒãã£ã³ã°](/guide/routing#dynamic-routes) ãããŠããå Žåã¯ãåçãªã«ãŒãã£ã³ã°ãã©ã®ããã«çæãããã Nuxt.js ã«äŒããããã« [çæã®èšå®](/api/configuration-generate) ãåç
§ããŠãã ããã
+ãããžã§ã¯ãã [åçãªã«ãŒãã£ã³ã°](/guide/routing#åçãªã«ãŒãã£ã³ã°) ãããŠããå Žåã¯ãåçãªã«ãŒãã£ã³ã°ãã©ã®ããã«çæãããã Nuxt.js ã«äŒããããã« [çæã®èšå®](/api/configuration-generate) ãåç
§ããŠãã ããã
diff --git a/ja/faq/window-document-undefined.md b/ja/faq/window-document-undefined.md
index 5b0df1896..6d3511907 100644
--- a/ja/faq/window-document-undefined.md
+++ b/ja/faq/window-document-undefined.md
@@ -30,7 +30,7 @@ if (process.BROWSER_BUILD) {
-`nuxt.config.js` ãã¡ã€ã«å
ã§åœè©²ã©ã€ãã©ãªã [vendor bundle](/api/configuration-build#build-vendor) ã«å ããŠããã®ãå¿ããªãã§ãã ããã
+`nuxt.config.js` ãã¡ã€ã«å
ã§åœè©²ã©ã€ãã©ãªã [vendor ãã³ãã«](/api/configuration-build#vendor) ã«å ããŠããã®ãå¿ããªãã§ãã ããã
```js
build: {
diff --git a/ja/guide/async-data.md b/ja/guide/async-data.md
index eb375ce02..0a5b2cd25 100644
--- a/ja/guide/async-data.md
+++ b/ja/guide/async-data.md
@@ -16,7 +16,7 @@ description: Nuxt.js ã¯ã³ã³ããŒãã³ãã®ããŒã¿ãã»ããããå
-`data` ã¡ãœããã¯ã³ã³ããŒãã³ãïŒããŒãžã³ã³ããŒãã³ãã«éããŸãïŒãèªã¿èŸŒãŸããåã«æ¯ååŒã³åºãããŸãããµãŒããŒãµã€ãã¬ã³ããªã³ã°ãããŠãŒã¶ãŒãããŒãžãé·ç§»ããåã«ãåŒã³åºãããŸãããããŠãã®ã¡ãœããã¯ç¬¬äžåŒæ°ãšã㊠[context](/api#context) ãåãåããcontext ã䜿ã£ãŠããŒã¿ãååŸããŠã³ã³ããŒãã³ãã®ããŒã¿ãè¿ãããšãã§ããŸãã
+`data` ã¡ãœããã¯ã³ã³ããŒãã³ãïŒããŒãžã³ã³ããŒãã³ãã«éããŸãïŒãèªã¿èŸŒãŸããåã«æ¯ååŒã³åºãããŸãããµãŒããŒãµã€ãã¬ã³ããªã³ã°ãããŠãŒã¶ãŒãããŒãžãé·ç§»ããåã«ãåŒã³åºãããŸãããããŠãã®ã¡ãœããã¯ç¬¬äžåŒæ°ãšã㊠[context](/api#ã³ã³ããã¹ã) ãåãåããcontext ã䜿ã£ãŠããŒã¿ãååŸããŠã³ã³ããŒãã³ãã®ããŒã¿ãè¿ãããšãã§ããŸãã
@@ -189,4 +189,4 @@ export default {
-ãšã©ãŒããŒãžãã«ã¹ã¿ãã€ãºããã«ã¯ [ãã¥ãŒã®ã¬ã€ã¢ãŠãã»ã¯ã·ã§ã³](/guide/views#layouts) ãåç
§ããŠãã ããã
+ãšã©ãŒããŒãžãã«ã¹ã¿ãã€ãºããã«ã¯ [ãã¥ãŒã®ã¬ã€ã¢ãŠãã»ã¯ã·ã§ã³](/guide/views#ã¬ã€ã¢ãŠã) ãåç
§ããŠãã ããã
diff --git a/ja/guide/commands.md b/ja/guide/commands.md
index c822544ce..450b16113 100644
--- a/ja/guide/commands.md
+++ b/ja/guide/commands.md
@@ -130,7 +130,7 @@ npm run generate
-ãããžã§ã¯ãã§ [åçãªã«ãŒãã£ã³ã°](/guide/routing#dynamic-routes) ã䜿ã£ãŠããå Žåã¯ãNuxt.js ã«åçãªã«ãŒãã£ã³ã°ãçæãããããã« [generate èšå®](/api/configuration-generate) ã«ç®ãéããŠãã ããã
+ãããžã§ã¯ãã§ [åçãªã«ãŒãã£ã³ã°](/guide/routing#åçãªã«ãŒãã£ã³ã°) ã䜿ã£ãŠããå Žåã¯ãNuxt.js ã«åçãªã«ãŒãã£ã³ã°ãçæãããããã« [generate èšå®](/api/configuration-generate) ã«ç®ãéããŠãã ããã
diff --git a/ja/guide/directory-structure.md b/ja/guide/directory-structure.md
index 66547616b..32d7e5504 100644
--- a/ja/guide/directory-structure.md
+++ b/ja/guide/directory-structure.md
@@ -48,7 +48,7 @@ _ãã®ãã£ã¬ã¯ããªåã¯å€æŽã§ããŸããã_
-ã¬ã€ã¢ãŠãã®åãæ±ãã€ããŠããæ·±ãçè§£ããã«ã¯ [ã¬ã€ã¢ãŠãã«é¢ããããã¥ã¡ã³ã](/guide/views#layouts) ãåç
§ããŠãã ããã
+ã¬ã€ã¢ãŠãã®åãæ±ãã€ããŠããæ·±ãçè§£ããã«ã¯ [ã¬ã€ã¢ãŠãã«é¢ããããã¥ã¡ã³ã](/guide/views#ã¬ã€ã¢ãŠã) ãåç
§ããŠãã ããã
@@ -102,7 +102,7 @@ _ãã®ãã£ã¬ã¯ããªåã¯å€æŽã§ããŸããã_
-éçãªãã¡ã€ã«ã®åãæ±ãã«ã€ããŠããæ·±ãçè§£ããã«ã¯ [éçãªãã¡ã€ã«ã«é¢ããããã¥ã¡ã³ã](/guide/assets#static) ãåç
§ããŠãã ããã
+éçãªãã¡ã€ã«ã®åãæ±ãã«ã€ããŠããæ·±ãçè§£ããã«ã¯ [éçãªãã¡ã€ã«ã«é¢ããããã¥ã¡ã³ã](/guide/assets#webpack-ã§æ±ããªãéçãã¡ã€ã«) ãåç
§ããŠãã ããã
diff --git a/ja/guide/routing.md b/ja/guide/routing.md
index 4c20eb160..834dafd87 100644
--- a/ja/guide/routing.md
+++ b/ja/guide/routing.md
@@ -365,9 +365,9 @@ export default {
**ããã«ãŠã§ã¢ã¯ `middleware/` ãã£ã¬ã¯ããªã«å
¥ããŸãã** ãã¡ã€ã«åã¯ããã«ãŠã§ã¢ã®ååãšãªããŸãïŒ`middleware/auth.js` 㯠`auth` ããã«ãŠã§ã¢ã«ãªããŸãïŒ
-
+
-ããã«ãŠã§ã¢ã¯ç¬¬äžåŒæ°ãšã㊠[context](/api#the-context) ãåãåããŸã:
+ããã«ãŠã§ã¢ã¯ç¬¬äžåŒæ°ãšã㊠[context](/api#ã³ã³ããã¹ã) ãåãåããŸã:
```js
export default function (context) {
diff --git a/ja/guide/views.md b/ja/guide/views.md
index 077c8e8d8..eff46d818 100644
--- a/ja/guide/views.md
+++ b/ja/guide/views.md
@@ -94,9 +94,9 @@ export default {
| head | çŸåšã®ããŒãžã®ç¹å®ã®ã¡ã¿ã¿ã°ãèšå®ããŸãã[ããŒãžã® head API](/api/pages-head) ãåç
§ããŠãã ãã |
| layout | `layouts` ãã£ã¬ã¯ããªå
ã®ã¬ã€ã¢ãŠããæå®ããŸãã[ããŒãžã®ã¬ã€ã¢ãŠã API ã«é¢ããããã¥ã¡ã³ã](/api/pages-layout) ãåç
§ããŠãã ãã |
| transition | ããŒãžã«ç¹å®ã®ãã©ã³ãžã·ã§ã³ãèšå®ããŸãã[ããŒãžã®ãã©ã³ãžã·ã§ã³ API ã«é¢ããããã¥ã¡ã³ã](/api/pages-transition) ãåç
§ããŠãã ãã |
-| scrollToTop | ããŒãªã¢ã³ã§æå®ããããã©ã«ã㯠`false` ã§ããããŒãžãã¬ã³ããªã³ã°ããåã«ããããŸã§ã¹ã¯ããŒã«ããããåŠããæå®ããŸãããã㯠[ãã¹ããããã«ãŒã](/guide/routing#nested-routes) ã§äœ¿ãããŸã |
-| validate | [åçãªã«ãŒãã£ã³ã°](/guide/routing#dynamic-routes) ã®ããã®ããªããŒã·ã§ã³é¢æ°ã§ã |
-| middleware | ãã®ããŒãžã®ããã«ããã«ãŠã§ã¢ãèšå®ããããã«ãŠã§ã¢ã¯ããŒãžãã¬ã³ããªã³ã°ãããåã«åŒã³åºãããŸãã[ã«ãŒãã£ã³ã°ã®ããã«ãŠã§ã¢](/guide/routing#middleware) ãåç
§ããŠãã ãã |
+| scrollToTop | ããŒãªã¢ã³ã§æå®ããããã©ã«ã㯠`false` ã§ããããŒãžãã¬ã³ããªã³ã°ããåã«ããããŸã§ã¹ã¯ããŒã«ããããåŠããæå®ããŸãããã㯠[ãã¹ããããã«ãŒã](/guide/routing#ãã¹ããããã«ãŒã) ã§äœ¿ãããŸã |
+| validate | [åçãªã«ãŒãã£ã³ã°](/guide/routing#åçãªã«ãŒãã£ã³ã°) ã®ããã®ããªããŒã·ã§ã³é¢æ°ã§ã |
+| middleware | ãã®ããŒãžã®ããã«ããã«ãŠã§ã¢ãèšå®ããããã«ãŠã§ã¢ã¯ããŒãžãã¬ã³ããªã³ã°ãããåã«åŒã³åºãããŸãã[ã«ãŒãã£ã³ã°ã®ããã«ãŠã§ã¢](/guide/routing#ããã«ãŠã§ã¢) ãåç
§ããŠãã ãã |
From 0688af117e836910e685178f8330fe09d571bcd7 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Sun, 12 Mar 2017 01:43:20 +0900
Subject: [PATCH 125/129] Improve translation in ja
---
ja/api/index.md | 2 +-
ja/api/pages-fetch.md | 2 +-
ja/guide/assets.md | 4 ++--
ja/guide/async-data.md | 2 +-
ja/guide/commands.md | 8 ++++----
ja/guide/directory-structure.md | 4 ++--
ja/guide/index.md | 4 ++--
ja/guide/routing.md | 2 +-
ja/guide/vuex-store.md | 6 +++---
ja/lang.json | 2 +-
10 files changed, 18 insertions(+), 18 deletions(-)
diff --git a/ja/api/index.md b/ja/api/index.md
index 435e61012..49323f946 100644
--- a/ja/api/index.md
+++ b/ja/api/index.md
@@ -20,7 +20,7 @@ description: Nuxt.js 㯠Vue.js ã® data ã¡ãœããã«æãå ããŠãã³ã³
-`data` ã¯ã³ã³ããŒãã³ããããŒãã£ã³ã°ãããåã«æ¯ååŒã³åºãããŸãïŒããŒãžã³ã³ããŒãã³ãã«éããŸãïŒããµãŒããŒãµã€ããããã¯ïŒè𳿳š: ã¯ã©ã€ã¢ã³ããµã€ãã§ã¯ïŒãŠãŒã¶ãŒãããŒãžé·ç§»ããåã«åŒã³åºãããŸãããã®ã¡ãœããã¯ç¬¬äžåŒæ°ãšã㊠**context** ãåãåããcontext ã䜿ã£ãŠããŒã¿ãååŸããŠã³ã³ããŒãã³ãã®ããŒã¿ãè¿ãããšãã§ããŸãã
+`data` ã¯ã³ã³ããŒãã³ããããŒãã£ã³ã°ãããåã«æ¯ååŒã³åºãããŸãïŒããŒãžã³ã³ããŒãã³ãã«éããŸãïŒããµãŒããŒãµã€ããããã¯ïŒè𳿳š: ã¯ã©ã€ã¢ã³ããµã€ãã§ã¯ïŒãŠãŒã¶ãŒãããŒãžé·ç§»ããåã«åŒã³åºãããŸãããã®ã¡ãœããã¯ç¬¬äžåŒæ°ãšã㊠**ã³ã³ããã¹ã** ãåãåããã³ã³ããã¹ãã䜿ã£ãŠããŒã¿ãååŸããŠã³ã³ããŒãã³ãã®ããŒã¿ãè¿ãããšãã§ããŸãã
```js
export default {
diff --git a/ja/api/pages-fetch.md b/ja/api/pages-fetch.md
index aa392071b..228c80806 100644
--- a/ja/api/pages-fetch.md
+++ b/ja/api/pages-fetch.md
@@ -24,7 +24,7 @@ description: fetch ã¡ãœããã¯ãããŒãžãã¬ã³ããªã³ã°ãããå
-`fetch` ã¡ãœããã¯ç¬¬äžåŒæ°ãšã㊠[context](/api#ã³ã³ããã¹ã) ãåãåããcontext ã䜿ã£ãŠããŒã¿ãååŸããŠããŒã¿ãã¹ãã¢ã«å
¥ããããšãã§ããŸããfetch ã¡ãœãããéåæã«ããããã«ã¯ **Promise ãè¿ãããã«ããŠãã ãã**ãNuxt.js ã¯ã³ã³ããŒãã³ããã¬ã³ããªã³ã°ãããåã« Promise ã解決ããããŸã§åŸ
ã¡ãŸãã
+`fetch` ã¡ãœããã¯ç¬¬äžåŒæ°ãšã㊠[ã³ã³ããã¹ã](/api#ã³ã³ããã¹ã) ãåãåããã³ã³ããã¹ãã䜿ã£ãŠããŒã¿ãååŸããŠããŒã¿ãã¹ãã¢ã«å
¥ããããšãã§ããŸããfetch ã¡ãœãããéåæã«ããããã«ã¯ **Promise ãè¿ãããã«ããŠãã ãã**ãNuxt.js ã¯ã³ã³ããŒãã³ããã¬ã³ããªã³ã°ãããåã« Promise ã解決ããããŸã§åŸ
ã¡ãŸãã
diff --git a/ja/guide/assets.md b/ja/guide/assets.md
index 029c070f4..a2579a784 100644
--- a/ja/guide/assets.md
+++ b/ja/guide/assets.md
@@ -122,7 +122,7 @@ file-loader ãš url-loader ã®åœ¹å²:
-ãã Webpack ã§æ±ã察象ãšãªã `assets` ãã£ã¬ã¯ããªã䜿ããããªãå Žåã¯ããããžã§ã¯ãã®ã«ãŒããã£ã¬ã¯ããªã« `static` ãã£ã¬ã¯ããªãäœæããŠå©çšããããšãã§ããŸãã
+Webpack ã§æ±ã察象ãšãªã `assets` ãã£ã¬ã¯ããªã䜿ããããªãå Žåã¯ããããžã§ã¯ãã®ã«ãŒããã£ã¬ã¯ããªã« `static` ãã£ã¬ã¯ããªãäœæããŠå©çšããããšãã§ããŸãã
@@ -130,7 +130,7 @@ file-loader ãš url-loader ã®åœ¹å²:
-ãã®ãªãã·ã§ã³ã¯ `robots.txt` ã `sitemap.xml` ãªã©ã®ãã¡ã€ã«ã«åœ¹ã«ç«ã¡ãŸãã
+ãã®ãªãã·ã§ã³ã¯ `robots.txt` ã `sitemap.xml` ãªã©ã®ãã¡ã€ã«ã®æ±ãã«åœ¹ç«ã¡ãŸãã
diff --git a/ja/guide/async-data.md b/ja/guide/async-data.md
index 0a5b2cd25..8f841be3e 100644
--- a/ja/guide/async-data.md
+++ b/ja/guide/async-data.md
@@ -16,7 +16,7 @@ description: Nuxt.js ã¯ã³ã³ããŒãã³ãã®ããŒã¿ãã»ããããå
-`data` ã¡ãœããã¯ã³ã³ããŒãã³ãïŒããŒãžã³ã³ããŒãã³ãã«éããŸãïŒãèªã¿èŸŒãŸããåã«æ¯ååŒã³åºãããŸãããµãŒããŒãµã€ãã¬ã³ããªã³ã°ãããŠãŒã¶ãŒãããŒãžãé·ç§»ããåã«ãåŒã³åºãããŸãããããŠãã®ã¡ãœããã¯ç¬¬äžåŒæ°ãšã㊠[context](/api#ã³ã³ããã¹ã) ãåãåããcontext ã䜿ã£ãŠããŒã¿ãååŸããŠã³ã³ããŒãã³ãã®ããŒã¿ãè¿ãããšãã§ããŸãã
+`data` ã¡ãœããã¯ã³ã³ããŒãã³ãïŒããŒãžã³ã³ããŒãã³ãã«éããŸãïŒãèªã¿èŸŒãŸããåã«æ¯ååŒã³åºãããŸãããµãŒããŒãµã€ãã¬ã³ããªã³ã°ãããŠãŒã¶ãŒãããŒãžãé·ç§»ããåã«ãåŒã³åºãããŸãããããŠãã®ã¡ãœããã¯ç¬¬äžåŒæ°ãšã㊠[ã³ã³ããã¹ã](/api#ã³ã³ããã¹ã) ãåãåããã³ã³ããã¹ãã䜿ã£ãŠããŒã¿ãååŸããŠã³ã³ããŒãã³ãã®ããŒã¿ãè¿ãããšãã§ããŸãã
diff --git a/ja/guide/commands.md b/ja/guide/commands.md
index 450b16113..34586bf28 100644
--- a/ja/guide/commands.md
+++ b/ja/guide/commands.md
@@ -71,7 +71,7 @@ npm run dev
-Nuxt.js ã§ã¯ã¢ããªã±ãŒã·ã§ã³ããããã€ããããã® 2ã€ã®ã¢ãŒãããéžã¹ãŸã: ãµãŒããŒãµã€ãã¬ã³ããªã³ã°ããã¢ãŒããšéçãªãã¡ã€ã«ãçæããã¢ãŒãã§ãã
+Nuxt.js ã§ã¯ã¢ããªã±ãŒã·ã§ã³ããããã€ããããã® 2ã€ã®ã¢ãŒãããéžã¹ãŸã: ãµãŒããŒãµã€ãã¬ã³ããªã³ã°ããã¢ãŒããšéçãã¡ã€ã«ãçæããã¢ãŒãã§ãã
@@ -114,11 +114,11 @@ nuxt start
-Nuxt.js ã䜿ããšãã©ããªéçãªãã¡ã€ã«ã®ãã¹ãã£ã³ã°ãµãŒãã¹ã§ãããŠã§ãã¢ããªã±ãŒã·ã§ã³ããã¹ãããããšãã§ããŸãã
+Nuxt.js ã䜿ããšãéçãã¡ã€ã«ã®ãã¹ãã£ã³ã°ãµãŒãã¹ã§ãããŠã§ãã¢ããªã±ãŒã·ã§ã³ããã¹ãããããšãã§ããŸãã
-ã¢ããªã±ãŒã·ã§ã³ããéçãªãã¡ã€ã«ãçæããã«ã¯:
+ã¢ããªã±ãŒã·ã§ã³ããéçãã¡ã€ã«ãçæããã«ã¯:
```bash
npm run generate
@@ -126,7 +126,7 @@ npm run generate
-`dist` ãã©ã«ããäœæããããã®äžã«éçãªãã¡ã€ã«ã®ãã¹ãã£ã³ã°ãµãŒãã¹ã«ãããã€ãããã¹ããã®ããã¹ãŠå
¥ããŸãã
+`dist` ãã©ã«ããäœæããããã®äžã«éçãã¡ã€ã«ã®ãã¹ãã£ã³ã°ãµãŒãã¹ã«ãããã€ãããã¹ããã®ããã¹ãŠå
¥ããŸãã
diff --git a/ja/guide/directory-structure.md b/ja/guide/directory-structure.md
index 32d7e5504..8bec81c8a 100644
--- a/ja/guide/directory-structure.md
+++ b/ja/guide/directory-structure.md
@@ -90,7 +90,7 @@ _ãã®ãã£ã¬ã¯ããªåã¯å€æŽã§ããŸããã_
-`static` ãã£ã¬ã¯ããªã«ã¯éçãªãã¡ã€ã«ãå
¥ããŸãããã®ãã£ã¬ã¯ããªå
ã®ãã¡ã€ã«ã¯ãããã `/` ã«é
眮ãããŸãã
+`static` ãã£ã¬ã¯ããªã«ã¯éçãã¡ã€ã«ãå
¥ããŸãããã®ãã£ã¬ã¯ããªå
ã®ãã¡ã€ã«ã¯ãããã `/` ã«é
眮ãããŸãã
@@ -102,7 +102,7 @@ _ãã®ãã£ã¬ã¯ããªåã¯å€æŽã§ããŸããã_
-éçãªãã¡ã€ã«ã®åãæ±ãã«ã€ããŠããæ·±ãçè§£ããã«ã¯ [éçãªãã¡ã€ã«ã«é¢ããããã¥ã¡ã³ã](/guide/assets#webpack-ã§æ±ããªãéçãã¡ã€ã«) ãåç
§ããŠãã ããã
+éçãã¡ã€ã«ã®åãæ±ãã«ã€ããŠããæ·±ãçè§£ããã«ã¯ [éçãã¡ã€ã«ã«é¢ããããã¥ã¡ã³ã](/guide/assets#webpack-ã§æ±ããªãéçãã¡ã€ã«) ãåç
§ããŠãã ããã
diff --git a/ja/guide/index.md b/ja/guide/index.md
index 655ba160a..3cda029ab 100644
--- a/ja/guide/index.md
+++ b/ja/guide/index.md
@@ -81,7 +81,7 @@ Nuxt.js ã¯ãªãããªãŠã§ãã¢ããªã±ãŒã·ã§ã³ãæ§ç¯ããããã«
- ã³ãŒããèªåçã«åå²ããããš
- ãµãŒããŒãµã€ãã¬ã³ããªã³ã°
- éåæããŒã¿ããã³ããªã³ã°ãããã¯ãã«ãªã«ãŒãã£ã³ã°
-- éçãªãã¡ã€ã«ã®é
ä¿¡
+- éçãã¡ã€ã«ã®é
ä¿¡
- ES6/ES7 ã®ãã©ã³ã¹ãã€ã¬ãŒã·ã§ã³
- JS ãš CSS ã®ãã³ãã«åã³ãããã¡ã€
- Head èŠçŽ ã®ç®¡ç
@@ -153,7 +153,7 @@ Nuxt.js ã«ãã倧ããªã€ãããŒã·ã§ã³ããã£ãŠããŸããããã
-ãã®ããæ¹ã«ãããéçãªãã¡ã€ã«ããã¹ãã£ã³ã°ãããµãŒãã¹ã§ãã£ãŠããçæããããŠã§ãã¢ããªã±ãŒã·ã§ã³ããã¹ãã§ããŸãã
+ãã®ããæ¹ã«ãããéçãã¡ã€ã«ããã¹ãã£ã³ã°ãããµãŒãã¹ã§ãã£ãŠããçæããããŠã§ãã¢ããªã±ãŒã·ã§ã³ããã¹ãã§ããŸãã
diff --git a/ja/guide/routing.md b/ja/guide/routing.md
index 834dafd87..a4b94c548 100644
--- a/ja/guide/routing.md
+++ b/ja/guide/routing.md
@@ -367,7 +367,7 @@ export default {
-ããã«ãŠã§ã¢ã¯ç¬¬äžåŒæ°ãšã㊠[context](/api#ã³ã³ããã¹ã) ãåãåããŸã:
+ããã«ãŠã§ã¢ã¯ç¬¬äžåŒæ°ãšã㊠[ã³ã³ããã¹ã](/api#ã³ã³ããã¹ã) ãåãåããŸã:
```js
export default function (context) {
diff --git a/ja/guide/vuex-store.md b/ja/guide/vuex-store.md
index 7bfb67bcf..61c083edc 100644
--- a/ja/guide/vuex-store.md
+++ b/ja/guide/vuex-store.md
@@ -85,7 +85,7 @@ export default store
-ãã®ãªãã·ã§ã³ã䜿ããããšãã¯ãã¹ãã¢ã€ã³ã¹ã¿ã³ã¹ã®ä»£ããã«ã`store/index.js` å
ã®ã¹ãã¢ããã¥ãŒããŒã·ã§ã³ãã¢ã¯ã·ã§ã³ããšã¯ã¹ããŒãããŸã:
+ãã®ãªãã·ã§ã³ã䜿ããããšãã¯ãã¹ãã¢ã€ã³ã¹ã¿ã³ã¹ã®ä»£ããã«ã`store/index.js` å
ã§ã¹ãã¢ããã¥ãŒããŒã·ã§ã³ãã¢ã¯ã·ã§ã³ããšã¯ã¹ããŒãããŸã:
```js
export const state = {
@@ -223,7 +223,7 @@ fetch ã¡ãœããã«ã€ããŠããæ·±ãçè§£ããããã«ã¯ [ããŒãžã®
-`nuxtServerInit` ãšããã¢ã¯ã·ã§ã³ãã¹ãã¢å
ã«å®çŸ©ãããŠãããšãã¯ãNuxt.js ã¯ããã context ãšãšãã«åŒã³åºããŸãïŒãã ããµãŒããŒãµã€ãã«éããŸãïŒããµãŒããŒäžã«ãã¯ã©ã€ã¢ã³ããµã€ãã«çŽæ¥æž¡ãããããŒã¿ããããšãã«äŸ¿å©ã§ãã
+`nuxtServerInit` ãšããã¢ã¯ã·ã§ã³ãã¹ãã¢å
ã«å®çŸ©ãããŠãããšãã¯ãNuxt.js ã¯ãããã³ã³ããã¹ããšãšãã«åŒã³åºããŸãïŒãã ããµãŒããŒãµã€ãã«éããŸãïŒããµãŒããŒãµã€ãããã¯ã©ã€ã¢ã³ããµã€ãã«çŽæ¥æž¡ãããããŒã¿ããããšãã«äŸ¿å©ã§ãã
@@ -245,4 +245,4 @@ actions: {
-context 㯠`nuxtServerInit` ãžç¬¬äºåŒæ°ãšããŠæž¡ãããŸãã`context.redirect()` ã `context.error()` ãé€å€ãããç¹ãé€ããŠã¯ `data` ã¡ãœããã `fetch` ã¡ãœãããšå
±éããŠããŸãã
+ã³ã³ããã¹ã㯠`nuxtServerInit` ãžç¬¬äºåŒæ°ãšããŠæž¡ãããŸãã`context.redirect()` ã `context.error()` ãé€å€ãããç¹ãé€ããŠã¯ `data` ã¡ãœããã `fetch` ã¡ãœãããšå
±éããŠããŸãã
diff --git a/ja/lang.json b/ja/lang.json
index 140261cae..b0df19861 100644
--- a/ja/lang.json
+++ b/ja/lang.json
@@ -33,7 +33,7 @@
"title": "ãŠãããŒãµã« Vue.js ã¢ããªã±ãŒã·ã§ã³",
"meta": {
"title": "Nuxt.js - ãŠãããŒãµã« Vue.js ã¢ããªã±ãŒã·ã§ã³",
- "description": "Nuxt.js ã¯ãµãŒããŒãµã€ãã¬ã³ããªã³ã°ãã³ãŒãåå²ãããããªããŒãã£ã³ã°ãéçãªãã¡ã€ã«çæãªã©ãåãã Vue.js ã¢ããªã±ãŒã·ã§ã³ãæ§ç¯ããããã®ãããã«ãªãã¬ãŒã ã¯ãŒã¯ã§ãïŒ"
+ "description": "Nuxt.js ã¯ãµãŒããŒãµã€ãã¬ã³ããªã³ã°ãã³ãŒãåå²ãããããªããŒãã£ã³ã°ãéçãã¡ã€ã«çæãªã©ãåãã Vue.js ã¢ããªã±ãŒã·ã§ã³ãæ§ç¯ããããã®ãããã«ãªãã¬ãŒã ã¯ãŒã¯ã§ãïŒ"
}
},
"footer": {
From 0fca9f7cb955bae4ca34654f3bbcef2e56c38467 Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Mon, 20 Mar 2017 00:17:53 +0900
Subject: [PATCH 126/129] Improve translation in ja/guide
---
ja/guide/assets.md | 4 ++--
ja/guide/commands.md | 6 +++---
ja/guide/configuration.md | 6 ++----
ja/guide/contribution-guide.md | 2 +-
ja/guide/directory-structure.md | 6 +++---
ja/guide/index.md | 2 +-
ja/guide/installation.md | 2 +-
ja/guide/plugins.md | 2 +-
ja/guide/vuex-store.md | 6 +++---
9 files changed, 17 insertions(+), 19 deletions(-)
diff --git a/ja/guide/assets.md b/ja/guide/assets.md
index a2579a784..800c2c6a5 100644
--- a/ja/guide/assets.md
+++ b/ja/guide/assets.md
@@ -16,11 +16,11 @@ description: Nuxt.js ã¯ã¢ã»ãããã¡ã€ã«ãé
ä¿¡ããããã«ïŒã
-ããã©ã«ãã§ã¯ [vue-loader](http://vue-loader.vuejs.org/en/) 㯠`css-loader` åã³ Vue ãã³ãã¬ãŒãã³ã³ãã€ã©ãçšããŠãã¹ã¿ã€ã«ããã³ãã¬ãŒããã¡ã€ã«ãåŠçããŸãããã®ã³ã³ãã€ã«åŠçã®äžã§ã` ` ã `background: url(...)` ã CSS `@import` ãªã©ã®ãã¹ãŠã® URL ã¯ã¢ãžã¥ãŒã«ã®äŸåé¢ä¿ã®ããã«è§£æ±ºãããŸãã
+ããã©ã«ãã§ã¯ [vue-loader](http://vue-loader.vuejs.org/en/) 㯠`css-loader` åã³ `vue-template-compiler` ãçšããŠãã¹ã¿ã€ã«ããã³ãã¬ãŒããã¡ã€ã«ãåŠçããŸãããã®ã³ã³ãã€ã«åŠçã®äžã§ã` ` ã `background: url(...)` ã CSS `@import` ãªã©ã®ãã¹ãŠã® URL ã¯ã¢ãžã¥ãŒã«ã®äŸåé¢ä¿ã®ããã«è§£æ±ºãããŸãã
-äŸãã°ããã®ãããªãã¡ã€ã«ããããšããŸã:
+äŸãã°ã次ã®ãããªãã¡ã€ã«ããããšããŸã:
```bash
-| assets/
diff --git a/ja/guide/commands.md b/ja/guide/commands.md
index 34586bf28..87529ae6e 100644
--- a/ja/guide/commands.md
+++ b/ja/guide/commands.md
@@ -1,6 +1,6 @@
---
title: ã³ãã³ã
-description: Nuxt.js ã¯äŸ¿å©ã³ãã³ãã®ã»ãããåããŠããŸããéçºçšéã®ãã®ããããã¯ã·ã§ã³çšéã®ãã®ãå«ãŸããŠããŸãã
+description: Nuxt.js ã¯äŸ¿å©ã³ãã³ãã®ã»ãããåããŠããŸããéçºæã«åœ¹ç«ã€ãã®ãããããã¯ã·ã§ã³çšéã®ãã®ããããŸãã
---
@@ -8,7 +8,7 @@ description: Nuxt.js ã¯äŸ¿å©ã³ãã³ãã®ã»ãããåããŠããŸãã
-> Nuxt.js ã¯äŸ¿å©ã³ãã³ãã®ã»ãããåããŠããŸããéçºçšéã®ãã®ããããã¯ã·ã§ã³çšéã®ãã®ãå«ãŸããŠããŸãã
+> Nuxt.js ã¯äŸ¿å©ã³ãã³ãã®ã»ãããåããŠããŸããéçºæã«åœ¹ç«ã€ãã®ãããããã¯ã·ã§ã³çšéã®ãã®ããããŸãã
@@ -71,7 +71,7 @@ npm run dev
-Nuxt.js ã§ã¯ã¢ããªã±ãŒã·ã§ã³ããããã€ããããã® 2ã€ã®ã¢ãŒãããéžã¹ãŸã: ãµãŒããŒãµã€ãã¬ã³ããªã³ã°ããã¢ãŒããšéçãã¡ã€ã«ãçæããã¢ãŒãã§ãã
+Nuxt.js ã§ã¯ã¢ããªã±ãŒã·ã§ã³ããããã€ããããã® 2ã€ã®ã¢ãŒãããéžã¹ãŸãããµãŒããŒãµã€ãã¬ã³ããªã³ã°ããã¢ãŒããšãéçãã¡ã€ã«ãçæããã¢ãŒãã§ãã
diff --git a/ja/guide/configuration.md b/ja/guide/configuration.md
index 6a2aee2be..d42b852af 100644
--- a/ja/guide/configuration.md
+++ b/ja/guide/configuration.md
@@ -64,9 +64,7 @@ description: Nuxt.js ã§ã¯ããã©ã«ãã®èšå®ã§ã»ãšãã©ã®ãŠãŒã¹
-ãã®ãªãã·ã§ã³ã§ãNuxt.js ã HTML ãã¡ã€ã«ã«å€æããã¢ããªã±ãŒã·ã§ã³å
ã®åçãªã«ãŒãã£ã³ã°ã®ããã®ãã©ã¡ãŒã¿ãæå®ã§ããŸããïŒèš³ã«èªä¿¡ãªããåæã¯ This option lets you to define each params value for every dynamic routes in your application that Nuxt.js transforms into HTML files.ïŒ
-
-ãã®ãªãã·ã§ã³ã§ãã¢ããªã±ãŒã·ã§ã³å
ã®åçãªã«ãŒãã£ã³ã°ããšã«ãã©ã¡ãŒã¿ãæå®ã§ããŸããNuxt.js ã¯ãããã®ãã©ã¡ãŒã¿ã倿ã㊠HTML ãã¡ã€ã«ã«å
¥ããŸãã
+ãã®ãªãã·ã§ã³ã¯ãåçãªã«ãŒãã£ã³ã°ãããŠããã¢ããªã±ãŒã·ã§ã³ã HTML ãã¡ã€ã«ã«å€æãããšãã«äœ¿ããŸããåçãªã«ãŒãã£ã³ã°ã«çšãããã©ã¡ãŒã¿ãæå®ã§ããŸãã
@@ -96,7 +94,7 @@ description: Nuxt.js ã§ã¯ããã©ã«ãã®èšå®ã§ã»ãšãã©ã®ãŠãŒã¹
-ãã®ãªãã·ã§ã³ã§ãã«ãŒãã® vue.js ã¢ããªã±ãŒã·ã§ã³ãã€ã³ã¹ã¿ã³ã¹åããåã«å®è¡ããã Javascript plugin ãæå®ã§ããŸãã
+ãã®ãªãã·ã§ã³ã§ãã«ãŒãã® vue.js ã¢ããªã±ãŒã·ã§ã³ãã€ã³ã¹ã¿ã³ã¹åããåã«å®è¡ããã JavaScript plugin ãæå®ã§ããŸãã
diff --git a/ja/guide/contribution-guide.md b/ja/guide/contribution-guide.md
index 76a69f0f1..8c9c8faf3 100644
--- a/ja/guide/contribution-guide.md
+++ b/ja/guide/contribution-guide.md
@@ -24,7 +24,7 @@ Nuxt.js ãžã®è²¢ç®ã¯ã©ããªãã®ã§ã倧æè¿ã§ãïŒ
-ããšããããåã«ã¿ã€ããã¹ã®ä¿®æ£ã§ãã£ãŠãããã²ãã«ãªã¯ãšã¹ããéã£ãŠãã ãããã©ããªéèŠãªæ¹åã§ãã£ãŠãã誰ããæãåããå§ããåã« [GitHub issue](https://github.com/nuxt/nuxt.js/issues) ã«èšèŒããŠãã ããã
+ããšããããåã«ã¿ã€ããã¹ã®ä¿®æ£ã§ãã£ãŠãããã²ãã«ãªã¯ãšã¹ããéã£ãŠãã ãããäžæ¹ã§ãã©ããªéèŠãªæ¹åã§ãã£ãŠãã誰ããæãåããå§ããåã« [GitHub issue](https://github.com/nuxt/nuxt.js/issues) ã«èšèŒããŠãã ããã
diff --git a/ja/guide/directory-structure.md b/ja/guide/directory-structure.md
index 8bec81c8a..c6a3501c4 100644
--- a/ja/guide/directory-structure.md
+++ b/ja/guide/directory-structure.md
@@ -32,7 +32,7 @@ description: ããã©ã«ãã® Nuxt.js ã¢ããªã±ãŒã·ã§ã³ã®æ§é ã¯ã
-`components` ãã£ã¬ã¯ããªã«ã¯ Vue.js ã®ã³ã³ããŒãã³ããã¡ã€ã«ãå
¥ããŸããNuxt.js 㯠`components` ãã£ã¬ã¯ããªå
ã®ã³ã³ããŒãã³ãã® data ã¡ãœããã«ã€ããŠã¯æãå ããŸããã
+`components` ãã£ã¬ã¯ããªã«ã¯ Vue.js ã®ã³ã³ããŒãã³ããã¡ã€ã«ãå
¥ããŸããNuxt.js 㯠`components` ãã£ã¬ã¯ããªå
ã®ã³ã³ããŒãã³ãã® data ã¡ãœããã«ã€ããŠã¯æãå ããŸããïŒè𳿳š: äžæ¹ãNuxt.js 㯠`pages` ãã£ã¬ã¯ããªå
ã®ã³ã³ããŒãã³ãã® data ã¡ãœããã«ã¯éåæããŒã¿ãæ±ããããæãå ããŸãïŒ
@@ -62,7 +62,7 @@ _Coming soon_
-`pages` ãã£ã¬ã¯ããªã«ã¯ã¢ããªã±ãŒã·ã§ã³ã®ãã¥ãŒåã³ã«ãŒãã£ã³ã°ãã¡ã€ã«ãå
¥ããŸããNuxt.js ãã¬ãŒã ã¯ãŒã¯ã¯ãã®ãã£ã¬ã¯ããªå
ã®ãã¹ãŠã® `.vue` ãã¡ã€ã«ãèªã¿èŸŒã¿ãã¢ããªã±ãŒã·ã§ã³ã®ã«ãŒã¿ãŒãäœæããŸãã
+`pages` ãã£ã¬ã¯ããªã«ã¯ã¢ããªã±ãŒã·ã§ã³ã®ãã¥ãŒåã³ã«ãŒãã£ã³ã°ãã¡ã€ã«ãå
¥ããŸããNuxt.js ãã¬ãŒã ã¯ãŒã¯ã¯ãã®ãã£ã¬ã¯ããªå
ã®ãã¹ãŠã® `*.vue` ãã¡ã€ã«ãèªã¿èŸŒã¿ãã¢ããªã±ãŒã·ã§ã³ã®ã«ãŒã¿ãŒãäœæããŸãã
@@ -78,7 +78,7 @@ _ãã®ãã£ã¬ã¯ããªåã¯å€æŽã§ããŸããã_
-`plugins` ãã£ã¬ã¯ããªã«ã¯ãã«ãŒãã® vue.js ã¢ããªã±ãŒã·ã§ã³ãã€ã³ã¹ã¿ã³ã¹åããåã«å®è¡ããã Javascript ãã©ã°ã€ã³ãå
¥ããŸãã
+`plugins` ãã£ã¬ã¯ããªã«ã¯ãã«ãŒãã® Vue.js ã¢ããªã±ãŒã·ã§ã³ãã€ã³ã¹ã¿ã³ã¹åããåã«å®è¡ããã JavaScript ãã©ã°ã€ã³ãå
¥ããŸãã
diff --git a/ja/guide/index.md b/ja/guide/index.md
index 3cda029ab..b4dd94165 100644
--- a/ja/guide/index.md
+++ b/ja/guide/index.md
@@ -16,7 +16,7 @@ description: "2016幎10æ25æ¥ zeit.co ã®ããŒã ã React ã¢ããªã±ãŒã·
-Next.js ãšã¯ãŠãããŒãµã«ãª Vue.js ã¢ããªã±ãŒã·ã§ã³ãæ§ç¯ããããã®ãã¬ãŒã ã¯ãŒã¯ã§ãã
+Nuxt.js ãšã¯ãŠãããŒãµã«ãª Vue.js ã¢ããªã±ãŒã·ã§ã³ãæ§ç¯ããããã®ãã¬ãŒã ã¯ãŒã¯ã§ãã
diff --git a/ja/guide/installation.md b/ja/guide/installation.md
index 4a6301f6a..b13037097 100644
--- a/ja/guide/installation.md
+++ b/ja/guide/installation.md
@@ -103,7 +103,7 @@ $ cd
-`package.json` ãäœæããåŸãã `nuxt` ã NPM çµç±ã§ãããžã§ã¯ã远å ããŸããã:
+`package.json` ãäœæããã `nuxt` ã npm ã§ãããžã§ã¯ãã«è¿œå ããŸããã:
```bash
npm install --save nuxt
diff --git a/ja/guide/plugins.md b/ja/guide/plugins.md
index 424d7a42f..d0202a1fa 100644
--- a/ja/guide/plugins.md
+++ b/ja/guide/plugins.md
@@ -24,7 +24,7 @@ description: Nuxt.js ã§ã¯ js ãã©ã°ã€ã³ãå®çŸ©ããããšãã§ãã
-å€éšããã±ãŒãžã¯ NPM çµç±ã§ã€ã³ã¹ããŒã«ããŸã:
+å€éšããã±ãŒãžã¯ npm ã§ã€ã³ã¹ããŒã«ããŸã:
```bash
npm install --save axios
diff --git a/ja/guide/vuex-store.md b/ja/guide/vuex-store.md
index 61c083edc..35b5ffa13 100644
--- a/ja/guide/vuex-store.md
+++ b/ja/guide/vuex-store.md
@@ -34,7 +34,7 @@ Nuxt.js ã§ã¯ **2ã€ã®ã¢ãŒãã®ã¹ãã¢** ããããŸããã©ã¡ãã
- **ã¯ã©ã·ãã¯ã¢ãŒã:** `store/index.js` ãã¹ãã¢ã€ã³ã¹ã¿ã³ã¹ãè¿ããŸã
-- **ã¢ãžã¥ãŒã«ã¢ãŒã:** `store` ãã£ã¬ã¯ããªå
ã®ãã¹ãŠã® `.js` ãã¡ã€ã«ã [ã¢ãžã¥ãŒã«](http://vuex.vuejs.org/en/modules.html) ã«å€æãããŸãïŒ`index` ã¯ã«ãŒãã¢ãžã¥ãŒã«ãšããŠååšããŸãïŒ
+- **ã¢ãžã¥ãŒã«ã¢ãŒã:** `store` ãã£ã¬ã¯ããªå
ã®ãã¹ãŠã® `*.js` ãã¡ã€ã«ã [ã¢ãžã¥ãŒã«](http://vuex.vuejs.org/en/modules.html) ã«å€æãããŸãïŒ`index` ã¯ã«ãŒãã¢ãžã¥ãŒã«ãšããŠååšããŸãïŒ
@@ -63,7 +63,7 @@ export default store
-> `vuex` 㯠Nuxt.js ã«ãã£ãŠåã蟌ãŸããŠãããããå¥éã€ã³ã¹ããŒã«ããå¿
èŠã¯ãããŸãã
+> `vuex` 㯠Nuxt.js ã«ãã£ãŠåã蟌ãŸããŠãããããå¥éã€ã³ã¹ããŒã«ããå¿
èŠã¯ãããŸããã
@@ -241,7 +241,7 @@ actions: {
-> ãã Vuex ã¹ãã¢ã® _ã¢ãžã¥ãŒã«_ ã¢ãŒãã䜿ã£ãŠãããªããïŒ`store/index.js` å
ã®ïŒãã©ã€ããªã¢ãŒãã®ã¿ããã®ã¢ã¯ã·ã§ã³ãåãåãããšãã§ããŸããããããã¢ãžã¥ãŒã«ã®ã¢ã¯ã·ã§ã³ãã€ãªãå¿
èŠããããŸããïŒè𳿳š: èš³ã«èªä¿¡ãªããåæã¯ If you are using the _Modules_ mode of the Vuex store, only the primary module (in `store/index.js`) will receive this action. You'll need to chain your module actions from there.ïŒ
+> Vuex ã¹ãã¢ã® _ã¢ãžã¥ãŒã«_ ã¢ãŒãã䜿ã£ãŠããå Žåã¯ãªãããã©ã€ããªã¢ãžã¥ãŒã«ïŒ`store/index.js`ïŒã®ã¿ããã®ã¢ã¯ã·ã§ã³ãåãåãããšãã§ããŸãããã®ä»ã®ã¢ãžã¥ãŒã«ã®ã¢ã¯ã·ã§ã³ã§ã䜿ãããå Žåã¯ããã©ã€ããªã¢ãžã¥ãŒã«ãããã§ã€ã³ããå¿
èŠããããŸãã
From 677f57717eccec11f821930ac8cc78990a06be2e Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Mon, 20 Mar 2017 00:39:01 +0900
Subject: [PATCH 127/129] Improve translation in ja/api
---
ja/api/components-nuxt-link.md | 2 +-
ja/api/configuration-generate.md | 4 +++-
ja/api/index.md | 4 ++--
ja/api/nuxt.md | 3 ++-
ja/api/pages-fetch.md | 6 +++---
5 files changed, 11 insertions(+), 8 deletions(-)
diff --git a/ja/api/components-nuxt-link.md b/ja/api/components-nuxt-link.md
index 5373931bc..e97961a3f 100644
--- a/ja/api/components-nuxt-link.md
+++ b/ja/api/components-nuxt-link.md
@@ -8,7 +8,7 @@ description: ããŒãžéã nuxt-link ã䜿ã£ãŠãªã³ã¯ãããŸãã
-# The <nuxt-link> ã³ã³ããŒãã³ã
+# <nuxt-link> ã³ã³ããŒãã³ã
diff --git a/ja/api/configuration-generate.md b/ja/api/configuration-generate.md
index 4b4590e52..6cb59d411 100644
--- a/ja/api/configuration-generate.md
+++ b/ja/api/configuration-generate.md
@@ -143,7 +143,9 @@ module.exports = {
}
```
-## ã³ãŒã«ããã¯ãšäžç·ã«é¢æ°ã䜿ã
+
+
+### ã³ãŒã«ããã¯ãšäžç·ã«é¢æ°ã䜿ã
`nuxt.config.js`
diff --git a/ja/api/index.md b/ja/api/index.md
index 49323f946..22c9580e5 100644
--- a/ja/api/index.md
+++ b/ja/api/index.md
@@ -62,8 +62,8 @@ export default {
| `isClient` | ããŒãªã¢ã³ | ã¯ã©ã€ã¢ã³ãïŒãµãŒã㌠| ã¯ã©ã€ã¢ã³ããµã€ãã§ã¬ã³ããªã³ã°ããŠãããåŠã |
| `isServer` | ããŒãªã¢ã³ | ã¯ã©ã€ã¢ã³ãïŒãµãŒã㌠| ãµãŒããŒãµã€ãã§ã¬ã³ããªã³ã°ããŠãããåŠã |
| `isDev` | ããŒãªã¢ã³ | ã¯ã©ã€ã¢ã³ãïŒãµãŒã㌠| éçºã¢ãŒããåŠãããã®ããŒã¯ãããã¯ã·ã§ã³ã¢ãŒãã§ããŒã¿ããã£ãã·ã¥ããããšãã«åœ¹ç«ã¡ãŸã |
-| `route` | [vue-router ã®ã«ãŒã](https://router.vuejs.org/en/api/route-object.html) | Client & Server | `vue-router` ã®ã«ãŒãã€ã³ã¹ã¿ã³ã¹ |
-| `store` | [Vuex ã¹ãã¢](http://vuex.vuejs.org/en/api.html#vuexstore-instance-properties) | Client & Server | `Vuex` ã®ã¹ãã¢ã€ã³ã¹ã¿ã³ã¹ã**[Vuex ã¹ãã¢](/guide/vuex-store) ãèšå®ãããŠããå Žåã®ã¿å©çšã§ããŸã** |
+| `route` | [vue-router ã®ã«ãŒã](https://router.vuejs.org/en/api/route-object.html) | ã¯ã©ã€ã¢ã³ãïŒãµãŒã㌠| `vue-router` ã®ã«ãŒãã€ã³ã¹ã¿ã³ã¹ |
+| `store` | [Vuex ã¹ãã¢](http://vuex.vuejs.org/en/api.html#vuexstore-instance-properties) | ã¯ã©ã€ã¢ã³ãïŒãµãŒã㌠| `Vuex` ã®ã¹ãã¢ã€ã³ã¹ã¿ã³ã¹ã**[Vuex ã¹ãã¢](/guide/vuex-store) ãèšå®ãããŠããå Žåã®ã¿å©çšã§ããŸã** |
| `env` | ãªããžã§ã¯ã | ã¯ã©ã€ã¢ã³ãïŒãµãŒã㌠| `nuxt.config.js` ã§ã»ãããããç°å¢å€æ°ã詳现㯠[env API](/api/configuration-env) ãåç
§ããŠãã ãã |
| `params` | ãªããžã§ã¯ã | ã¯ã©ã€ã¢ã³ãïŒãµãŒã㌠| route.params ã®ãšã€ãªã¢ã¹ |
| `query` | ãªããžã§ã¯ã | ã¯ã©ã€ã¢ã³ãïŒãµãŒã㌠| route.query ã®ãšã€ãªã¢ã¹ |
diff --git a/ja/api/nuxt.md b/ja/api/nuxt.md
index 3840b021e..0eee66359 100644
--- a/ja/api/nuxt.md
+++ b/ja/api/nuxt.md
@@ -15,7 +15,8 @@ description: Nuxt.js ã¯ããã°ã©ã äžã§ãããã«ãŠã§ã¢ãšããŠäœ¿
ããã«ãŠã§ã¢ã API ãšåãããŠç¬èªãµãŒããŒã䜿ããããšãããããããããŸããããã®ãããNuxt.js ã¯ããã°ã©ã ã§äœ¿ãããšãã§ããããã«ããŠããŸãã
-Nuxt.js ã¯ã³ãŒããããæ¥œãããã®ããããèªã¿ããããã ES2015 以äžã§ãã«ããããŸãããã©ã³ã¹ãã€ã©ãå©çšããããŸã V8 ãšã³ãžã³ã§å®è£
ãããæ©èœã«äŸåããŸããããã®ãããªçç±ãã Nuxt.js 㯠Node.js `4.0` 以äžãã¿ãŒã²ããã«ããŠããŸãã
+
+Nuxt.js 㯠ES2015 以äžã§ãã«ããããŸããES2015 ã¯ã³ãŒãã£ã³ã°ãããæ¥œãããã®ããããèªã¿ãããããŠãããŸãããããŸããNuxt.js ã¯ãã©ã³ã¹ãã€ã©ãå©çšããããŸã V8 ãšã³ãžã³ã§å®è£
ãããæ©èœã«äŸåããŸããããã®ãããªçç±ãã Nuxt.js 㯠Node.js `4.0` 以äžãã¿ãŒã²ããã«ããŠããŸãã
diff --git a/ja/api/pages-fetch.md b/ja/api/pages-fetch.md
index 228c80806..74c26bb69 100644
--- a/ja/api/pages-fetch.md
+++ b/ja/api/pages-fetch.md
@@ -39,9 +39,9 @@ description: fetch ã¡ãœããã¯ãããŒãžãã¬ã³ããªã³ã°ãããå
export default {
fetch ({ store, params }) {
return axios.get('http://my-api/stars')
- .then((res) => {
- store.commit('setStars', res.data)
- })
+ .then((res) => {
+ store.commit('setStars', res.data)
+ })
}
}
From bef2c98566967731413ab1d031cd7ff0704c813f Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Mon, 20 Mar 2017 00:44:00 +0900
Subject: [PATCH 128/129] Improve translation in ja/examples
---
ja/examples/menu.json | 2 +-
ja/lang.json | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/ja/examples/menu.json b/ja/examples/menu.json
index 497c2991d..c3472a19d 100644
--- a/ja/examples/menu.json
+++ b/ja/examples/menu.json
@@ -10,7 +10,7 @@
"title": "ã«ã¹ã¿ãã€ãº",
"links": [
{ "name": "ã³ã³ããŒãã³ãã®ãã£ãã·ã¥", "to": "/cached-components" },
- { "name": "ã«ã¹ã¿ã ããŒãã£ã³ã°Custom Loading", "to": "/custom-loading" },
+ { "name": "ã«ã¹ã¿ã ããŒãã£ã³ã°", "to": "/custom-loading" },
{ "name": "ã«ã¹ã¿ã ã«ãŒãã£ã³ã°", "to": "/custom-routes" },
{ "name": "ã°ããŒãã« CSS", "to": "/global-css" },
{ "name": "ã¬ã€ã¢ãŠã", "to": "/layouts" },
diff --git a/ja/lang.json b/ja/lang.json
index b0df19861..f722a3d46 100644
--- a/ja/lang.json
+++ b/ja/lang.json
@@ -14,7 +14,7 @@
"guide": "ã¬ã€ã",
"homepage": "ããŒã ",
"live_demo": "ã©ã€ããã¢",
- "live_edit": "ã©ã€ããšãã£ãã",
+ "live_edit": "ã©ã€ãç·šé",
"twitter": "Twitter",
"vuejs": "Vue.js",
"vue_jobs": "Vue Jobs"
From 9c0150aebe00b58c544f8dd9fe8841582dcbfd0c Mon Sep 17 00:00:00 2001
From: INOUE Takuya
Date: Mon, 20 Mar 2017 00:54:36 +0900
Subject: [PATCH 129/129] Improve translation in ja/faq
---
ja/faq/async-data-components.md | 4 ++--
ja/faq/css-flash.md | 4 ++--
ja/faq/pre-processors.md | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/ja/faq/async-data-components.md b/ja/faq/async-data-components.md
index b4547be64..ebcef579d 100644
--- a/ja/faq/async-data-components.md
+++ b/ja/faq/async-data-components.md
@@ -12,11 +12,11 @@ description: ã³ã³ããŒãã³ãå
ã§éåæããŒã¿ãæ±ãã«ã¯ïŒ
-ã³ã³ããŒãã³ãã¯ã«ãŒãã«é¢é£ä»ããããŠããªãããïŒè𳿳š: åºæ¬çã«ã¯ïŒéåæããŒã¿ãæ±ãããšã¯ã§ããŸãããNuxt.js ã§ã¯ã«ãŒãã«é¢é£ä»ããããã³ã³ããŒãã³ãã® data() ã¡ãœããã«æãå ããŠéåæããŒã¿ãæ±ããããã«ããŠããŸãã
+ã³ã³ããŒãã³ãã¯ã«ãŒãã«é¢é£ä»ããããŠããªãããïŒè𳿳š: åºæ¬çã«ã¯ïŒéåæããŒã¿ãæ±ãããšã¯ã§ããŸãããNuxt.js ã§ã¯ã«ãŒãã«é¢é£ä»ããããã³ã³ããŒãã³ãïŒè𳿳š: pages ãã£ã¬ã¯ããªå
ã®ã³ã³ããŒãã³ãã®ããšïŒã® data() ã¡ãœããã«æãå ããŠéåæããŒã¿ãæ±ããããã«ããŠããŸãã
-ããããªããããµãã³ã³ããŒãã³ãã§ãéåæããŒã¿ãæ±ããããã«ããæ¹æ³ã 2ã€ãããŸã:
+ããããªããããµãã³ã³ããŒãã³ãïŒè𳿳š: components ãã£ã¬ã¯ããªå
ã®ã³ã³ããŒãã³ãã®ããšïŒã§ãéåæããŒã¿ãæ±ããããã«ããæ¹æ³ã 2ã€ãããŸã:
diff --git a/ja/faq/css-flash.md b/ja/faq/css-flash.md
index cdcb7d411..583bf6b8d 100644
--- a/ja/faq/css-flash.md
+++ b/ja/faq/css-flash.md
@@ -16,6 +16,6 @@ description: ãªã CSS Flash ãèŠããã®ãïŒ
ãããèŠããã®ã¯ Webpack ããšãããŠããããªããŒãã£ã³ã°ãã **éçºã¢ãŒã** ã§ãã«ããã JavaScript ã®äžã« CSS ãåã蟌ãŸããŠããããã§ãã
-Don't worry in production mode, the CSS is separated and put in the header so this "flash" does not appear anymore.
+
-å¿é
ããªããŠãã ããããããã¯ã·ã§ã³ã¢ãŒãã§ã¯ CSS ã¯åé¢ãã㊠head ã«çœ®ãããããããã®ãã㪠"flash" ã¯èŠããŸããã
+倧äžå€«ã§ãããããã¯ã·ã§ã³ã¢ãŒãã§ã¯ CSS ã¯åé¢ãã㊠head ã«çœ®ãããããããã®ãã㪠"flash" ã¯èŠããŸããã
diff --git a/ja/faq/pre-processors.md b/ja/faq/pre-processors.md
index f0aa7caa7..d34bd9297 100644
--- a/ja/faq/pre-processors.md
+++ b/ja/faq/pre-processors.md
@@ -12,7 +12,7 @@ description: Nuxt.js ã§ããªããã»ããµã䜿ãã«ã¯ïŒ
-[vue-loader](http://vue-loader.vuejs.org/en/configurations/pre-processors.html) ã®ãããã§ããã `lang` 屿§ã䜿ãã ãã§ `` ã `