Skip to content

Commit 128cd5e

Browse files
doc: Tutorial kit/ $app/state 翻訳 (#59)
1 parent eda3df2 commit 128cd5e

File tree

3 files changed

+8
-8
lines changed
  • apps/svelte.dev/content/tutorial/03-sveltekit/08-app-state

3 files changed

+8
-8
lines changed

apps/svelte.dev/content/tutorial/03-sveltekit/08-app-state/01-page-state/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@ SvelteKit では、3つの読み取り専用 state オブジェクトを `$app/s
3535
{@render children()}
3636
```
3737

38-
> [!NOTE] Prior to SvelteKit 2.12, you had to use `$app/stores` for this, which provides a `$page` store with the same information. If you're currently using `$app/stores`, we advise you to migrate towards `$app/state` (requires Svelte 5).
38+
> [!NOTE] SvelteKit 2.12より前は、`$app/stores` が提供する `$page` storeが同じ役割を担っていました。いま `$app/stores` を使っている場合は、 `$app/state` への移行をおすすめします。(Svelte 5が必要です。)

apps/svelte.dev/content/tutorial/03-sveltekit/08-app-state/02-navigating-state/index.md

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

5-
The `navigating` object represents the current navigation. When a navigation starts — because of a link click, or a back/forward navigation, or a programmatic `goto` — the value of `navigating` will become an object with the following properties:
5+
`navigating`オブジェクトは、現在のナビゲーションを表します。リンクのクリック、戻る/進むナビゲーション、またはプログラムによる `goto` の呼び出しによってナビゲーションが開始されると、 `navigating` の値は以下のプロパティを持つオブジェクトになります。
66

7-
- `from` and `to`objects with `params`, `route` and `url` properties
8-
- `type`the type of navigation, e.g. `link`, `popstate` or `goto`
7+
- `from` `to``params` `route` `url` プロパティを持つオブジェクト
8+
- `type`ナビゲーションのタイプ。 例: `link`, `popstate` `goto`
99

10-
> [!NOTE] For complete type information visit the [`Navigation`](/docs/kit/@sveltejs-kit#Navigation) documentation.
10+
> [!NOTE] 型の完全な情報は、 [`Navigation`](/docs/kit/@sveltejs-kit#Navigation) ドキュメントにあります。
1111
12-
It can be used to show a loading indicator for long-running navigations. In this exercise, `src/routes/+page.server.js` and `src/routes/about/+page.server.js` both have an artificial delay. Inside `src/routes/+layout.svelte`, import the `navigating` object and add a message to the nav bar:
12+
これは、時間のかかるナビゲーション中にローディングインジケーターを表示するために使えます。この演習では、 `src/routes/+page.server.js` `src/routes/about/+page.server.js` にわざと遅延が設定されています。 `src/routes/+layout.svelte``navigating` オブジェクトをインポートし、ナビゲーションバーにメッセージを追加してください。
1313

1414
```svelte
1515
/// file: src/routes/+layout.svelte
@@ -36,4 +36,4 @@ It can be used to show a loading indicator for long-running navigations. In this
3636
{@render children()}
3737
```
3838

39-
> [!NOTE] Prior to SvelteKit 2.12, you had to use `$app/stores` for this, which provides a `$navigating` store with the same information. If you're currently using `$app/stores`, we advise you to migrate towards `$app/state` (requires Svelte 5).
39+
> [!NOTE] SvelteKit 2.12より前は、`$app/stores` が提供する `$navigating` storeが同じ役割を担っていました。いま `$app/stores` を使っている場合は、 `$app/state` への移行をおすすめします。(Svelte 5が必要です。)

apps/svelte.dev/content/tutorial/03-sveltekit/08-app-state/03-updated-state/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ title: updated
3131
+++{/if}+++
3232
```
3333

34-
> [!NOTE] Prior to SvelteKit 2.12, you had to use `$app/stores` for this, which provides an `$updated` store with the same information. If you're currently using `$app/stores`, we advise you to migrate towards `$app/state` (requires Svelte 5).
34+
> [!NOTE] SvelteKit 2.12より前は、`$app/stores` が提供する `$updated` storeが同じ役割を担っていました。いま `$app/stores` を使っている場合は、 `$app/state` への移行をおすすめします。(Svelte 5が必要です。)

0 commit comments

Comments
 (0)