8000 docs(ja): translate previous commit · vuejs/vue-router@7dde906 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7dde906

Browse files
committed
docs(ja): translate previous commit
1 parent 873f868 commit 7dde906

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/ja/guide/essentials/dynamic-matching.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,29 +67,29 @@ const User = {
6767

6868
## Catch all / 404 Not found Route
6969

70-
Regular params will only match characters in between url fragments, separated by `/`. If we want to match **anything**, we can use the asterisk (`*`):
70+
通常のパラメータは、`/` で区切られた url フラグメントの間にある文字だけにマッチします。**何でも**一致させたい場合は、アスタリスク(`*`)を使うことができます:
7171

7272
```js
7373
{
74-
// will match everything
74+
// 全てにマッチします
7575
path: '*'
7676
}
7777
{
78-
// will match anything starting with `/user-`
78+
// `/user-`から始まるもにマッチします
7979
path: '/user-*'
8080
}
8181
```
8282

83-
When using _asterisk_ routes, make sure to correctly order your routes so that _asterisk_ ones are at the end.
84-
The route `{ path; '*' }` is usually used to 404 client side. If you are using _History mode_, make sure to [correctly configure your server](./history-mode.md) as well.
83+
_アスタリスク_ ルートを使用するときは、_アスタリスク_ ルートが最後になるようにルートを正しく順序付けでください。
84+
`{ path: '*' }` ルートは、通常 404 クライアントサイドで使われます。_History モード_ を使用する場合は、[正しいサーバの設定](./history-mode.md)も同様に確認してください。
8585

86-
When using an _asterisk_, a param named `pathMatch` is automatically added to `$route.params`. It contains the rest of the url matched by the _asterisk_:
86+
_アスタリスク_ を使用するときは、 `pathMatch` と名付けられたパラメータは、自動的に `$route.params` に追加されます。_アスタリスク_ によってマッチされた url の残りを含みます:
8787

8888
```js
89-
// Given a route { path: '/user-*' }
89+
// 与えられた { path: '/user-*' } ルート
9090
this.$router.push('/user-admin')
9191
this.$route.params.pathMatch // 'admin'
92-
// Given a route { path: '*' }
92+
// 与えられた { path: '*' } ルート
9393
this.$router.push('/non-existing')
9494
this.$route.params.pathMatch // '/non-existing'
9595
```

0 commit comments

Comments
 (0)
0