Skip to content

Commit 66bab28

Browse files
committed
translate api/before-each.md
1 parent 623e6f1 commit 66bab28

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/ja/api/before-each.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
# `router.beforeEach(hook)`
22

3-
Set the global before hook, which will be called before every route transition starts. This is before the entire transition pipeline; if the hook rejects the transition, the pipeline won't even be started.
3+
全ての route トランジションが開始する前に呼ばれるグローバルビフォーフック (global before hook) を設定します。これは、トランジションパイプライン全体の前で、もし、フックがトランジションで拒否する場合、パイプラインは本当に開始されません。
44

5-
Note you can only have one global before hook at a time; however you can implement your own middleware system inside this hook.
5+
一度フックする前の唯一のグローバルであることに注意してください。しかしながら、このフック内部であなた自身のミドルウェアシステムを実装することができます。
66

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

99
- `hook {Function}`
1010

11-
The hook function receives a single argument which is a [Transition Object](../pipeline/hooks.html#transition-object).
11+
hook 関数は[トランジションオブジェクト](../pipeline/hooks.html#transition-object)な単一の引数を受信します。
1212

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

15-
Basic
15+
基本
1616

1717
``` js
1818
router.beforeEach(function (transition) {
@@ -29,7 +29,7 @@ Promise + ES6
2929
``` js
3030
router.beforeEach(function ({ to, next }) {
3131
if (to.path === '/auth-required') {
32-
// return a Promise that resolves to true or false
32+
// true または false で解決する Promise を返します
3333
return AuthService.isLoggedIn()
3434
} else {
3535
next()

0 commit comments

Comments
 (0)