Skip to content

Commit a52cc85

Browse files
committed
translate 02-sveltekit/06-errors-and-redirects/04-redirects into Japanese
1 parent 273b120 commit a52cc85

File tree

1 file changed

+8
-8
lines changed
  • content/tutorial/02-sveltekit/06-errors-and-redirects/04-redirects

1 file changed

+8
-8
lines changed

content/tutorial/02-sveltekit/06-errors-and-redirects/04-redirects/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
title: Redirects
33
---
44

5-
We can also use the `throw` mechanism to redirect from one page to another.
5+
`throw` のメカニズムを、あるページから別のページにリダイレクトするのにも使えます。
66

7-
Create a new `load` function in `src/routes/a/+page.server.js`:
7+
`load` 関数を `src/routes/a/+page.server.js` に作成してください。
88

99
```js
1010
/// file: src/routes/a/+page.server.js
@@ -15,12 +15,12 @@ export function load() {
1515
}
1616
```
1717

18-
Navigating to `/a` will now take us straight to `/b`.
18+
`/a` に移動しようとすると、`/b` に直行するようになります。
1919

20-
You can `throw redirect(...)` inside `load` functions, form actions, API routes and the `handle` hook, which we'll discuss in a later chapter.
20+
`throw redirect(...)` は、`load` 関数、form actionsAPI ルート、そして後の章で説明する `handle` hook の内側で使うことができます。
2121

22-
The most common status codes you'll use:
22+
よく使用されるステータスコードはこちらです。
2323

24-
- `303`for form actions, following a successful submission
25-
- `307`for temporary redirects
26-
- `308`for permanent redirects
24+
- `303` — form actions で、送信に成功したあと続いて使用されます
25+
- `307`一時的なリダイレクトに使用されます
26+
- `308`恒久的なリダイレクトに使用されます

0 commit comments

Comments
 (0)