From f1a9f4204068debb5a5ec3beeffce63a982ba8a8 Mon Sep 17 00:00:00 2001 From: tomoam <29677552+tomoam@users.noreply.github.com> Date: Wed, 23 Oct 2024 22:53:44 +0900 Subject: [PATCH 01/24] Analysing for translation (#1) * analysis for translation * some css --- .../blog/2024-10-22-svelte-5-is-alive.md | 10 +++---- .../kit/10-getting-started/10-introduction.md | 10 +++---- .../svelte/01-introduction/01-overview.md | 12 ++++---- .../01-welcome-to-svelte/index.md | 4 +-- apps/svelte.dev/src/app.html | 2 +- apps/svelte.dev/src/routes/+page.svelte | 2 +- .../src/routes/_home/Community.svelte | 7 ++--- .../src/routes/_home/Companies.svelte | 2 +- apps/svelte.dev/src/routes/_home/Hero.svelte | 2 +- .../src/routes/_home/Supporters/index.svelte | 6 ++-- .../src/routes/_home/Testimonials.svelte | 16 +++++----- apps/svelte.dev/src/routes/docs/+page.svelte | 30 +++++++++---------- .../routes/tutorial/[...slug]/Sidebar.svelte | 2 +- .../site-kit/src/lib/components/Text.svelte | 14 ++++++++- packages/site-kit/src/lib/styles/base.css | 3 ++ packages/site-kit/src/lib/styles/tokens.css | 2 ++ 16 files changed, 71 insertions(+), 53 deletions(-) diff --git a/apps/svelte.dev/content/blog/2024-10-22-svelte-5-is-alive.md b/apps/svelte.dev/content/blog/2024-10-22-svelte-5-is-alive.md index e87439096d..41115591f7 100644 --- a/apps/svelte.dev/content/blog/2024-10-22-svelte-5-is-alive.md +++ b/apps/svelte.dev/content/blog/2024-10-22-svelte-5-is-alive.md @@ -1,15 +1,15 @@ --- -title: Svelte 5 is alive -description: Our biggest release yet +title: Svelte 5 誕生 +description: 最も大きなリリース author: The Svelte team authorURL: https://svelte.dev/ --- -After almost 18 months of development, comprising thousands of commits from dozens of contributors, Svelte 5 is finally stable. +およそ18ヶ月の開発を経て、そしてたくさんのコントリビューターによる数千ものコミットによって、ついに Svelte 5 は安定版(stable)になりました。 -It’s the most significant release in the project’s history. Svelte 5 is a ground-up rewrite: your apps will be faster, smaller and more reliable. You’ll be able to write more consistent and idiomatic code. For newcomers to the framework, there’s less stuff to learn. +このプロジェクトの歴史上、最も重要なリリースとなります。Svelte 5 は根本から書き直されました: あなたのアプリはより高速に、よりサイズが小さく、そしてより信頼性が高くなります。あなたはより一貫性があり、よりイディオマティックなコードを書くことができます。Svelte を使用したことがない方からすると、学ぶべきことがより少なくなりました。 -Despite all that, Svelte is almost completely backwards-compatible with Svelte 4 — for the majority of users, the initial upgrade will be completely seamless: +それにもかかわらず、Svelte はほぼ完全に Svelte 4 と後方互換性があります。ユーザーの多くは、最初のアップグレードを完全にシームレスに行うことができるでしょう: ```json { diff --git a/apps/svelte.dev/content/docs/kit/10-getting-started/10-introduction.md b/apps/svelte.dev/content/docs/kit/10-getting-started/10-introduction.md index 52e2eab278..841bba219b 100644 --- a/apps/svelte.dev/content/docs/kit/10-getting-started/10-introduction.md +++ b/apps/svelte.dev/content/docs/kit/10-getting-started/10-introduction.md @@ -1,18 +1,18 @@ --- -title: Introduction +title: イントロダクション --- ## Before we begin -> [!NOTE] If you're new to Svelte or SvelteKit we recommend checking out the [interactive tutorial](https://learn.svelte.dev). +> [!NOTE] Svelte や SvelteKit が初めてなら、こちらの[インタラクティブなチュートリアル](/tutorial)をチェックしてみることをおすすめします。 > -> If you get stuck, reach out for help in the [Discord chatroom](https://svelte.dev/chat). +> 行き詰まったら、[Discord chatroom](https://svelte.dev/chat) でヘルプを求めてください。 ## What is SvelteKit? -SvelteKit is a framework for rapidly developing robust, performant web applications using [Svelte](https://svelte.dev/). If you're coming from React, SvelteKit is similar to Next. If you're coming from Vue, SvelteKit is similar to Nuxt. +SvelteKit は、[Svelte](https://svelte.dev/) を使用して堅牢でハイパフォーマンスな web アプリケーションを迅速に開発するためのフレームワークです。もしあなたが React 界隈から来たのであれば、SvelteKit は Next に似ているものです。Vue 界隈から来たのであれば、Nuxt に似ています。 -To learn more about the kinds of applications you can build with SvelteKit, see the [FAQ](faq#What-can-I-make-with-SvelteKit). +SvelteKit で構築することのできるアプリケーションの種類については、[FAQ](faq#What-can-I-make-with-SvelteKit) をご覧ください。 ## What is Svelte? diff --git a/apps/svelte.dev/content/docs/svelte/01-introduction/01-overview.md b/apps/svelte.dev/content/docs/svelte/01-introduction/01-overview.md index 5acbe4897b..94410e0e84 100644 --- a/apps/svelte.dev/content/docs/svelte/01-introduction/01-overview.md +++ b/apps/svelte.dev/content/docs/svelte/01-introduction/01-overview.md @@ -1,8 +1,8 @@ --- -title: Overview +title: 概要 --- -Svelte is a framework for building user interfaces on the web. It uses a compiler to turn declarative components written in HTML, CSS and JavaScript... +Svelte は Web 上のユーザーインターフェースを構築するためのフレームワークです。Svelte はコンパイラを使用し、HTML、CSS、JavaScript で記述された宣言的なコンポーネントを... ```svelte @@ -21,10 +21,10 @@ Svelte is a framework for building user interfaces on the web. It uses a compile ``` -...into lean, tightly optimized JavaScript. +...無駄のない、タイトで最適化された JavaScript に変換します。 -You can use it to build anything on the web, from standalone components to ambitious full stack apps (using Svelte's companion application framework, [SvelteKit](../kit)) and everything in between. +これにより、スタンドアローンなコンポーネントからフルスタックアプリ (Svelte のアプリケーションフレームワークである [SvelteKit](../kit) を使用) まで、お望みのものをなんでも構築することができます。 -These pages serve as reference documentation. If you're new to Svelte, we recommend starting with the [interactive tutorial](/tutorial) and coming back here when you have questions. +こちらのページはリファレンスドキュメントとして提供されています。もしあなたが Svelte の初心者なら、先に[インタラクティブなチュートリアル](/tutorial)から始めて、わからないことがあるときにこちらに戻ってくることをおすすめします。 -You can also try Svelte online in the [playground](/playground) or, if you need a more fully-featured environment, on [StackBlitz](https://sveltekit.new). +また、[Playground](/playground) を使ってオンラインで Svelte を試すこともできますし、より高機能な環境が必要なら [StackBlitz](https://sveltekit.new) で試すこともできます。 diff --git a/apps/svelte.dev/content/tutorial/01-svelte/01-introduction/01-welcome-to-svelte/index.md b/apps/svelte.dev/content/tutorial/01-svelte/01-introduction/01-welcome-to-svelte/index.md index 07d0af3634..db4eb3958a 100644 --- a/apps/svelte.dev/content/tutorial/01-svelte/01-introduction/01-welcome-to-svelte/index.md +++ b/apps/svelte.dev/content/tutorial/01-svelte/01-introduction/01-welcome-to-svelte/index.md @@ -2,9 +2,9 @@ title: Welcome to Svelte --- -Welcome to the Svelte tutorial! This will teach you everything you need to know to easily build web applications of all sizes, with high performance and a small footprint. +Svelte チュートリアルにようこそ! ここでは、高速でフットプリントが小さい、あらゆるサイズの Web アプリケーションを簡単に構築するために必要なこと全てを学ぶことができます。 -You can also consult the [API docs](https://svelte.dev/docs) and visit the [playground](https://svelte.dev/playground), or — if you're impatient to start hacking on your machine locally — create a project with `npx sv create`. +[API ドキュメント](/docs) や [Playground](/playground) を参照することもできます。また、すぐにローカルで動かしたい場合は、`npx sv create` を実行してプロジェクトを作成してください。 ## What is Svelte? diff --git a/apps/svelte.dev/src/app.html b/apps/svelte.dev/src/app.html index ea62d87f86..cbd8f3b602 100644 --- a/apps/svelte.dev/src/app.html +++ b/apps/svelte.dev/src/app.html @@ -1,5 +1,5 @@ - +
diff --git a/apps/svelte.dev/src/routes/+page.svelte b/apps/svelte.dev/src/routes/+page.svelte index ef2cb2cf01..19314e385b 100644 --- a/apps/svelte.dev/src/routes/+page.svelte +++ b/apps/svelte.dev/src/routes/+page.svelte @@ -31,7 +31,7 @@- Our sister organisation, Svelte Society, organises - events around the globe. + 私たちの姉妹組織である Svelte Society は、世界中でイベントを運営しています。
-Find your chapter and join us in our Discord server.
+あなたが所属する支部を見つけに、Discord サーバーに参加しましょう。
- Backed by Vercel and countless donors, - developed by full-time and part-time maintainers, Svelte is here to stay. + Vercel と数え切れない貢献者による支援、 + そしてフルタイムまたはパートタイムのメンテナーによる開発のおかげで、Svelte はここに存在しています。
- Svelte is a UI framework that uses a compiler to let you write breathtakingly concise - components that do minimal work in the browser, using languages you already know — HTML, CSS - and JavaScript. It’s a love letter to web development. + Svelte はコンパイラを使用する UI フレームワークで、息を呑むほど簡潔にコンポーネントを記述でき、 + ブラウザで最小限の動作となるようにしてくれます。開発者には既知の言語である HTML、CSS、JavaScript を使うことができます。 + これは、web 開発へのラブレターです。
- But don’t take our word for it. Developers consistently rank Svelte as the framework they’re - most excited about using. + 私たちだけでなく、常に開発者たちからも、Svelte は使用する上で最もエキサイティングなフレームワークとしてランク付けされています。
- Head to the Svelte or SvelteKit reference docs,
- or choose your adventure:
+ Svelte または SvelteKit のリファレンスドキュメントに移動するか、
+
あなたに合った冒険を以下から選択してください:
` elements elsewhere in your app, as we'll see in the next step. +重要なのは、これらのスタイルがこのコンポーネントにのみ適用されるということです。次のステップで説明しますが、アプリの別の箇所の`
`要素のスタイルに影響を与えてしまうようなことはありません。
diff --git a/apps/svelte.dev/content/tutorial/01-svelte/01-introduction/05-nested-components/index.md b/apps/svelte.dev/content/tutorial/01-svelte/01-introduction/05-nested-components/index.md
index f18f8a20da..259902c733 100644
--- a/apps/svelte.dev/content/tutorial/01-svelte/01-introduction/05-nested-components/index.md
+++ b/apps/svelte.dev/content/tutorial/01-svelte/01-introduction/05-nested-components/index.md
@@ -2,9 +2,9 @@
title: Nested components
---
-It would be impractical to put your entire app in a single component. Instead, we can import components from other files and include them in our markup.
+アプリ全体を単一のコンポーネントにまとめるのは現実的ではありません。代わりに、他のファイルからコンポーネントをインポートし、マークアップでそれを使用することができます。
-Add a `+++
```
-...and include a `` element is empty and the npm link is broken.
+この演習では、`PackageInfo.svelte` が期待する `name` prop を指定し忘れているため、`
` 要素が空になり、npm link が壊れています。
-We _could_ fix it by adding the prop...
+以下のように prop を追加することで、これを修正できます…
```svelte
/// file: App.svelte
@@ -16,20 +16,20 @@ We _could_ fix it by adding the prop...
/>
```
-...but since the properties of `pkg` correspond to the component's expected props, we can 'spread' them onto the component instead:
+…ただ、`pkg` のプロパティはこのコンポーネントが期待する props と一致しているので、代わりに 'spread' 構文を使用することができます:
```svelte
/// file: App.svelte