Skip to content

Commit ddb7f4c

Browse files
committed
translate 02-sveltekit/02-routing/01-pages into Japanese
1 parent 33a9091 commit ddb7f4c

File tree

1 file changed

+6
-6
lines changed
  • content/tutorial/02-sveltekit/02-routing/01-pages

1 file changed

+6
-6
lines changed

content/tutorial/02-sveltekit/02-routing/01-pages/README.md

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

5-
SvelteKit uses filesystem-based routing, which means that the _routes_ of your app — in other words, what the app should do when a user navigates to a particular URL — are defined by the directories in your codebase.
5+
SvelteKit はファイルシステムベースのルーティングを採用しており、アプリの _ルート(routes)_ (言い換えると、ユーザーが特定の URL に移動したときにアプリがすべきこと) については、コードベースのディレクトリで定義します。
66

7-
The routes are located within `src/routes`. Every directory within which contains a `+page.svelte` file creates a route in your app.
7+
ルート(routes)は `src/routes` の中に置きます。`+page.svelte` ファイルを含む全てのディレクトリが、アプリのルート(routes)となります。
88

9-
In this app we currently have one route`src/routes/+page.svelte`, which maps to `/`.
9+
このアプリには、現在はルート(route)が1つだけあります。それは `src/routes/+page.svelte` で、`/` にマップされています。
1010

11-
Let's add a second route, `src/routes/about/+page.svelte`, which maps to `/about`:
11+
2つ目のルート(route)として、`src/routes/about/+page.svelte` を追加してみましょう。これは `/about` にマップされます。
1212

1313
```svelte
1414
/// file: src/routes/about/+page.svelte
@@ -21,6 +21,6 @@ Let's add a second route, `src/routes/about/+page.svelte`, which maps to `/about
2121
<p>this is the about page.</p>
2222
```
2323

24-
We can now navigate between `/` and `/about`.
24+
これによって `/` `/about` の間を移動できるようになりました。
2525

26-
> Unlike traditional multi-page apps, navigating to `/about` and back updates the contents of the current page, like a single-page app. This gives us the best of both worlds — fast server-rendered startup, then instant navigation. (This behaviour can be [configured](https://kit.svelte.dev/docs/page-options).)
26+
> 従来のマルチページアプリとは違い、`/about` に移動してから戻ると、シングルページアプリのように現在のページのコンテンツが更新されます。これにより、サーバーレンダリングによるスタートアップと、瞬時のナビゲーションという、両方の長所を得ることができます。(この動作は[設定で変更できます](https://kit.svelte.jp/docs/page-options))

0 commit comments

Comments
 (0)