Skip to content

Commit 273b120

Browse files
committed
translate 02-sveltekit/06-errors-and-redirects/03-fallback-errors into Japanese
1 parent c6aef78 commit 273b120

File tree

1 file changed

+6
-6
lines changed
  • content/tutorial/02-sveltekit/06-errors-and-redirects/03-fallback-errors

1 file changed

+6
-6
lines changed

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

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

5-
If things go _really_ wrong — an error occurs while loading the root layout data, or while rendering the error page — SvelteKit will fall back to a static error page.
5+
もし _深刻な_ 問題が発生した場合 — 例えば最上位(root)のレイアウトでデータをロードしているときや、エラーページのレンダリング中にエラーが発生した場合 — SvelteKit は静的なエラーページにフォールバックします。
66

7-
Add a new `src/routes/+layout.server.js` file to see this in action:
7+
`src/routes/+layout.server.js` ファイルを追加して、これを実際に確認してみましょう。
88

99
```js
1010
/// file: src/routes/+layout.server.js
@@ -13,7 +13,7 @@ export function load() {
1313
}
1414
```
1515

16-
You can customise the fallback error page. Create a `src/error.html` file:
16+
フォールバックエラーページをカスタマイズすることができます。`src/error.html` ファイルを作成しましょう。
1717

1818
```html
1919
/// file: src/error.html
@@ -35,7 +35,7 @@ You can customise the fallback error page. Create a `src/error.html` file:
3535
</html>
3636
```
3737

38-
This file can include the following:
38+
このファイルは以下の項目を含めることができます。
3939

40-
- `%sveltekit.status%`the HTTP status code
41-
- `%sveltekit.error.message%`the error message
40+
- `%sveltekit.status%` — HTTP ステータスコード
41+
- `%sveltekit.error.message%`エラーメッセージ

0 commit comments

Comments
 (0)