Author: {author}
-{body}
-From b1e3491c337b86bd8f5699aaa80eea8466c36f71 Mon Sep 17 00:00:00 2001
From: HiDeoo <494699+HiDeoo@users.noreply.github.com>
Date: Thu, 2 Oct 2025 21:57:48 +0200
Subject: [PATCH] i18n(ja): remove outdated translations [i18nIgnore]
---
.../docs/ja/basics/astro-components.mdx | 4 +-
src/content/docs/ja/basics/astro-pages.mdx | 2 +-
src/content/docs/ja/basics/layouts.mdx | 8 +-
src/content/docs/ja/guides/actions.mdx | 700 -------
src/content/docs/ja/guides/astro-db.mdx | 774 -------
src/content/docs/ja/guides/authentication.mdx | 394 ----
.../docs/ja/guides/client-side-scripts.mdx | 249 ---
src/content/docs/ja/guides/cms/buttercms.mdx | 136 --
src/content/docs/ja/guides/cms/contentful.mdx | 575 ------
src/content/docs/ja/guides/cms/index.mdx | 41 -
src/content/docs/ja/guides/cms/storyblok.mdx | 487 -----
.../docs/ja/guides/configuring-astro.mdx | 170 --
.../docs/ja/guides/content-collections.mdx | 636 ------
src/content/docs/ja/guides/data-fetching.mdx | 110 -
src/content/docs/ja/guides/deploy/aws.mdx | 280 ---
src/content/docs/ja/guides/deploy/buddy.mdx | 28 -
src/content/docs/ja/guides/deploy/cleavr.mdx | 48 -
.../docs/ja/guides/deploy/cloudflare.mdx | 147 --
src/content/docs/ja/guides/deploy/deno.mdx | 178 --
.../docs/ja/guides/deploy/flightcontrol.mdx | 25 -
src/content/docs/ja/guides/deploy/github.mdx | 150 --
src/content/docs/ja/guides/deploy/gitlab.mdx | 58 -
.../docs/ja/guides/deploy/google-cloud.mdx | 83 -
.../docs/ja/guides/deploy/google-firebase.mdx | 39 -
src/content/docs/ja/guides/deploy/heroku.mdx | 59 -
src/content/docs/ja/guides/deploy/index.mdx | 116 --
src/content/docs/ja/guides/deploy/kinsta.mdx | 94 -
.../docs/ja/guides/deploy/microsoft-azure.mdx | 46 -
src/content/docs/ja/guides/deploy/netlify.mdx | 143 --
src/content/docs/ja/guides/deploy/sst.mdx | 51 -
src/content/docs/ja/guides/deploy/surge.mdx | 30 -
src/content/docs/ja/guides/deploy/vercel.mdx | 89 -
src/content/docs/ja/guides/endpoints.mdx | 226 ---
.../docs/ja/guides/environment-variables.mdx | 116 --
src/content/docs/ja/guides/fonts.mdx | 134 --
.../docs/ja/guides/framework-components.mdx | 229 ---
src/content/docs/ja/guides/images.mdx | 923 ---------
src/content/docs/ja/guides/imports.mdx | 296 ---
.../guides/integrations-guide/cloudflare.mdx | 544 -----
.../docs/ja/guides/integrations-guide/db.mdx | 255 ---
.../ja/guides/integrations-guide/index.mdx | 265 ---
.../ja/guides/integrations-guide/markdoc.mdx | 4 +-
.../docs/ja/guides/integrations-guide/mdx.mdx | 8 +-
.../ja/guides/integrations-guide/netlify.mdx | 8 +-
.../ja/guides/integrations-guide/node.mdx | 2 +-
.../ja/guides/integrations-guide/react.mdx | 174 --
.../ja/guides/integrations-guide/sitemap.mdx | 2 +-
.../ja/guides/integrations-guide/vercel.mdx | 2 +-
.../docs/ja/guides/markdown-content.mdx | 658 ------
src/content/docs/ja/guides/media/index.mdx | 39 -
src/content/docs/ja/guides/middleware.mdx | 318 ---
.../from-create-react-app.mdx | 14 +-
.../migrate-to-astro/from-docusaurus.mdx | 2 +-
.../guides/migrate-to-astro/from-gridsome.mdx | 4 +-
.../migrate-to-astro/from-sveltekit.mdx | 2 +-
.../guides/migrate-to-astro/from-vuepress.mdx | 2 +-
.../docs/ja/guides/migrate-to-astro/index.mdx | 46 -
src/content/docs/ja/guides/prefetch.mdx | 199 --
src/content/docs/ja/guides/routing.mdx | 581 ------
src/content/docs/ja/guides/sessions.mdx | 159 --
src/content/docs/ja/guides/styling.mdx | 652 ------
.../docs/ja/guides/syntax-highlighting.mdx | 2 +-
src/content/docs/ja/guides/testing.mdx | 269 ---
.../docs/ja/guides/troubleshooting.mdx | 192 --
src/content/docs/ja/guides/typescript.mdx | 326 ---
src/content/docs/ja/guides/upgrade-to/v2.mdx | 423 ----
src/content/docs/ja/guides/upgrade-to/v3.mdx | 695 -------
src/content/docs/ja/guides/upgrade-to/v4.mdx | 389 ----
.../docs/ja/guides/view-transitions.mdx | 749 -------
src/content/docs/ja/install-and-setup.mdx | 2 +-
.../docs/ja/recipes/add-yaml-support.mdx | 64 -
src/content/docs/ja/recipes/captcha.mdx | 76 -
src/content/docs/ja/recipes/docker.mdx | 190 --
src/content/docs/ja/recipes/index.mdx | 25 -
src/content/docs/ja/recipes/rss.mdx | 232 ---
.../docs/ja/recipes/sharing-state-islands.mdx | 848 --------
.../docs/ja/reference/adapter-reference.mdx | 478 -----
.../docs/ja/reference/astro-syntax.mdx | 2 +-
.../docs/ja/reference/cli-reference.mdx | 642 ------
.../ja/reference/configuration-reference.mdx | 1779 -----------------
.../ja/reference/content-loader-reference.mdx | 633 ------
.../ja/reference/directives-reference.mdx | 4 +-
.../docs/ja/reference/error-reference.mdx | 101 -
.../errors/client-address-not-available.mdx | 2 +-
.../get-static-paths-invalid-route-param.mdx | 2 +-
.../get-static-paths-removed-rsshelper.mdx | 2 +-
.../errors/get-static-paths-required.mdx | 4 +-
.../reference/errors/no-client-entrypoint.mdx | 2 +-
.../reference/errors/no-matching-renderer.mdx | 2 +-
.../errors/no-matching-static-path-found.mdx | 2 +-
.../ja/reference/image-service-reference.mdx | 257 ---
src/content/docs/ja/tutorial/2-pages/4.mdx | 4 +-
src/content/docs/ja/tutorial/2-pages/5.mdx | 4 +-
src/content/docs/ja/tutorial/4-layouts/2.mdx | 2 +-
.../docs/ja/tutorial/5-astro-api/2.mdx | 2 +-
.../docs/ja/tutorial/5-astro-api/3.mdx | 2 +-
.../docs/ja/tutorial/5-astro-api/4.mdx | 2 +-
src/content/docs/ja/tutorial/6-islands/1.mdx | 2 +-
98 files changed, 54 insertions(+), 20172 deletions(-)
delete mode 100644 src/content/docs/ja/guides/actions.mdx
delete mode 100644 src/content/docs/ja/guides/astro-db.mdx
delete mode 100644 src/content/docs/ja/guides/authentication.mdx
delete mode 100644 src/content/docs/ja/guides/client-side-scripts.mdx
delete mode 100644 src/content/docs/ja/guides/cms/buttercms.mdx
delete mode 100644 src/content/docs/ja/guides/cms/contentful.mdx
delete mode 100644 src/content/docs/ja/guides/cms/index.mdx
delete mode 100644 src/content/docs/ja/guides/cms/storyblok.mdx
delete mode 100644 src/content/docs/ja/guides/configuring-astro.mdx
delete mode 100644 src/content/docs/ja/guides/content-collections.mdx
delete mode 100644 src/content/docs/ja/guides/data-fetching.mdx
delete mode 100644 src/content/docs/ja/guides/deploy/aws.mdx
delete mode 100644 src/content/docs/ja/guides/deploy/buddy.mdx
delete mode 100644 src/content/docs/ja/guides/deploy/cleavr.mdx
delete mode 100644 src/content/docs/ja/guides/deploy/cloudflare.mdx
delete mode 100644 src/content/docs/ja/guides/deploy/deno.mdx
delete mode 100644 src/content/docs/ja/guides/deploy/flightcontrol.mdx
delete mode 100644 src/content/docs/ja/guides/deploy/github.mdx
delete mode 100644 src/content/docs/ja/guides/deploy/gitlab.mdx
delete mode 100644 src/content/docs/ja/guides/deploy/google-cloud.mdx
delete mode 100644 src/content/docs/ja/guides/deploy/google-firebase.mdx
delete mode 100644 src/content/docs/ja/guides/deploy/heroku.mdx
delete mode 100644 src/content/docs/ja/guides/deploy/index.mdx
delete mode 100644 src/content/docs/ja/guides/deploy/kinsta.mdx
delete mode 100644 src/content/docs/ja/guides/deploy/microsoft-azure.mdx
delete mode 100644 src/content/docs/ja/guides/deploy/netlify.mdx
delete mode 100644 src/content/docs/ja/guides/deploy/sst.mdx
delete mode 100644 src/content/docs/ja/guides/deploy/surge.mdx
delete mode 100644 src/content/docs/ja/guides/deploy/vercel.mdx
delete mode 100644 src/content/docs/ja/guides/endpoints.mdx
delete mode 100644 src/content/docs/ja/guides/environment-variables.mdx
delete mode 100644 src/content/docs/ja/guides/fonts.mdx
delete mode 100644 src/content/docs/ja/guides/framework-components.mdx
delete mode 100644 src/content/docs/ja/guides/images.mdx
delete mode 100644 src/content/docs/ja/guides/imports.mdx
delete mode 100644 src/content/docs/ja/guides/integrations-guide/cloudflare.mdx
delete mode 100644 src/content/docs/ja/guides/integrations-guide/db.mdx
delete mode 100644 src/content/docs/ja/guides/integrations-guide/index.mdx
delete mode 100644 src/content/docs/ja/guides/integrations-guide/react.mdx
delete mode 100644 src/content/docs/ja/guides/markdown-content.mdx
delete mode 100644 src/content/docs/ja/guides/media/index.mdx
delete mode 100644 src/content/docs/ja/guides/middleware.mdx
delete mode 100644 src/content/docs/ja/guides/migrate-to-astro/index.mdx
delete mode 100644 src/content/docs/ja/guides/prefetch.mdx
delete mode 100644 src/content/docs/ja/guides/routing.mdx
delete mode 100644 src/content/docs/ja/guides/sessions.mdx
delete mode 100644 src/content/docs/ja/guides/styling.mdx
delete mode 100644 src/content/docs/ja/guides/testing.mdx
delete mode 100644 src/content/docs/ja/guides/troubleshooting.mdx
delete mode 100644 src/content/docs/ja/guides/typescript.mdx
delete mode 100644 src/content/docs/ja/guides/upgrade-to/v2.mdx
delete mode 100644 src/content/docs/ja/guides/upgrade-to/v3.mdx
delete mode 100644 src/content/docs/ja/guides/upgrade-to/v4.mdx
delete mode 100644 src/content/docs/ja/guides/view-transitions.mdx
delete mode 100644 src/content/docs/ja/recipes/add-yaml-support.mdx
delete mode 100644 src/content/docs/ja/recipes/captcha.mdx
delete mode 100644 src/content/docs/ja/recipes/docker.mdx
delete mode 100644 src/content/docs/ja/recipes/index.mdx
delete mode 100644 src/content/docs/ja/recipes/rss.mdx
delete mode 100644 src/content/docs/ja/recipes/sharing-state-islands.mdx
delete mode 100644 src/content/docs/ja/reference/adapter-reference.mdx
delete mode 100644 src/content/docs/ja/reference/cli-reference.mdx
delete mode 100644 src/content/docs/ja/reference/configuration-reference.mdx
delete mode 100644 src/content/docs/ja/reference/content-loader-reference.mdx
delete mode 100644 src/content/docs/ja/reference/error-reference.mdx
delete mode 100644 src/content/docs/ja/reference/image-service-reference.mdx
diff --git a/src/content/docs/ja/basics/astro-components.mdx b/src/content/docs/ja/basics/astro-components.mdx
index 7429d51531739..dd890d5e37b30 100644
--- a/src/content/docs/ja/basics/astro-components.mdx
+++ b/src/content/docs/ja/basics/astro-components.mdx
@@ -17,7 +17,7 @@ Astroコンポーネントは非常に柔軟です。多くの場合、Astroコ
Astroコンポーネントについて知っておくべきもっとも重要なことは、**クライアント上でレンダリングされない**ということです。コンポーネントはビルド時または[サーバーサイドレンダリング(SSR)](/ja/guides/on-demand-rendering/)によりオンデマンドにレンダリングされます。コンポーネントのフロントマターの内部にJavaScriptコードを含められますが、それらはすべて、ユーザーのブラウザに送られる最終的なページからは取り除かれます。その結果、デフォルトではJavaScriptが含められることはなく、より高速なサイトが実現します。
-Astroコンポーネントがクライアントサイドでインタラクティビティを必要とする場合は、[標準のHTML`
-```
-
-### 最初のアクションを書いてみる
-
-以下の手順でアクションを定義し、Astroページの`script`タグから呼び出します。
-
-
Unable to sign up. Please try again later.
-)} - -``` - -より細かい制御を行う場合は、[ `isInputError()`ユーティリティ](#フォーム入力エラーを表示する)を使って入力不正が原因かどうかを判定できます。 - -次の例は、無効なメールアドレスが送信されたときに`email`入力欄の下へエラーバナーを表示します。 - -```astro title="src/pages/index.astro" ins={5,13} ins='aria-describedby="error"' ---- -import { actions, isInputError } from 'astro:actions'; - -const result = Astro.getActionResult(actions.newsletter); -const inputErrors = isInputError(result?.error) ? result.error.fields : {}; ---- - - -``` - -#### エラー時に入力値を保持する - -フォーム送信時、入力値はクリアされます。値を保持したい場合は、ページで[ビュートランジションを有効化](/ja/guides/view-transitions/ -)し、各入力に`transition:persist`ディレクティブを追加します。 - -```astro ins="transition:persist" - -``` - -### フォームアクション結果でUIを更新する - -アクションの戻り値を用いて成功時に通知を表示するには、アクションを`Astro.getActionResult()`へ渡し、返された`data`で必要なUIをレンダリングします。 - -次の例では、`addToCart`アクションが返す`productName`を使い、成功メッセージを表示しています。 - -```astro title="src/pages/products/[slug].astro" ---- -import { actions } from 'astro:actions'; - -const result = Astro.getActionResult(actions.addToCart); ---- - -{result && !result.error && ( -Added {result.data.productName} to cart
-)} - - -``` - -### 上級編: セッションにアクション結果を保持する - -Author: {author}
-{body}
-Author: {Author.name}
-{Comment.body}
-{session.user?.name}さん、ようこそ
- ) : ( -未ログイン
- ) - } -{session.user?.name}
-``` - -さらに、`auth`オブジェクトを使ってミドルウェアでルートを保護することもできます。次の例では、ログイン後のダッシュボード (`/dashboard`) にアクセスしようとするユーザーが認証済みかを確認し、未認証の場合はホームページへリダイレクトします。 - -```ts title="src/middleware.ts" -import { auth } from "../../../auth"; // Better Authインスタンスをインポート -import { defineMiddleware } from "astro:middleware"; - -export const onRequest = defineMiddleware(async (context, next) => { - const isAuthed = await auth.api - .getSession({ - headers: context.request.headers, - }) - if (context.url.pathname === "/dashboard" && !isAuthed) { - return context.redirect("/"); - } - return next(); -}); -``` - -### 次のステップ - -- [Better Auth Astroガイド](https://www.better-auth.com/docs/integrations/astro) -- [Astro用Better Authサンプル](https://github.com/better-auth/examples/tree/main/astro-example) -- [Better Authドキュメント](https://www.better-auth.com/docs) -- [Better Auth GitHubリポジトリ](https://github.com/better-auth/better-auth) - -## Clerk - -ClerkはUIコンポーネント、API、管理ダッシュボードを備えたユーザー管理サービスです。[公式Clerk SDK for Astro](https://clerk.com/docs/references/astro/overview) が提供されています。 - -### インストール - -任意のパッケージマネージャで `@clerk/astro` を追加します。 - -{post.description}
-{blok.description}
-{blok.description}
-{post.description}
-
-
著者: {author.data.name}
- - - -公開日: {entry.data.published.toDateString()}
-{blogPost.data.title} — {remarkPluginFrontmatter.readingTime}
-``` - -{frontmatter.pubDate.toISOString().slice(0,10)}
-``` -`toLocaleDateString`を使って日、月、年をフォーマットする例を見るには、Astro公式ブログテンプレートの[`公開年: {film.releaseDate}
-``` - -## ヘッドレスCMSからのfetch - -Astroコンポーネントは、お気に入りのCMSからデータを取得し、それをページコンテンツとしてレンダリングできます。[動的ルーティング](/ja/guides/routing/#動的ルーティング)を使用すれば、コンポーネントはCMSコンテンツをもとにページを生成できます。 - -StoryblokやContentful、WordPressなどのヘッドレスCMSとAstroを組み合わせる方法について詳しくは、[CMSガイド](/ja/guides/cms/)を参照してください。 - -## コミュニティリソース - -- [Creating a fullstack app with Astro + GraphQL](https://robkendal.co.uk/blog/how-to-build-astro-site-with-graphql/) diff --git a/src/content/docs/ja/guides/deploy/aws.mdx b/src/content/docs/ja/guides/deploy/aws.mdx deleted file mode 100644 index c5678f27f9f46..0000000000000 --- a/src/content/docs/ja/guides/deploy/aws.mdx +++ /dev/null @@ -1,280 +0,0 @@ ---- -title: AstroサイトをAWSにデプロイする -description: AWSを使ってAstroサイトをウェブにデプロイする方法。 -type: deploy -i18nReady: true ---- - -[AWS](https://aws.amazon.com/)は、Astroサイトのデプロイに使用できる、機能豊富なウェブアプリホスティングプラットフォームです。 - -プロジェクトをAWSにデプロイするには、[AWSコンソール](https://aws.amazon.com/console/)を使用する必要があります。(これらのアクションのほとんどは、[AWS CLI](https://aws.amazon.com/cli/)を使用しても実行できます)。このガイドでは、AWSにサイトをデプロイする手順を最も基本的な方法から説明します。その後、コスト効率とパフォーマンスを向上させるための追加サービスをデモンストレーションします。 - -## AWS Amplify - -AWS Amplifyは、フロントエンドのWebおよびモバイル開発者が、AWS上で迅速かつ容易にフルスタックアプリケーションを構築できるようにするという目的のために設計されたツールと機能のセットです。 - -1. 新しいAmplify Hostingプロジェクトを作成します。 -2. リポジトリをAmplifyに接続します。 -3. ビルド出力ディレクトリ `baseDirectory` を `/dist` に変更します。 - - ```yaml - version: 1 - frontend: - phases: - preBuild: - # npmを使用していない場合は、`npm ci` を `yarn install` または `pnpm i` に変更してください。 - commands: - - npm ci - build: - commands: - - npm run build - artifacts: - baseDirectory: /dist - files: - - '**/*' - cache: - paths: - - node_modules/**/* - ``` - -`pnpm` を使用する場合は、`node_modules` の代わりにpnpm storeディレクトリをキャッシュするために、設定を変更する必要があります。以下は推奨のビルド設定です. - - - ```yaml - version: 1 - frontend: - phases: - preBuild: - commands: - - npm i -g pnpm - - pnpm config set store-dir .pnpm-store - - pnpm i - build: - commands: - - pnpm run build - artifacts: - baseDirectory: /dist - files: - - '**/*' - cache: - paths: - - .pnpm-store/**/* - ``` - -Amplifyは、あなたがリポジトリにコミットをプッシュすると、自動的にあなたのウェブサイトをデプロイし、更新します。 - -## S3での静的ウェブサイトホスティング - -S3はあらゆるアプリケーションの出発点です。プロジェクトファイルやその他のアセットが保存されます。S3はファイルの保存容量とリクエスト数に対して課金されます。S3についての詳細は[AWS documentation](https://aws.amazon.com/s3/)を参照してください。 - -1. プロジェクト名を含んだS3バケットを作成します。 - - :::tip - バケット名はグローバルに一意でなければなりません。プロジェクト名とサイトのドメイン名の組み合わせをお勧めします。 - ::: - -2. **「パブリックアクセスをすべてブロック」**を無効にします。デフォルトでは、AWSはすべてのバケットを非公開に設定しています。公開するには、バケットのプロパティにある「パブリックアクセスをブロック」のチェックを外す必要があります。 - -3. `dist`にあるビルドしたファイルをS3にアップロードします。これは、コンソールで手動で行うか、AWS CLIを使用して行うことができます。AWS CLIを使用する場合は、[AWS認証情報で認証](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html)の後に、以下のコマンドを使用できます。 - - ``` - aws s3 cp dist/ s3://これは、テキストとボタンがあるサイドバーです。
-テキストとボタンを含むサイドバーがあります。
- -テキストとボタンを含むサイドバーがあります。
-テキスト
-テキスト
-``` - - -## 外部スタイル - -外部のグローバルなスタイルシートを参照する方法は2つあります。プロジェクトのソース内にあるファイルの場合はESMのインポート、`public/` ディレクトリにあるファイルやプロジェクトの外部でホストされているファイルの場合は絶対URLリンクになります。 - -`](#code-)(Shikiベース)
- [``
diff --git a/src/content/docs/ja/guides/testing.mdx b/src/content/docs/ja/guides/testing.mdx
deleted file mode 100644
index 215f55eabdc7e..0000000000000
--- a/src/content/docs/ja/guides/testing.mdx
+++ /dev/null
@@ -1,269 +0,0 @@
----
-title: テスト
-description: Astroでのテスト入門
-i18nReady: true
----
-import PackageManagerTabs from '~/components/tabs/PackageManagerTabs.astro'
-
-
-テストは、動作するAstroコードを書き、メンテナンスするために役立ちます。Astroは、Jest、Mocha、Jasmine、[Cypress](https://cypress.io)、[Playwright](https://playwright.dev)など、ユニットテスト、コンポーネントテスト、エンドツーエンド(E2E)テスト用の人気ツールを多数サポートしています。UIフレームワークのコンポーネントをテストするために、React Testing Libraryなど特定フレームワーク向けのテストライブラリをインストールすることもできます。
-
-テストフレームワークにより、コードが特定の状況でどのように動作するべきかについての**アサーション**または**期待値**を記述し、これらを現在のコードの実際の動作と比較できます。
-
-## Vitest
-
-esbuildによるESM、TypeScript、JSXサポートを備えた、Viteネイティブのユニットテストフレームワークです。
-
-Astroの`getViteConfig()`ヘルパーを[`vitest.config.ts`設定ファイル](https://vitest.dev/config/)で使用すると、Astroプロジェクトの設定ファイルによりVitestを設定できます。
-
-```js
-// vitest.config.ts
-import { getViteConfig } from 'astro/config';
-
-export default getViteConfig({
- test: {
- // Vitestの設定オプション
- },
-});
-```
-
-GitHubの[Astro + Vitestスターターテンプレート](https://github.com/withastro/astro/tree/latest/examples/with-vitest)を参照してください。
-
-## Cypress
-
-Cypressは、モダンなウェブのために作成されたフロントエンドテストツールです。Cypressにより、AstroサイトのE2Eテストを記述できます。
-
-### インストール
-
-お好みのパッケージマネージャーを使用してCypressをインストールできます。
-
-