Skip to content

i18n(ja): Update islands.mdx#2251

Merged
delucis merged 3 commits into
withastro:mainfrom
morinokami:i18n-ja-islands
Dec 29, 2022
Merged

i18n(ja): Update islands.mdx#2251
delucis merged 3 commits into
withastro:mainfrom
morinokami:i18n-ja-islands

Conversation

@morinokami
Copy link
Copy Markdown
Member

What kind of changes does this PR include?

  • New or updated content
  • Translated content

Description

  • Update islands.mdx.
  • Improve some existing translations.

@netlify
Copy link
Copy Markdown

netlify Bot commented Dec 29, 2022

Deploy Preview for astro-docs-2 ready!

Name Link
🔨 Latest commit 2743013
🔍 Latest deploy log https://app.netlify.com/sites/astro-docs-2/deploys/63ad556f71d01d000920a6a2
😎 Deploy Preview https://deploy-preview-2251--astro-docs-2.netlify.app/ja/concepts/islands
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@github-actions github-actions Bot added the i18n Anything to do with internationalization & translation efforts - ask @YanThomas for help! label Dec 29, 2022
Comment on lines -21 to +24
<Fragment slot="headerApp">ヘッダー(インタラクティブアイランド)</Fragment>
<Fragment slot="sidebarApp">サイドバー(静的HTML)</Fragment>
<Fragment slot="main">
テキスト、画像などの静的コンテンツ
</Fragment>
<Fragment slot="carouselApp">イメージカルーセル(インタラクティブアイランド)</Fragment>
<Fragment slot="footer">フッター(静的HTML)</Fragment>
<Fragment slot="source">出典:[Islands Architecture: Jason Miller](https://jasonformat.com/islands-architecture/)</Fragment>
<Fragment slot="headerApp">ヘッダー(インタラクティブアイランド)</Fragment>
<Fragment slot="sidebarApp">サイドバー(静的HTML)</Fragment>
<Fragment slot="main">
テキスト、画像などの静的コンテンツ
</Fragment>
<Fragment slot="carouselApp">イメージカルーセル(インタラクティブアイランド)</Fragment>
<Fragment slot="footer">フッター(静的HTML)</Fragment>
<Fragment slot="source">出典:[Islands Architecture: Jason Miller](https://jasonformat.com/islands-architecture/)</Fragment>
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#1776 に対応します(原文に対する実質的な変更は、これと #2133 における MDX への変更だけです。残りは既存翻訳の改善となります)。

Comment on lines -49 to +44
しかし、インタラクティブなUIを作成するためには、クライアントサイドのJavaScriptが必要になります。ページ全体をSPAのようなJavaScriptアプリケーションにするのではなく、Astroはアイランドを作成するように依頼します
しかし、インタラクティブなUIを作成するためには、クライアントサイドのJavaScriptが必要になります。Astroでは、ページ全体をSPAのようなJavaScriptアプリケーションにするのではなく、アイランドを作成します
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

原文は

But sometimes, client-side JavaScript is required for creating interactive UI. Instead of forcing your entire page to become an SPA-like JavaScript application, Astro asks you to create an island.

となります。訳文の最後が「Astroはアイランドを作成するように依頼します」となっているのですが、ここの意味が少し通りづらい(「誰に依頼する?」と読める)気がしたため、読みやすくなるよう変更してみました。

Comment on lines -61 to +56
Astroアイランドでは、サイトの大部分は純粋で軽量のHTMLとCSSのままです。上の例では、ページの残りの部分を変更することなく、単一の孤立した**島にインタラクティブ機能**を追加しただけです。

Astroアイランドにより、サイトの大部分は純粋で軽量なHTMLとCSSのままです。上の例では、ページの残りの部分を変更することなく、単一の独立した**インタラクティブなアイランド**を追加しただけです。
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With Astro Islands, the vast majority of your site remains pure, lightweight HTML and CSS. In the example above, you have just added a single, isolated island of interactivity without also changing the rest of the page.

が原文ですが、冒頭の With Astro Islands は「〜を用いると」というようなことだと思うので、「Astroアイランドでは」を「Astroアイランドにより」に修正しました。

また、第二文に関して、まず isolated の訳を「独立した」に変更しました。isolated というと「孤立」や「隔離」などの単語が確かに頭に浮かぶのですが、これらの日本語はなんとなくネガティブな感じがし、一方もとの意味は「他に影響を与えない」というポジティブな意味だと思われるため、「独立した」という語に変更してみました。また、island of interactivity に関して、ここでの island はいわゆる普通の意味での「島」ではないため、「アイランド」に修正しました。最後に、added の対象は island であると思われるため、of interactivity はもとの訳文のように意訳せず「インタラクティブな」と訳し、「アイランドを追加」となるようにています。

Comment on lines -66 to +60
Astroアイランドで構築するもっとも明白な利点は、パフォーマンスです。ウェブサイトの大部分は高速で静的なHTMLに変換され、JavaScriptは必要とする個々のコンポーネントにのみ読み込まれます。JavaScriptは、バイト単位で読み込むことができるもっとも遅いリソースの1つなので、1バイトが重要なのです。
Astroアイランドで構築するもっとも明白な利点は、パフォーマンスです。ウェブサイトの大部分は高速で静的なHTMLに変換され、JavaScriptは、それを必要とする個々のコンポーネントにのみ読み込まれます。JavaScriptは、バイト単位で読み込むことができるもっとも遅いリソースの1つなので、1バイトが重要なのです。
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JavaScriptは必要とする個々のコンポーネントにのみ読み込まれます

は直すか迷いましたが、なんとなく引っかかったためより正確に「それを」を追加しています。

Comment on lines -68 to +62
もうひとつのメリットは、並列ロードです。上のイラストの例では、優先度の低い「画像カルーセル」のアイランドが、優先度の高い「ヘッダー」のアイランドをブロックする必要はないのです。この2つは並行してロードされ、分離してハイドレーションされます。つまり、ヘッダーは、ページ下部の重いカルーセルを待つことなく、すぐにインタラクティブな状態になります。
もうひとつのメリットは、並列ロードです。上のイラストの例では、優先度の低い「画像カルーセル」のアイランドが、優先度の高い「ヘッダー」のアイランドをブロックする必要はないのです。この2つは並行してロードされ、独立してハイドレーションされます。つまり、ヘッダーは、ページ下部の重いカルーセルを待つことなく、すぐにインタラクティブな状態になります。
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

こちらの「分離して(in isolation)」は特に問題はないと思いますが、上の訳に合わせて「独立して」に変更しています。

@morinokami
Copy link
Copy Markdown
Member Author

Oops, it seems like some environment vars are missing for the deploy preview. How should I fix that?

Screen Shot 2022-12-29 at 10 57 06

@delucis
Copy link
Copy Markdown
Member

delucis commented Dec 29, 2022

Hi @morinokami, thanks for the PR!

Oops, it seems like some environment vars are missing for the deploy preview. How should I fix that?

Hopefully should be fixed by #2252 — thanks for your patience 🙌

@morinokami
Copy link
Copy Markdown
Member Author

@delucis Thanks for your help. It's now working!

Copy link
Copy Markdown
Contributor

@kyosuke kyosuke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@morinokami レビューしました。修正と改善された本文ともに問題ないように思います。
isolationを独立としたことで読みやすくなりました。
LGTM!

Copy link
Copy Markdown
Member

@delucis delucis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks team 🚀

@delucis delucis merged commit 0bb3e8f into withastro:main Dec 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

i18n Anything to do with internationalization & translation efforts - ask @YanThomas for help!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants