Skip to content

i18n(ja): update reference file plugins.md#3709

Closed
Yusaku01 wants to merge 3 commits intowithastro:mainfrom
Yusaku01:i18n/update-reference-plugins
Closed

i18n(ja): update reference file plugins.md#3709
Yusaku01 wants to merge 3 commits intowithastro:mainfrom
Yusaku01:i18n/update-reference-plugins

Conversation

@changeset-bot
Copy link

changeset-bot bot commented Feb 13, 2026

⚠️ No Changeset found

Latest commit: 7c2a6ca

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@netlify
Copy link

netlify bot commented Feb 13, 2026

Deploy Preview for astro-starlight ready!

Name Link
🔨 Latest commit 7c2a6ca
🔍 Latest deploy log https://app.netlify.com/projects/astro-starlight/deploys/698ff74878b8340008156924
😎 Deploy Preview https://deploy-preview-3709--astro-starlight.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 100 (no change from production)
Accessibility: 100 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions bot added i18n Anything to do with internationalization & translation efforts 📚 docs Documentation website changes labels Feb 13, 2026
@astrobot-houston
Copy link
Contributor

astrobot-houston commented Feb 13, 2026

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

Locale File Note
ja reference/plugins.md Localization changed, 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.

Copy link
Member

@morinokami morinokami left a comment

Choose a reason for hiding this comment

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

対応ありがとうございます、何点かコメントしましたのでご確認をお願いします!

ただ、この plugins と 18n の新規内容が互いにリンクし合っているようなため、このままではマージできない気がします。なので i18n 側の修正にこの変更を合流させる必要がありそうです。

Comment on lines 61 to 154
既存の設定オプションをオーバーライドせず拡張するには、既存の値を新しい値へと展開します。以下の例では、`config.social`を新しい`social`オブジェクトに展開し、既存の設定に新しい[`social`](/ja/reference/configuration/#social)メディアアカウントを追加しています
既存の設定オプションをオーバーライドせず拡張するには、既存の値を新しい値へと展開します。以下の例では、`config.social`を新しい`social`配列に展開し、既存の設定に新しい[`social`](/ja/reference/configuration/#social)アカウントを追加しています
Copy link
Member

Choose a reason for hiding this comment

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

二つ目の文について質問なのですが、原文は

In the following example, a new social media account is added to the existing configuration by spreading config.social into the new social array

となっており、「a new social media account」なので「メディア」という語は削除する必要もないように思ったのですが、これは意図的な変更でしょうか?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

すみません、こちら意図的ではなく、単語を抜かしてしまっていました...
修正します🙏

Comment on lines 142 to 275
setup({ logger }) {
logger.info('時間が掛かる処理を開始します…');
// 何らかの時間が掛かる処理…
'config:setup'({ logger }) {
logger.info('Starting long process…');
// 何らかの長い処理…
},
Copy link
Member

Choose a reason for hiding this comment

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

ここはフックの中身はそのままで良さそうです(logger.info の引数も訳し忘れてしまっています)

上記の例では、指定した`info`レベルのメッセージを含むログが出力されます。

```shell
[long-process-plugin] Starting long process…
Copy link
Member

Choose a reason for hiding this comment

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

ここも https://github.com/withastro/starlight/pull/3709/changes#r2805005376 の内容に一致するよう訳す必要がありそうです


**type:** `(lang: string) => I18nT`

BCP-47言語タグを指定して`useTranslations()`を呼び出すと、その言語のUI文字列にアクセスするためのユーティリティ関数が生成されます。`useTranslations()`は、Astroコンポーネントで利用可能な`Astro.locals.t()` APIと同等のものを返します。利用可能なAPIの詳細については、[“UI翻訳の使用“](/ja/guides/i18n/#ui翻訳を使用する)ガイドを参照してください。
Copy link
Member

Choose a reason for hiding this comment

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

nitpick ですが「API」直前のスペースは不要そうです:

Suggested change
BCP-47言語タグを指定して`useTranslations()`を呼び出すと、その言語のUI文字列にアクセスするためのユーティリティ関数が生成されます。`useTranslations()`は、Astroコンポーネントで利用可能な`Astro.locals.t()` APIと同等のものを返します。利用可能なAPIの詳細については、[“UI翻訳の使用“](/ja/guides/i18n/#ui翻訳を使用する)ガイドを参照してください。
BCP-47言語タグを指定して`useTranslations()`を呼び出すと、その言語のUI文字列にアクセスするためのユーティリティ関数が生成されます。`useTranslations()`は、Astroコンポーネントで利用可能な`Astro.locals.t()`APIと同等のものを返します。利用可能なAPIの詳細については、[“UI翻訳の使用“](/ja/guides/i18n/#ui翻訳を使用する)ガイドを参照してください。

@Yusaku01
Copy link
Contributor Author

Yusaku01 commented Feb 14, 2026

@morinokami

レビューいただきありがとうございます!
修正対応分をプッシュしました。お手隙にご確認いただけますと幸いです 🙏

また、一旦PR分けたのですが、おっしゃる通りi18nとリンクの繋がりがあるので、こちらのPRの内容がLGTMになり次第、i18nのPRに合流させようかと思っていましたが、i18nとの相互リンクの繋がり考えると、Shinyaさんからのレビュー項目修正次第、すぐi18nPRに合流させてから確認いただいた方がスムーズでしょうか🤔

Copy link
Member

@morinokami morinokami left a comment

Choose a reason for hiding this comment

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

こちらの内容は LGTM ですので、i18n の方にマージして CI を通すなど残りの作業をお願いします 🙏

@Yusaku01
Copy link
Contributor Author

Yusaku01 commented Feb 14, 2026

ありがとうございます!i18n編集PRにmergeしたため、こちらのPRをcloseします🙏

Closing this PR as it has been merged into the following PR:
#3703

@Yusaku01 Yusaku01 closed this Feb 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

📚 docs Documentation website changes i18n Anything to do with internationalization & translation efforts

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants