Skip to content

Commit e939feb

Browse files
authored
Merge pull request #1 from tomoam/translate-site-into-japanese
日本語翻訳準備
2 parents a135717 + 48bef32 commit e939feb

File tree

5 files changed

+42
-42
lines changed

5 files changed

+42
-42
lines changed
Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
11
---
2-
title: Welcome to Svelte
2+
title: Svelte にようこそ
33
---
44

5-
Welcome to the Svelte tutorial! This will teach you everything you need to know to easily build fast, small web applications.
5+
Svelte チュートリアルにようこそ! ここでは、高速で小さい Web アプリケーションを簡単に構築するために必要なこと全てを学ぶことができます。(訳注: 「小さい」はバンドルサイズを指しており、作成する Web アプリケーションの規模のことではありません。)
66

7-
You can also consult the [API docs](https://svelte.dev/docs) and the [examples](https://svelte.dev/examples), or — if you're impatient to start hacking on your machine locally — create a project with `npm init svelte`.
7+
[API ドキュメント](https://svelte.jp/docs) [examples](https://svelte.dev/examples) を参照することもできます。また、すぐにローカルで動かしたい場合は、`npm init svelte` を実行してプロジェクトを作成してください。
88

9-
## What is Svelte?
9+
## Svelte とは?
1010

11-
Svelte is a tool for building web applications. Like other user interface frameworks, it allows you to build your app _declaratively_ out of components that combine markup, styles and behaviours.
11+
Svelte は、web アプリケーションを構築するためのツールです。他のユーザーインターフェースフレームワークと同様、マークアップ(markup)、スタイル(styles)、振る舞い(behaviours) を組み合わせたコンポーネントでアプリを _宣言的(declaratively)_ に構築することができます。
1212

13-
These components are _compiled_ into small, efficient JavaScript modules that eliminate overhead traditionally associated with UI frameworks.
13+
これらのコンポーネントは小さくて効率的な JavaScript モジュールに _コンパイル_ されるため、従来の UI フレームワークには付き物だったオーバーヘッドがありません。
1414

15-
You can build your entire app with Svelte (for example, using an application framework like [SvelteKit](https://kit.svelte.dev)), or you can add it incrementally to an existing codebase. You can also ship components as standalone packages that work anywhere.
15+
アプリ全体を Svelte で作ることもできますし (例えば [SvelteKit](https://kit.svelte.jp) のようなアプリケーションフレームワークを使用)、既存のコードベースに部分的/段階的に追加することもできます。また、どんな場所でも機能するスタンドアロンパッケージとしてコンポーネントを配布することもできます。
1616

17-
## How to use this tutorial
17+
## このチュートリアルの使い方
1818

19-
> You'll need to have basic familiarity with HTML, CSS and JavaScript to understand Svelte.
19+
> Svelte を理解するには、HTMLCSSJavaScript の基本的な知識が必要です。
2020
21-
This tutorial is split into four main parts:
21+
このチュートリアルは大きく4つのパートに分かれています:
2222

23-
- [Welcome to Svelte](/tutorial/welcome-to-svelte) (you are here)
23+
- [Svelte にようこそ](/tutorial/welcome-to-svelte) (現在はこちらです)
2424
- [Introduction to SvelteKit](/tutorial/introducing-sveltekit)
2525
- [Advanced Svelte](/tutorial/tweens)
2626
- [Advanced SvelteKit](/tutorial/optional-params)
2727

28-
Each section will present an exercise designed to illustrate a feature. Later exercises build on the knowledge gained in earlier ones, so it's recommended that you go from start to finish. If necessary, you can navigate via the menu above.
28+
各セクションには、機能を解説するために作られた練習問題があります。後のセクションの練習問題は、それより前のセクションの練習問題で得た知識を土台として作られているので、最初から最後まで通しで学習することをおすすめします。必要に応じて、上部のメニューから移動することができます。
2929

30-
If you get stuck, you can click the `solve` button to the left of the editor. (It's disabled on sections like this one that don't include an exercise.) Try not to rely on it too much; you will learn faster by figuring out where to put each suggested code block and manually typing it in to the editor.
30+
行き詰まったら、エディタの左にある `正解を見る` ボタンをクリックすることもできます。(ここのように練習問題がないセクションでは無効化されています。) ただし、これに頼りすぎないようにしてください。提示されたコードブロックをどこに配置するか自分で考え、エディタに手入力することで、より早く学習することができます。
Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
---
2-
title: What is SvelteKit?
2+
title: SvelteKit とは?
33
---
44

5-
SvelteKit is a framework for building extremely high-performance web apps. Whereas Svelte is a _component framework_, SvelteKit is an _app framework_ (or 'metaframework', depending on who you ask) that solves the tricky problems of building something production-ready:
5+
SvelteKit は非常にハイパフォーマンスな web アプリを開発するためのフレームワークです。Svelte _コンポーネントフレームワーク_ であるのに対し、SvelteKit _アプリケーションフレームワーク_ であり (または、'metaframework' と呼ぶ人もいます)、プロダクションレディ(production-ready)なものを開発する際のややこしい問題を解決します:
66

7-
- Routing
8-
- Server-side rendering
9-
- Data fetching
7+
- ルーティング
8+
- サーバーサイドレンダリング
9+
- データ取得
1010
- Service workers
11-
- TypeScript integration
12-
- Prerendering
13-
- Single-page apps
14-
- Library packaging
15-
- Optimised production builds
16-
- Deploying to different hosting providers
17-
- ...and so on
11+
- TypeScript インテグレーション
12+
- プリレンダリング
13+
- シングルページアプリ
14+
- ライブラリのパッケージング
15+
- プロダクション向けビルドの最適化
16+
- 様々なホスティングプロバイダーへのデプロイ
17+
- ...などなど
1818

19-
SvelteKit apps are server-rendered by default (like traditional 'multi-page apps' or MPAs) for excellent first load performance and SEO characteristics, but can then transition to client-side navigation (like modern 'single-page apps' or SPAs) to avoid jankily reloading everything (including things like third-party analytics code) when the user navigates. They can run anywhere JavaScript runs, though — as we'll see — your users may not need to run any JavaScript at all.
19+
SvelteKit アプリはデフォルトでは (従来の 'マルチページアプリ'、MPA のように) サーバーでレンダリングを行うため、優れた初期ロードパフォーマンスと SEO 特性を備えており、初回のロードのあとは (モダンな 'シングルページアプリ'、SPA のような) クライアントサイドナビゲーションに移行するため、ユーザーが移動する際の不愉快なフルリロードを回避することができます (サードパーティーの analytics コードを含む)。JavaScript が動作する場所ならどこでも実行できます。ただ、後ほど説明しますが、あなたのユーザーは JavaScript を実行する必要が無いかもしれません。
2020

21-
If that sounds complicated, worry not: SvelteKit is the framework that grows with you! Start simple and add new features as they come. This tutorial will go over the core concepts, while the [Advanced SvelteKit](/tutorial/handle) tutorial teaches you how to tackle more complex use cases.
21+
複雑そうに聞こえるかもしれませんが、ご心配なく。SvelteKit はあなたとともに成長するフレームワークです! シンプルに始めてみて、必要に応じて新しい機能を使っていきましょう。このチュートリアルではコアコンセプトを解説し、[Advanced SvelteKit](/tutorial/handle) チュートリアルではより複雑なユースケースに取り組む方法を教えます。

src/routes/+layout.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
<Nav {page} logo="/svelte-logo.svg">
2222
<svelte:fragment slot="nav-center">
23-
<strong class="large">Work in progress. Here be dragons!</strong>
23+
<strong class="large">開発中です。バグがある可能性があります!</strong>
2424
<!-- <NavItem href="/tutorial">Tutorial</NavItem>
2525
<NavItem href="/docs">Docs</NavItem>
2626
<NavItem href="/examples">Examples</NavItem>
@@ -30,7 +30,7 @@
3030
</svelte:fragment>
3131

3232
<svelte:fragment slot="nav-right">
33-
<NavItem external="https://kit.svelte.dev">SvelteKit</NavItem>
33+
<NavItem external="https://kit.svelte.jp">SvelteKit</NavItem>
3434

3535
<NavItem external="https://svelte.dev/chat" title="Discord Chat">
3636
<span class="small">Discord</span>

src/routes/tutorial/[slug]/+page.svelte

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -312,14 +312,14 @@
312312
<meta name="twitter:card" content="summary" />
313313
<meta name="twitter:site" content="@sveltejs" />
314314
<meta name="twitter:creator" content="@sveltejs" />
315-
<meta name="twitter:image" content="https://svelte.dev/images/twitter-thumbnail.jpg" />
316-
<meta property="twitter:domain" content="learn.svelte.dev" />
317-
<meta property="twitter:url" content="https://learn.svelte.dev" />
315+
<meta name="twitter:image" content="https://svelte.jp/images/twitter-thumbnail.jpg" />
316+
<meta property="twitter:domain" content="learn.svelte.jp" />
317+
<meta property="twitter:url" content="https://learn.svelte.jp" />
318318
319319
<meta property="og:title" content="{data.exercise.title} • Svelte Tutorial" />
320-
<meta property="og:url" content="https://learn.svelte.dev" />
320+
<meta property="og:url" content="https://learn.svelte.jp" />
321321
<meta property="og:type" content="website" />
322-
<meta property="og:image" content="https://svelte.dev/images/twitter-thumbnail.jpg" />
322+
<meta property="og:image" content="https://svelte.jp/images/twitter-thumbnail.jpg" />
323323
</svelte:head>
324324
325325
<ContextMenu />
@@ -379,9 +379,9 @@
379379
}}
380380
>
381381
{#if completed && Object.keys(data.exercise.b).length > 0}
382-
reset
382+
リセット
383383
{:else}
384-
solve <Icon name="arrow-right" />
384+
正解を見る <Icon name="arrow-right" />
385385
{/if}
386386
</button>
387387
</section>

src/routes/tutorial/[slug]/Sidebar.svelte

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
1313
const dispatch = createEventDispatcher();
1414
15-
const namespace = 'learn.svelte.dev';
15+
const namespace = 'learn.svelte.jp';
1616
const copy_enabled = `${namespace}:copy_enabled`;
1717
1818
/** @type {HTMLElement} */
@@ -77,7 +77,7 @@
7777
target="_blank"
7878
rel="noreferrer"
7979
class="edit"
80-
href="https://github.com/sveltejs/learn.svelte.dev/tree/main/{exercise.dir}"
80+
href="https://github.com/svelte-jp/learn.svelte.dev/tree/main/{exercise.dir}"
8181
>
8282
Edit this page
8383
</a>
@@ -86,11 +86,11 @@
8686
{#if show_modal}
8787
<Modal on:close={() => (show_modal = false)}>
8888
<div class="modal-contents">
89-
<h2>Copy and paste is currently disabled!</h2>
89+
<h2>コピー&ペーストは現在無効です!</h2>
9090

9191
<p>
92-
We recommend typing the code into the editor to complete the exercise, as this results in
93-
better retention and understanding.
92+
練習問題を完了する上で、コードをエディタに手入力することをおすすめします。
93+
これによって理解が深まり記憶に定着します。
9494
</p>
9595
<label>
9696
<input
@@ -99,7 +99,7 @@
9999
sessionStorage[copy_enabled] = e.currentTarget.checked ? 'true' : '';
100100
}}
101101
/>
102-
enable copy-and-paste for the duration of this session
102+
このセッションの間、コピー&ペーストを有効にする
103103
</label>
104104

105105
<button on:click={() => (show_modal = false)}>OK</button>

0 commit comments

Comments
 (0)