Skip to content

Commit c174f8d

Browse files
kazuponyyx990803
authored andcommitted
For japanese translation of remaining differences (#949)
* pickup from 54608ef * update api/route-object section NOTE: pick up from the following commit hashes - 06aaee1 - 888dafe * update essentials/getting-started section * update essentials/getting-started section for chinese * fix essentials/getting-started.md translation * more update essentials/getting-started.md NOTE: pick up from 9cddafe * more more update essentials/getting-started.md NOTE: pick up from 4c58625 * add paragraph from en/api/router-instance.md NOTE: pick up from 38e199d * translate remining docs
1 parent a42b1c7 commit c174f8d

File tree

4 files changed

+20
-8
lines changed

4 files changed

+20
-8
lines changed

docs/ja/api/route-object.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@
66

77
ルートオブジェクトは複数の場所に存在します。
88

9-
- コンポーネント内での `this.$route`、また、 `$route` watcher コールバック内部
9+
- コンポーネント内での `this.$route`、また、 `$route` watcher コールバック内部
1010

11-
- `router.match(location)` を呼び出した時の返り値
11+
- `router.match(location)` を呼び出した時の返り値
1212

13-
- ナビゲーションガード内での 1 つ目の引数
13+
- ナビゲーションガード内での第 1 引数、第 2 引数として:
1414

1515
``` js
1616
router.beforeEach((route, redirect, next) => {
1717
// ここの route はルートオブジェクト
1818
})
1919
```
2020

21-
- `scrollBehavior` function 内の引数
21+
- `scrollBehavior` 関数内の第 1 引数、第 2 引数として:
2222

2323
``` js
2424
const router = new VueRouter({

docs/ja/api/router-instance.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,7 @@
3939
- **router.getMatchedComponents()**
4040

4141
現在のルートにマッチしているコンポーネント (インスタンスではなく定義 / コンストラクタ) の配列を返します。これは大抵の場合データ取得を行うサーバーサイドレンダリングで使用されます。
42+
43+
- **router.resolve(location, current?, append?)**
44+
45+
逆 URL 解決します。`<router-link/>` で使われているものと同じ形式の location が与えられた場合は、文字列プロパティ `href` のオブジェクトを返します。

docs/ja/essentials/getting-started.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,14 @@
44
55
Vue.js と vue-router を使ったシングルページアプリケーションの構築は驚くほど簡単です。Vue.js のコンポーネントを使ってアプリケーションを既に構成しています。vue-router を混ぜ込むには、コンポーネントとルートをマッピングさせて vue-router にどこでレンダリングするかを知らせるだけです。以下が基本的な例です。
66

7+
> すべての example では、vue のスタンドアロンバージョンを使用してテンプレートを解析可能にしています。詳細は[こちら](http://jp.vuejs.org/v2/guide/installation.html#スタンドアロン-vs-ランタイム限定ビルド)を参照してください。
8+
79
### HTML
810

911
``` html
12+
<script src="https://unpkg.com/vue/dist/vue.js"></script>
13+
<script src="https://unpkg.com/vue-router"></script>
14+
1015
<div id="app">
1116
<h1>Hello App!</h1>
1217
<p>
@@ -25,7 +30,7 @@ Vue.js と vue-router を使ったシングルページアプリケーション
2530
### JavaScript
2631

2732
``` js
28-
// 0. モジュールシステムを使っている場合Vue.use(VueRouter) を呼び出します
33+
// 0. モジュールシステムを使っている場合 (例: vue-clie 経由で)、Vue と VueRouter をインポートし、Vue.use(VueRouter) を呼び出します
2934

3035
// 1. ルートコンポーネントを定義します
3136
// 他のファイルからインポートすることもできます
@@ -34,8 +39,8 @@ const Bar = { template: '<div>bar</div>' }
3439

3540
// 2. ルートをいくつか定義します
3641
// 各ルートは 1 つのコンポーネントとマッピングされる必要があります。
37-
// このコンポーネントは実際の Vue.extend() によって作られたコンポーネントコンストラクタでも
38-
// コンポーネントオプションのオブジェクトでも構いません
42+
// このコンポーネントは実際の Vue.extend()、Vue.component() 経由によってコンポーネント ID が登録された文字列、
43+
// またはコンポーネントオプションのオブジェクトでも構いません。
3944
// ネストされたルートに関しては後で説明します
4045
const routes = [
4146
{ path: '/foo', component: Foo },

docs/zh-cn/essentials/getting-started.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
### HTML
88

99
``` html
10+
<script src="https://unpkg.com/vue/dist/vue.js"></script>
11+
<script src="https://unpkg.com/vue-router"></script>
12+
1013
<div id="app">
1114
<h1>Hello App!</h1>
1215
<p>
@@ -25,7 +28,7 @@
2528
### JavaScript
2629

2730
``` js
28-
// 0. 如果使用模块化机制编程, 要调用 Vue.use(VueRouter)
31+
// 0. 如果使用模块化机制编程,導入Vue和VueRouter,要调用 vue.use(vuerouter)
2932

3033
// 1. 定义(路由)组件。
3134
// 可以从其他文件 import 进来

0 commit comments

Comments
 (0)