Skip to content

Commit 3d5c965

Browse files
authored
Merge pull request #4 from tomoam/translate-01-svelte-01-introduction-04-styling-into-japanese
いくつかのチュートリアルを検証目的で翻訳
2 parents 5d1395c + fd17034 commit 3d5c965

File tree

2 files changed

+11
-11
lines changed
  • content/tutorial/02-sveltekit/01-concepts

2 files changed

+11
-11
lines changed

content/tutorial/02-sveltekit/01-concepts/02-project-structure/README.md

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

5-
On the right, in the file tree viewer, you'll see a handful of files that SvelteKit expects to find in a project.
5+
右にあるファイルツリービューアには、SvelteKit のプロジェクトに含まれているであろうファイルのうち一部が表示されています。
66

7-
`package.json` will be familiar if you've worked with Node.js before. It lists the project's dependencies — including `svelte` and `@sveltejs/kit` — and a variety of `scripts` for interacting with the SvelteKit CLI. (We're currently running `npm run dev` in the bottom window.)
7+
Node.js を使用したことがあるなら、`package.json` はおなじみでしょう。プロジェクトの依存関係 (`svelte` `@sveltejs/kit` を含む) と、SvelteKit CLI を操作するための様々な `scripts` がリストアップされています。(現在バックグラウンドで `npm run dev` が実行されています)
88

9-
> Note that it also specifies `"type": "module"`, which means that `.js` files are treated as native JavaScript modules by default, rather than the legacy CommonJS format.
9+
> `"type": "module"` が指定されていることにもご注意ください。つまり、`.js` ファイルはデフォルトで、レガシーな CommonJS フォーマットではなくネイティブの JavaScript モジュールとして扱われます。
1010
11-
`svelte.config.js` contains your project configuration. We don't need to worry about this file for now, but if you're curious, [visit the documentation](https://kit.svelte.dev/docs/configuration).
11+
`svelte.config.js` にはプロジェクトの設定が記述されています。今はこのファイルについて気にする必要はありませんが、もし興味があれば、[ドキュメントを参照してください](https://kit.svelte.jp/docs/configuration)
1212

13-
`src` is where your app's source code goes. `src/app.html` is your page template (SvelteKit replaces the `%sveltekit.head%` and `%sveltekit.body%` as appropriate), and `src/routes` defines the [routes](/tutorial/pages) of your app.
13+
`src` はアプリのソースコードを置く場所です。`src/app.html` はページのテンプレート (SvelteKit `%sveltekit.head%` `%sveltekit.body%` を適切に置き換えます) で、`src/routes` はアプリの [ルート(routes)](/tutorial/pages) を定義します。
1414

15-
Finally, `static` contains any assets (like a `favicon.png` or a `robots.txt`) that should be included when your app is deployed.
15+
最後に、`static` にはアプリをデプロイするときに含めるべきアセット (`favicon.png` `robots.txt` など) を置きます。

content/tutorial/02-sveltekit/01-concepts/03-server-and-client/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
title: Server and client
33
---
44

5-
A SvelteKit app can be thought of as two distinct entities working in tandem — the _server_ and the _client_.
5+
SvelteKit アプリは、2つの異なる存在が連携して動作していると考えることができます。つまりそれは _サーバー__クライアント_ です。
66

7-
'Server' is, perhaps, a confusing word since your app will often be running in a _serverless_ environment (cloud/edge functions) or might even be deployed as a set of completely static files. But it's the best we've got. The server's basic job is to turn a request into a response.
7+
'サーバー' は、もしかしたら混乱を招く言葉かもしれません。なぜなら、アプリが _サーバーレス(serverless)_ 環境 (cloud/edge functions) で実行されたり、完全に静的なファイルのセットとしてデプロイされたりするからです。しかし、これがベストな言葉です。サーバーの基本的な仕事は、リクエストをレスポンスに変換することです。
88

9-
'Client' refers to the JavaScript that loads in the browser.
9+
'クライアント' は、ブラウザに読み込まれる JavaScript を指します。
1010

11-
SvelteKit makes the two communicate with each other seamlessly. On the initial page load, the server renders the HTML, meaning content is visible as quickly as possible. The client then takes over in a process called 'hydration', so that subsequent navigations happen without full page reloads. It will request additional code and data from the server as needed.
11+
SvelteKit はこの2つをお互いにシームレスに通信させるようにします。最初のページロードでは、サーバーが HTML をレンダリングし、コンテンツを可能な限り早く表示させます。その後、'ハイドレーション(hydration)' と呼ばれるプロセスでクライアントが引き継ぐため、以降のナビゲーションではページをフルで再読み込みすることはありません。クライアントは、必要に応じて追加のコードやデータをサーバーにリクエストします。
1212

13-
> You can [adjust this behavior](https://kit.svelte.dev/docs/page-options) as needed. SvelteKit is very versatile!
13+
> 必要に応じて [この動作を調整](https://kit.svelte.jp/docs/page-options) することができます。SvelteKit は非常に多機能です!

0 commit comments

Comments
 (0)