i18n(ja): recipes/build-forms-api#12421
Conversation
✅ Deploy Preview for astro-docs-2 ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
Lunaria Status Overview🌕 This pull request will trigger status changes. Learn moreBy default, every PR changing files present in the Lunaria configuration's You can change this by adding one of the keywords present in the Tracked Files
Warnings reference
|
There was a problem hiding this comment.
Pull Request Overview
This PR adds a Japanese translation for the "build-forms-api" recipe documentation, translating content from English to Japanese while maintaining the same technical structure and code examples.
- Complete Japanese translation of the build-forms-api recipe documentation
- Preserves all original code examples and technical content
- Maintains proper markdown formatting and component structure
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| ```ts title="src/pages/api/feedback.ts" "request.formData()" "post" | ||
| export const prerender = false; // Not needed in 'server' mode | ||
| import type { APIRoute } from "astro"; | ||
|
|
||
| export const POST: APIRoute = async ({ request }) => { | ||
| const data = await request.formData(); | ||
| const name = data.get("name"); | ||
| const email = data.get("email"); | ||
| const message = data.get("message"); | ||
| // Validate the data - you'll probably want to do more than this | ||
| if (!name || !email || !message) { | ||
| return new Response( | ||
| JSON.stringify({ | ||
| message: "Missing required fields", | ||
| }), | ||
| { status: 400 } | ||
| ); | ||
| } | ||
| // Do something with the data, then return a success response |
There was a problem hiding this comment.
There are a few comments missing translation here, could you take a look and translate them? 🙌
| この例ではメッセージを含むJSONオブジェクトをクライアントへ返します。 | ||
|
|
||
| ```ts title="src/pages/api/feedback.ts" "request.formData()" "post" | ||
| export const prerender = false; // Not needed in 'server' mode |
There was a problem hiding this comment.
Only one comment missing @Kenzo-Wada, then we are good to go!
|
Pinging here again in case you missed the notification from my last comment @Kenzo-Wada! No rush, though! |
977e4ca to
cc2a4e3
Compare
* main: (107 commits) i18n(zh-cn): Update `markdown-content.mdx` (withastro#12580) i18n(zh-tw): update `basics/astro-components.mdx` (withastro#12592) i18n(fr): update `recipes/bun.mdx` (withastro#12595) i18n(ko-KR): update `publish-to-npm.mdx` (withastro#12599) i18n(fr): update `reference/publish-to-npm.mdx` (withastro#12600) docs: Fix brand name capitalisation (npm) in `publish-to-npm.mdx` (withastro#12507) chore(deps): update dependency node to v22.21.0 (withastro#12598) i18n(fr): update `experimental-flags/live-content-collections.mdx` (withastro#12593) i18n(fr): update code snippet in `guides/testing.mdx` (withastro#12594) i18n(ko-KR): update `testing.mdx` (withastro#12589) ci: update docs contributors (withastro#12590) Update Vitest reference type in testing guide (withastro#12588) i18n(ja): recipes/build-forms-api (withastro#12421) i18n(ko-KR): update `live-content-collections.mdx` (withastro#12585) i18n(ko-KR): update `bun.mdx` (withastro#12586) Remove `maxAge` from live collection docs (withastro#12571) i18n(zh-cn): Update `fonts.mdx` (withastro#12526) i18n(zh-cn): Update `content-collections.mdx` (withastro#12531) i18n(de): Update “Why Astro?” with “better” German typography [i18nIgnore] (withastro#12538) i18n(zh-tw): update `editor-setup.mdx` (withastro#12573) ...
* main: (107 commits) i18n(zh-cn): Update `markdown-content.mdx` (withastro#12580) i18n(zh-tw): update `basics/astro-components.mdx` (withastro#12592) i18n(fr): update `recipes/bun.mdx` (withastro#12595) i18n(ko-KR): update `publish-to-npm.mdx` (withastro#12599) i18n(fr): update `reference/publish-to-npm.mdx` (withastro#12600) docs: Fix brand name capitalisation (npm) in `publish-to-npm.mdx` (withastro#12507) chore(deps): update dependency node to v22.21.0 (withastro#12598) i18n(fr): update `experimental-flags/live-content-collections.mdx` (withastro#12593) i18n(fr): update code snippet in `guides/testing.mdx` (withastro#12594) i18n(ko-KR): update `testing.mdx` (withastro#12589) ci: update docs contributors (withastro#12590) Update Vitest reference type in testing guide (withastro#12588) i18n(ja): recipes/build-forms-api (withastro#12421) i18n(ko-KR): update `live-content-collections.mdx` (withastro#12585) i18n(ko-KR): update `bun.mdx` (withastro#12586) Remove `maxAge` from live collection docs (withastro#12571) i18n(zh-cn): Update `fonts.mdx` (withastro#12526) i18n(zh-cn): Update `content-collections.mdx` (withastro#12531) i18n(de): Update “Why Astro?” with “better” German typography [i18nIgnore] (withastro#12538) i18n(zh-tw): update `editor-setup.mdx` (withastro#12573) ...
Description (required)
japanese translation for
//recipes/build-forms-api/