Skip to content

Commit 623e6f1

Browse files
committed
Revert "translate api/before-each.md"
1 parent 7a496ac commit 623e6f1

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/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-
全ての route トランジションが開始する前に呼ばれるグローバルビフォーフック (global before hook) を設定します。これは、トランジションパイプライン全体の前で、もし、フックがトランジションで拒否する場合、パイプラインは本当に開始されません。
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.
44

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

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

99
- `hook {Function}`
1010

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

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

15-
基本
15+
Basic
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-
// true または false で解決する Promise を返します
32+
// return a Promise that resolves to true or false
3333
return AuthService.isLoggedIn()
3434
} else {
3535
next()

0 commit comments

Comments
 (0)