Skip to content

Commit dda4ad8

Browse files
committed
translate api/alias.md
1 parent 38a632a commit dda4ad8

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/ja/api/alias.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
# `router.alias(aliasMap)`
22

3-
Configures global alias rules for the router. The difference between alias and redirect is that instead of replacing the `fromPath` with `toPath`, an alias will preserve `fromPath` while matching it as `toPath`.
3+
ルーターに対してグローバルエイリアスのルールを設定します。エイリアスとリダイレクトとの違いは、リダイレクトは `toPath``fromPath` を置換する代わり、エイリアスは `toPath` としてマッチしている限り、`fromPath` を維持します。
44

5-
For example, if we alias `/a` to `/a/b/c`, when we visit `/a`, the browser URL will display `/a`. However, the router will match the path as if we are visiting `/a/b/c` instead.
5+
例えば、`/a` `/a/b/c` にエイリアスする場合、`/a` にアクセスするとき、ブラウザ URL `/a` を表示します。しかしながら、ルーターは代わりに `/a/b/c` にアクセスするかのようなパスをマッチします。
66

7-
### Arguments
7+
### 引数
88

99
- `aliasMap {Object}`
1010

11-
The alias map object should be in the form of { fromPath: toPath, ... }. The paths can contain dynamic segments.
11+
エイリアスマップオブジェクトは `{ fromPath: toPath, ... }` の形にする必要があります。パスは動的セグメントを含むことができます。
1212

13-
### Example
13+
###
1414

1515
``` js
1616
router.alias({
1717

18-
// match /a as if it is /a/b/c
18+
// /a/b/c であるかのように /a にマッチします
1919
'/a': '/a/b/c',
2020

21-
// alias can contian dynamic segments
22-
// the dynamic segment names must match
21+
// エイリアスは動的セグメント名がマッチする必要がある
22+
// 動的セグメントを含むことができます
2323
'/user/:userId': '/user/profile/:userId'
2424
})
2525
```

0 commit comments

Comments
 (0)