Skip to content

Commit f1a9f42

Browse files
authored
Analysing for translation (#1)
* analysis for translation * some css
1 parent 0426805 commit f1a9f42

File tree

16 files changed

+71
-53
lines changed

16 files changed

+71
-53
lines changed

apps/svelte.dev/content/blog/2024-10-22-svelte-5-is-alive.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
---
2-
title: Svelte 5 is alive
3-
description: Our biggest release yet
2+
title: Svelte 5 誕生
3+
description: 最も大きなリリース
44
author: The Svelte team
55
authorURL: https://svelte.dev/
66
---
77

8-
After almost 18 months of development, comprising thousands of commits from dozens of contributors, Svelte 5 is finally stable.
8+
およそ18ヶ月の開発を経て、そしてたくさんのコントリビューターによる数千ものコミットによって、ついに Svelte 5 は安定版(stable)になりました。
99

10-
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.
10+
このプロジェクトの歴史上、最も重要なリリースとなります。Svelte 5 は根本から書き直されました: あなたのアプリはより高速に、よりサイズが小さく、そしてより信頼性が高くなります。あなたはより一貫性があり、よりイディオマティックなコードを書くことができます。Svelte を使用したことがない方からすると、学ぶべきことがより少なくなりました。
1111

12-
Despite all that, Svelte is almost completely backwards-compatible with Svelte 4 — for the majority of users, the initial upgrade will be completely seamless:
12+
それにもかかわらず、Svelte はほぼ完全に Svelte 4 と後方互換性があります。ユーザーの多くは、最初のアップグレードを完全にシームレスに行うことができるでしょう:
1313

1414
```json
1515
{

apps/svelte.dev/content/docs/kit/10-getting-started/10-introduction.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
---
2-
title: Introduction
2+
title: イントロダクション
33
---
44

55
## Before we begin
66

7-
> [!NOTE] If you're new to Svelte or SvelteKit we recommend checking out the [interactive tutorial](https://learn.svelte.dev).
7+
> [!NOTE] Svelte SvelteKit が初めてなら、こちらの[インタラクティブなチュートリアル](/tutorial)をチェックしてみることをおすすめします。
88
>
9-
> If you get stuck, reach out for help in the [Discord chatroom](https://svelte.dev/chat).
9+
> 行き詰まったら、[Discord chatroom](https://svelte.dev/chat) でヘルプを求めてください。
1010
1111
## What is SvelteKit?
1212

13-
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.
13+
SvelteKit は、[Svelte](https://svelte.dev/) を使用して堅牢でハイパフォーマンスな web アプリケーションを迅速に開発するためのフレームワークです。もしあなたが React 界隈から来たのであれば、SvelteKit Next に似ているものです。Vue 界隈から来たのであれば、Nuxt に似ています。
1414

15-
To learn more about the kinds of applications you can build with SvelteKit, see the [FAQ](faq#What-can-I-make-with-SvelteKit).
15+
SvelteKit で構築することのできるアプリケーションの種類については、[FAQ](faq#What-can-I-make-with-SvelteKit) をご覧ください。
1616

1717
## What is Svelte?
1818

apps/svelte.dev/content/docs/svelte/01-introduction/01-overview.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
2-
title: Overview
2+
title: 概要
33
---
44

5-
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...
5+
Svelte は Web 上のユーザーインターフェースを構築するためのフレームワークです。Svelte はコンパイラを使用し、HTMLCSSJavaScript で記述された宣言的なコンポーネントを...
66

77
```svelte
88
<!--- file: App.svelte --->
@@ -21,10 +21,10 @@ Svelte is a framework for building user interfaces on the web. It uses a compile
2121
</style>
2222
```
2323

24-
...into lean, tightly optimized JavaScript.
24+
...無駄のない、タイトで最適化された JavaScript に変換します。
2525

26-
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.
26+
これにより、スタンドアローンなコンポーネントからフルスタックアプリ (Svelte のアプリケーションフレームワークである [SvelteKit](../kit) を使用) まで、お望みのものをなんでも構築することができます。
2727

28-
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.
28+
こちらのページはリファレンスドキュメントとして提供されています。もしあなたが Svelte の初心者なら、先に[インタラクティブなチュートリアル](/tutorial)から始めて、わからないことがあるときにこちらに戻ってくることをおすすめします。
2929

30-
You can also try Svelte online in the [playground](/playground) or, if you need a more fully-featured environment, on [StackBlitz](https://sveltekit.new).
30+
また、[Playground](/playground) を使ってオンラインで Svelte を試すこともできますし、より高機能な環境が必要なら [StackBlitz](https://sveltekit.new) で試すこともできます。

apps/svelte.dev/content/tutorial/01-svelte/01-introduction/01-welcome-to-svelte/index.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
title: Welcome to Svelte
33
---
44

5-
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.
5+
Svelte チュートリアルにようこそ! ここでは、高速でフットプリントが小さい、あらゆるサイズの Web アプリケーションを簡単に構築するために必要なこと全てを学ぶことができます。
66

7-
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`.
7+
[API ドキュメント](/docs) [Playground](/playground) を参照することもできます。また、すぐにローカルで動かしたい場合は、`npx sv create` を実行してプロジェクトを作成してください。
88

99
## What is Svelte?
1010

apps/svelte.dev/src/app.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!doctype html>
2-
<html lang="en" class="theme-default typo-default">
2+
<html lang="ja" class="theme-default typo-default">
33
<head>
44
<meta charset="utf-8" />
55
<meta name="viewport" content="width=device-width,initial-scale=1" />

apps/svelte.dev/src/routes/+page.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<Video />
3232
<figcaption>
3333
<a href="https://www.offerzen.com/community/svelte-origins-documentary"
34-
>Watch the full Svelte Origins documentary</a
34+
>Svelte Origins ドキュメンタリーをフルで視聴する</a
3535
>
3636
</figcaption>
3737
</figure>

apps/svelte.dev/src/routes/_home/Community.svelte

+3-4
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@
33
</script>
44

55
<Section --max-width="200rem">
6-
<h2>join our friendly community</h2>
6+
<h2>私たちのフレンドリーなコミュニティに参加しませんか</h2>
77
<p>
8-
Our sister organisation, <a href="https://www.sveltesociety.dev/">Svelte Society</a>, organises
9-
events around the globe.
8+
私たちの姉妹組織である <a href="https://www.sveltesociety.dev/">Svelte Society</a> は、世界中でイベントを運営しています。
109
</p>
11-
<p>Find your chapter and join us in <a href="/chat">our Discord server</a>.</p>
10+
<p>あなたが所属する支部を見つけに、<a href="/chat">Discord サーバー</a>に参加しましょう。</p>
1211

1312
<figure>
1413
<enhanced:img

apps/svelte.dev/src/routes/_home/Companies.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<enhanced:img src="./companies/apple.svg" alt="Apple logo" />
99
</div>
1010
</div>
11-
<h2>used by companies you’ve heard of</h2>
11+
<h2>誰もが知っている企業でも使用されています</h2>
1212
<div class="wing">
1313
<div class="logos">
1414
<enhanced:img src="./companies/spotify.svg" alt="Spotify logo" />

apps/svelte.dev/src/routes/_home/Hero.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<div class="hero">
1010
<div class="hero-content">
1111
<h1>web development for the rest of us</h1>
12-
<a href="/docs" class="cta">get started <Icon name="arrow-right" /></a>
12+
<a href="/docs" class="cta">始める <Icon name="arrow-right" /></a>
1313
</div>
1414

1515
<picture class="machine">

apps/svelte.dev/src/routes/_home/Supporters/index.svelte

+4-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
</script>
1010

1111
<p class="intro">
12-
Backed by <a href="https://vercel.com" target="_blank" rel="noreferrer">Vercel</a> and countless donors,
13-
developed by full-time and part-time maintainers, Svelte is here to stay.
12+
<a href="https://vercel.com" target="_blank" rel="noreferrer">Vercel</a> と数え切れない貢献者による支援、
13+
そしてフルタイムまたはパートタイムのメンテナーによる開発のおかげで、Svelte はここに存在しています。
1414
</p>
1515

1616
<div class="wrapper">
@@ -51,6 +51,8 @@
5151
text-align: center;
5252
max-width: 27em;
5353
padding: 0 var(--sk-page-padding-side);
54+
font: var(--sk-font-body-small);
55+
word-break: auto-phrase;
5456
}
5557
5658
.layout {

apps/svelte.dev/src/routes/_home/Testimonials.svelte

+8-8
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,19 @@
77
/>
88

99
<span class="description">
10-
<span class="adjective"></span> attractively thin, graceful and stylish
10+
<span class="adjective"></span> 魅力的でスリム、優雅でスタイリッシュ
1111
</span>
1212
</p>
1313

1414
<div class="blurb">
1515
<p>
16-
Svelte is a UI framework that uses a compiler to let you write breathtakingly concise
17-
components that do minimal work in the browser, using languages you already know — HTML, CSS
18-
and JavaScript. <strong>It’s a love letter to web development.</strong>
16+
Svelte はコンパイラを使用する UI フレームワークで、息を呑むほど簡潔にコンポーネントを記述でき、
17+
ブラウザで最小限の動作となるようにしてくれます。開発者には既知の言語である HTMLCSS、JavaScript を使うことができます。
18+
<strong>これは、web 開発へのラブレターです。</strong>
1919
</p>
2020

2121
<p>
22-
But don’t take our word for it. Developers consistently rank Svelte as the framework they’re
23-
most excited about using.
22+
私たちだけでなく、常に開発者たちからも、Svelte は使用する上で最もエキサイティングなフレームワークとしてランク付けされています。
2423
</p>
2524
</div>
2625

@@ -149,6 +148,7 @@
149148
.description {
150149
position: relative;
151150
font: var(--sk-font-ui-medium);
151+
font-feature-settings: "palt";
152152
bottom: 0.2em;
153153
text-wrap: balance;
154154
width: 16rem;
@@ -182,7 +182,7 @@
182182
}
183183
184184
.adjective::after {
185-
content: 'adjective';
185+
content: '形容詞';
186186
}
187187
}
188188
}
@@ -191,7 +191,7 @@
191191
.outer {
192192
display: grid;
193193
margin: 4em auto;
194-
grid-template-columns: 1fr 1fr;
194+
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
195195
column-gap: 4rem;
196196
grid-template-areas:
197197
'definition definition'

apps/svelte.dev/src/routes/docs/+page.svelte

+15-15
Original file line numberDiff line numberDiff line change
@@ -57,42 +57,42 @@
5757
</script>
5858

5959
<div class="page">
60-
<h1>Documentation</h1>
60+
<h1>ドキュメント</h1>
6161
<p>
62-
Head to the <a href="/docs/svelte">Svelte</a> or <a href="/docs/kit">SvelteKit</a> reference docs,
63-
or choose your adventure:
62+
<a href="/docs/svelte">Svelte</a> または <a href="/docs/kit">SvelteKit</a> のリファレンスドキュメントに移動するか、
63+
<br/>あなたに合った冒険を以下から選択してください:
6464
</p>
6565

6666
<div class="options">
6767
<a href="/tutorial">
68-
<h2>I&rsquo;m brand new here</h2>
68+
<h2>初めての方</h2>
6969
<p>
70-
We recommend starting with the interactive tutorial, which will teach you how to use Svelte
71-
right here in your browser.
70+
インタラクティブなチュートリアルから始めることをおすすめします。
71+
今すぐブラウザで Svelte の使い方を学ぶことができます。
7272
</p>
7373
</a>
7474

7575
<a href="/docs/svelte/v5-migration-guide">
76-
<h2>I&rsquo;m migrating an app from Svelte 4</h2>
76+
<h2>アプリを Svelte 4 から移行される方</h2>
7777
<p>
78-
If you&rsquo;re already experienced with an older version of Svelte, the migration guide
79-
will bring you up to speed on the changes in Svelte 5.
78+
既に Svelte の旧バージョンをお使いの場合は、
79+
移行ガイドで Svelte 5 の変更点を迅速に把握することができます。
8080
</p>
8181
</a>
8282

8383
<a href="/playground">
84-
<h2>I just want to try it out</h2>
84+
<h2>とりあえず試してみたい方</h2>
8585
<p>
86-
Head over to the playground to see examples, create your own Svelte apps in the browser, and
87-
share them with other people.
86+
Playground に移動し、example を確認したり、Svelte アプリをブラウザ上で作ったり、
87+
それを他の人にシェアすることができます。
8888
</p>
8989
</a>
9090

9191
<a href="/chat" class="external">
92-
<h2>Help! I'm stuck</h2>
92+
<h2>助けて!行き詰まった!という方</h2>
9393
<p>
94-
Join our Discord server where you can hang out with fellow Svelte users and ask them
95-
questions. It's like an LLM but with people.
94+
私たちの Discord サーバーで他の Svelte ユーザーたちと一緒に過ごしたり、質問したりしましょう。
95+
まるで LLM のように思えるかもしれませんが、ちゃんと人間が答えてくれますよ。
9696
</p>
9797
</a>
9898
</div>

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
116116
.text {
117117
flex: 1 1 auto;
118-
padding: 2.2rem var(--sk-page-padding-side);
118+
padding: 2.2rem var(--sk-sidebar-padding-side);
119119
background: var(--sk-back-1);
120120
121121
:global {

packages/site-kit/src/lib/components/Text.svelte

+13-1
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,18 @@
7171
</div>
7272

7373
<style>
74+
75+
:global section > div > div > .text {
76+
77+
p {
78+
font-size: 1.9rem;
79+
}
80+
81+
code {
82+
font-size: initial;
83+
}
84+
}
85+
7486
.text :global {
7587
h2,
7688
h3 {
@@ -346,7 +358,7 @@
346358
}
347359
348360
@media (min-width: 768px) {
349-
left: 1.6rem;
361+
left: 2.4rem;
350362
opacity: 0;
351363
transition: opacity 0.2s;
352364

packages/site-kit/src/lib/styles/base.css

+3
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ p,
4545
ul,
4646
ol {
4747
font: var(--sk-font-body);
48+
font-feature-settings: "palt";
49+
word-break: auto-phrase;
4850
margin: 1em 0;
4951

5052
&:first-child {
@@ -84,6 +86,7 @@ h2,
8486
h3 {
8587
position: relative;
8688
text-wrap: balance;
89+
word-break: auto-phrase;
8790
color: var(--sk-text-1);
8891
}
8992

packages/site-kit/src/lib/styles/tokens.css

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
--sk-page-padding-top: 6rem;
1818
--sk-page-padding-bottom: 8rem;
1919
--sk-page-padding-side: 1.6rem;
20+
--sk-sidebar-padding-side: 1.6rem;
2021
--sk-thick-border-width: 0.3rem;
2122
--sk-border-radius: 0.4rem;
2223
--sk-page-content-width: 84rem;
@@ -180,6 +181,7 @@
180181
@media screen and (min-width: 480px) {
181182
:root {
182183
--sk-page-padding-side: 3.2rem;
184+
--sk-sidebar-padding-side: 2.4rem;
183185
}
184186
}
185187

0 commit comments

Comments
 (0)