# General Translation React SDKs (gt-react, gt-next): Tx URL: https://generaltranslation.com/ja/docs/react/nextjs/reference/components/tx.mdx --- title: Tx description: General Translation を使用して、Next.js App Router のサーバーコンポーネントでリクエスト時に JSX を翻訳します。Tx の API リファレンス。 --- `` コンポーネントは、General Translation API を通じてリクエスト時に JSX を翻訳します。build time には内容が確定しない動的コンテンツに使用し、静的なソースコンテンツには [``](/docs/react/reference/components/t) を使用してください。 `` はサーバー専用で、Pages Router では動作しません。 ## 概要 [#overview] ```tsx import { Tx } from 'gt-next/server'; Welcome back; ``` ## Props [#props] | Prop | 説明 | Type | Optional | Default | | ------------ | ---------------------- | ----------- | -------- | ------------- | | `children` | 翻訳する JSX コンテンツ。 | `ReactNode` | いいえ | — | | `context` | 翻訳の指針となるコンテキスト。 | `string` | はい | — | | `maxChars` | 翻訳後のコンテンツの最大文字数。 | `number` | はい | — | | `locale` | 対象ロケールの上書き。 | `string` | はい | 現在のリクエストのロケール | | `[variable]` | 翻訳後のコンテンツに挿入される名前付き変数。 | `ReactNode` | はい | — | ## 戻り値 [#returns] **型** `Promise` ## 例 [#example] ```tsx title="app/profile/page.tsx" import { Tx } from 'gt-next/server'; export default async function ProfilePage() { return Welcome back; } ```