Skip to content

i18n(ja): add guide prefetch - #14513

Open
Yusaku01 wants to merge 4 commits into
withastro:mainfrom
Yusaku01:i18n/ja/prefetch
Open

Yusaku01 wants to merge 4 commits into
withastro:mainfrom
Yusaku01:i18n/ja/prefetch

Conversation

@Yusaku01

@Yusaku01 Yusaku01 commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Description

This PR is based on the following file:

https://github.com/withastro/docs/commits/main/src/content/docs/en/guides/prefetch.mdx

I'd appreciate it if you could review this when you have time 🫡

@github-actions github-actions Bot added the i18n Anything to do with internationalization & translation efforts - ask @YanThomas for help! label Sep 7, 2026
@astrobot-houston

astrobot-houston commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

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 tracking.ignoredKeywords 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/prefetch.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.

@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown

Preview deployment

✅ Deployment complete!

@Yusaku01
Yusaku01 marked this pull request as ready for review September 7, 2026 15:09
@Yusaku01
Yusaku01 marked this pull request as draft September 14, 2026 13:32
@Yusaku01
Yusaku01 marked this pull request as ready for review September 18, 2026 12:26

@morinokami morinokami left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

こちらレビューが遅れてしまってすみません!ほとんど問題なさそうだったのですが、一点だけ気付いたためこちら確認をお願いします 🙏

</script>
```

ブラウザのAPIに依存しているため、クライアント側で`prefetch()`だけをインポートするようにしてください。

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

こちら、原文は

Make sure to only import prefetch() in client-side scripts as it relies on browser APIs.

となっており、「prefetch()だけをインポートしてほしい」ではなく「クライアントサイドでのみprefetch()をインポートしてほしい」というのが意図かなと思いました(only の係り先の問題)。なので以下のような感じはどうでしょうか(scripts というのも一応訳してみました):

Suggested change
ブラウザのAPIに依存しているため、クライアント側で`prefetch()`だけをインポートするようにしてください
ブラウザのAPIに依存しているため、クライアント側のスクリプト内でのみ`prefetch()`をインポートするようにしてください

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