Skip to content

Commit

Permalink
i18n(ja): fix warnings of link-check in content-loader-reference.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
nemuvski committed Mar 1, 2025
1 parent 79d8df9 commit 399926b
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/content/docs/ja/reference/content-loader-reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@ AstroのContent Loader APIを使用することで、ローカルまたはリモ

## ローダーとは?

Astroのローダーを使用すると、[コンテンツコレクション](/ja/guides/content-collections/)にデータをロードでき、ページやコンポーネントで使用できます。[ビルトインの`glob()`および`file()`ローダー](/en/guides/content-collections/#built-in-loaders)はファイルシステムからコンテンツをロードするために使用され、他のソースからコンテンツをロードするために独自のローダーを作成することもできます。
{/* TODO: `/ja/guides/content-collections/#built-in-loaders` does not exist yet. `#built-in-loaders` will be added when the fragment link destination is specified. */}
Astroのローダーを使用すると、[コンテンツコレクション](/ja/guides/content-collections/)にデータをロードでき、ページやコンポーネントで使用できます。[ビルトインの`glob()`および`file()`ローダー](/ja/guides/content-collections/)はファイルシステムからコンテンツをロードするために使用され、他のソースからコンテンツをロードするために独自のローダーを作成することもできます。

各コレクションには[スキーマで定義されたローダー](/en/guides/content-collections/#defining-the-collection-loader)が必要です。プロジェクトの`src/content.config.ts`ファイルにインラインでローダーを定義したり、複数のコレクション間で1つのローダーを共有したり、他の人と共有するために[NPMにパッケージとしてローダーを公開](/ja/reference/publish-to-npm/)して、統合ライブラリに含めることもできます。
{/* TODO: `/ja/guides/content-collections/#defining-the-collection-loader` does not exist yet. `#defining-the-collection-loader` will be added when the fragment link destination is specified. */}
各コレクションには[スキーマで定義されたローダー](/ja/guides/content-collections/)が必要です。プロジェクトの`src/content.config.ts`ファイルにインラインでローダーを定義したり、複数のコレクション間で1つのローダーを共有したり、他の人と共有するために[NPMにパッケージとしてローダーを公開](/ja/reference/publish-to-npm/)して、統合ライブラリに含めることもできます。

## ビルトインローダー

Expand All @@ -22,7 +24,7 @@ Astroには、コレクションを取得するための2つのビルトイン

<p>

**Type:** <code>(options: GlobOptions) => <a href="#the-loader-object">Loader</a></code><br />
**Type:** <code>(options: GlobOptions) => <a href="##loaderオブジェクト">Loader</a></code><br />

Check failure on line 27 in src/content/docs/ja/reference/content-loader-reference.mdx

View workflow job for this annotation

GitHub Actions / Check Links

Broken fragment link in src/content/docs/ja/reference/content-loader-reference.mdx, line 27: The linked page does not contain a fragment with the name "##loaderオブジェクト". Available fragments: #theme-icons, #gradient, #starlight__sidebar, #__tab-start, #__tab-guides-and-recipes, #__tab-reference, #__tab-integrations, #__tab-third-party-services, #starlight__mobile-toc, #starlight__on-this-page--mobile, #starlight__on-this-page, #_top, #ローダーとは, #ビルトインローダー, #glob-ローダー, #pattern, #base, #generateid, #file-ローダー, #filename, #options, #parser, #ローダータイプ, #インラインローダー, #オブジェクトローダー, #オブジェクトローダーapi, #loaderオブジェクト, #name, #load, #schema, #loadercontext, #collection, #store, #meta, #logger, #config, #parsedata, #generatedigest, #watcher, #refreshcontextdata, #datastore, #get, #set, #entries, #keys, #values, #delete, #clear, #has, #dataentry, #id, #data, #filepath, #body, #digest, #rendered, #docsearch-lvl0
<Since v="5.0.0" />
</p>

Expand Down Expand Up @@ -94,7 +96,7 @@ const authors = defineCollection({

<p>

**Type:** <code>(fileName: string, options?: FileOptions) => <a href="#the-loader-object">Loader</a></code><br />
**Type:** <code>(fileName: string, options?: FileOptions) => <a href="##loaderオブジェクト">Loader</a></code><br />

Check failure on line 99 in src/content/docs/ja/reference/content-loader-reference.mdx

View workflow job for this annotation

GitHub Actions / Check Links

Broken fragment link in src/content/docs/ja/reference/content-loader-reference.mdx, line 99: The linked page does not contain a fragment with the name "##loaderオブジェクト". Available fragments: #theme-icons, #gradient, #starlight__sidebar, #__tab-start, #__tab-guides-and-recipes, #__tab-reference, #__tab-integrations, #__tab-third-party-services, #starlight__mobile-toc, #starlight__on-this-page--mobile, #starlight__on-this-page, #_top, #ローダーとは, #ビルトインローダー, #glob-ローダー, #pattern, #base, #generateid, #file-ローダー, #filename, #options, #parser, #ローダータイプ, #インラインローダー, #オブジェクトローダー, #オブジェクトローダーapi, #loaderオブジェクト, #name, #load, #schema, #loadercontext, #collection, #store, #meta, #logger, #config, #parsedata, #generatedigest, #watcher, #refreshcontextdata, #datastore, #get, #set, #entries, #keys, #values, #delete, #clear, #has, #dataentry, #id, #data, #filepath, #body, #digest, #rendered, #docsearch-lvl0
<Since v="5.0.0" />
</p>

Expand Down Expand Up @@ -145,7 +147,8 @@ const products = defineCollection({
**Type:** `(text: string) => Record<string, Record<string, unknown>> | Array<Record<string, unknown>>`
</p>

ファイルの内容からコレクションを作成するためのコールバック関数です。デフォルトでサポートされていないファイル(例:`.csv`)を処理する必要がある場合や、[ネストされた`.json`ドキュメント](/en/guides/content-collections/#nested-json-documents)を使用する場合に使用します。
{/* TODO: `/ja/guides/content-collections/#nested-json-documents` does not exist yet. `#nested-json-documents` will be added when the fragment link destination is specified. */}
ファイルの内容からコレクションを作成するためのコールバック関数です。デフォルトでサポートされていないファイル(例:`.csv`)を処理する必要がある場合や、[ネストされた`.json`ドキュメント](/ja/guides/content-collections/)を使用する場合に使用します。

## ローダータイプ

Expand Down

0 comments on commit 399926b

Please sign in to comment.