Skip to content

i18n(ja): Add guides/migrate-to-astro/from-to-gatsby.mdx #11494

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jp-knj
Copy link

@jp-knj jp-knj commented Apr 20, 2025

Description (required)

Add missing Japanese translation for the “Guided example: Gatsby layout to Astro” section
This improves completeness of the Japanese docs and aligns them with the latest English source.

original source: https://github.com/withastro/docs/blob/main/src/content/docs/en/guides/migrate-to-astro/from-gatsby.mdx

Related issues & labels (optional)

  • Suggested label: i18n

Discord: jp-knj

@github-actions github-actions bot added the i18n Anything to do with internationalization & translation efforts - ask @YanThomas for help! label Apr 20, 2025
Copy link

netlify bot commented Apr 20, 2025

Deploy Preview for astro-docs-2 ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 97d0df8
🔍 Latest deploy log https://app.netlify.com/sites/astro-docs-2/deploys/6804cef4fe67270008701858
😎 Deploy Preview https://deploy-preview-11494--astro-docs-2.netlify.app
📱 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 configuration.

@astrobot-houston
Copy link
Contributor

astrobot-houston commented Apr 20, 2025

Lunaria Status Overview

🌕 This pull request will trigger status changes.

Learn more

By default, every PR changing files present in the Lunaria configuration's files property will be considered and trigger status changes accordingly.

You can change this by adding one of the keywords present in the ignoreKeywords property in your Lunaria configuration file in the PR's title (ignoring all files) or by including a tracker directive in the merged commit's description.

Tracked Files

File Note
ja/guides/migrate-to-astro/from-gatsby.mdx Localization added, will be marked as complete.
Warnings reference
Icon Description
🔄️ The source for this localization has been updated since the creation of this pull request, make sure all changes in the source have been applied.

@astrobot-houston
Copy link
Contributor

Hello! Thank you for opening your first PR to Astro’s Docs! 🎉

Here’s what will happen next:

  1. Our GitHub bots will run to check your changes.
    If they spot any broken links you will see some error messages on this PR.
    Don’t hesitate to ask any questions if you’re not sure what these mean!

  2. In a few minutes, you’ll be able to see a preview of your changes on Netlify 🥳.

  3. One or more of our maintainers will take a look and may ask you to make changes.
    We try to be responsive, but don’t worry if this takes a few days.

@jp-knj jp-knj force-pushed the jp-knj-i18n-ja-guides-migrate-to-astro-from-gatsby branch from e643067 to 6a38999 Compare April 20, 2025 10:08
@jp-knj jp-knj force-pushed the jp-knj-i18n-ja-guides-migrate-to-astro-from-gatsby branch from 5350b52 to 97d0df8 Compare April 20, 2025 10:39

- Astroは[インストールNPMパッケージ](/ja/guides/imports/#npm-packages)をサポートしており、Reactライブラリも含まれます。多くの既存の依存関係はAstroで動作します。

- Gatsbyと同様に、AstroプロジェクトもSSGを選択できるほか、[ページ単位の事前レンダリングを伴うSSR](/en/guides/on-demand-rendering/)に対応しています。
Copy link
Author

Choose a reason for hiding this comment

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

Comment on lines +570 to +604
<CardGrid>
<LinkCard title="Migrating from Gatsby to Astro" href="https://loige.co/migrating-from-gatsby-to-astro/"
description="How and why I migrated this blog from Gatsby to Astro and what I learned in the process." />

<LinkCard title="Migrating to Astro was EZ" href="https://joelhooks.com/migrating-to-astro-was-ez"
description="This is about the process of migrating from Gatsby to Astro, and why I chose Astro." />

<LinkCard title="My Switch from Gatsby to Astro" href="https://www.joshfinnie.com/blog/my-switch-from-gatsby-to-astro/"
description="The switch to Astro is definitely worth a blog post! It’s revolutionizing the static web development scene for the better."/>

<LinkCard title="Why I moved to Astro from Gatsby" href="https://dev.to/askrodney/why-i-moved-to-astro-from-gatsby-3fck"
description="Taking a quick look at what made me want to switch and why Astro was a good fit." />

<LinkCard title="Another Migration: From Gatsby to Astro" href="https://logarithmicspirals.com/blog/migrating-from-gatsby-to-astro/"
description="Learn about how I transitioned my personal website from Gatsby to Astro as I share insights and experiences from the migration process."/>

<LinkCard title="From Gatsby gridlock to Astro bliss: my personal site redesign" href="https://jwn.gr/posts/migrating-from-gatsby-to-astro/"
description="Gatsby has shown its age and I found myself seeking a modern alternative. Enter Astro — a framework that has breathed some new life into this site."/>

<LinkCard title="Why and how I moved my blog away from Gatsby and React to Astro Js and Preact" href="https://www.helmerdavila.com/blog/en/why-and-how-i-moved-my-blog-away-from-gatsby-and-react-to-astro-js-and-preact"
description="All is about simplicity and power at the same time." />

<LinkCard title="How I rewrote my HUGE Gatsby site in Astro and learned to love it in the process" href="https://dunedinsound.com/blog/how_i_rewrote_my_huge_gatsby_site_in_astro_and_learned_to_love_it_in_the_process/"
description="Everything is faster. Happier. More productive."/>

<LinkCard title="How I switched from Gatsby to Astro (While Keeping Drupal in the Mix)" href="https://albert.skibinski.nl/en/blog/how-i-switched-gatsby-astro-while-keeping-drupal-mix/"
description="I came across the relatively new Astro, which ticked all the boxes."/>

<LinkCard title="Migrating my website from Gatsby to Astro" href="https://dev.to/flashblaze/migrating-my-website-from-gatsby-to-astro-2ej5"
description="Astro has entered the chat." />

<LinkCard title="Gatsby to Astro" href="https://alvin.codes/writing/gatsby-to-astro"
description="Why and how I migrated this website from Gatsby to Astro."/>

</CardGrid>
Copy link
Author

Choose a reason for hiding this comment

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

</div>
```

Reactコンポーネントが複数の子要素を渡す場合は、[named slots](/en/basics/astro-components/#named-slots)を使用してAstroコンポーネントに移行できます。
Copy link
Author

Choose a reason for hiding this comment

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

複数の子要素 vs 複数の{children}


### スタイリングを変換する

必要に応じて、[CSS-in-JSライブラリ](https://github.com/withastro/astro/issues/4432)(例:styled-components)をAstroで使用できるCSSオプションに置き換える必要があります。
Copy link
Author

Choose a reason for hiding this comment

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

styled-components as a project is in "maintenance mode". If necessary, delete this line.

https://opencollective.com/styled-components/updates/thank-you


#### MarkdownとMDXページ

AstroはMarkdownをネイティブサポートし、MDX用のオプション統合も提供しています。既存の**[MarkdownとMDXファイル](/en/guides/markdown-content/)**を再利用できますが、フロントマターに**[Astro専用の`layout`プロパティ](/en/basics/layouts/#markdown-layouts)**を追加するなどの調整が必要な場合があります。これらのファイルも`src/pages/`に置けば自動的にファイルベースルーティングを利用できます。
Copy link
Author

@jp-knj jp-knj Apr 20, 2025

Choose a reason for hiding this comment

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

Is ”オプションインテグレーション” okay?

@jp-knj jp-knj marked this pull request as ready for review April 20, 2025 11:01
@jp-knj jp-knj changed the title i18n(ja): Update guides/migrate-to-astro/from-to-gatsby.mdx i18n(ja): Update guides/migrate-to-astro/from-to-gatsby.mdx Apr 22, 2025
@jp-knj jp-knj changed the title i18n(ja): Update guides/migrate-to-astro/from-to-gatsby.mdx i18n(ja): Add guides/migrate-to-astro/from-to-gatsby.mdx Apr 22, 2025
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.

2 participants