# General Translation Changelog: gt-next 11.1.3: Pages Router 向けのネイティブロケールルーティング
URL: https://generaltranslation.com/ja/blog/gt-next_v11_1_3.mdx
Docs index: https://generaltranslation.com/llms.txt
Description: 
Authors: Ernest McCarter
Published: 2026-07-29

## 概要

`gt-next` v11.1.3 では、Pages Router アプリで Next.js の国際化ルーティングを使用します。ロケールプレフィックス付き URL、リクエストロケールのコンテキスト、ブラウザー検出、クライアント側ナビゲーションは Next.js が担い、`gt-next` は対応する翻訳スナップショットを読み込みます。セットアップ全体については、更新された [Next.js Pages Router Quickstart](/docs/react/nextjs-pages-router-quickstart) を参照してください。

## Pages Router のロケールを設定する

`gt.config.json` で使用しているロケール設定と同じものを `next.config.ts` にインポートします。

```ts title="next.config.ts"
import type { NextConfig } from 'next';
import { withGTConfig } from 'gt-next/config';
import gtConfig from './gt.config.json';

const nextConfig: NextConfig = {
  i18n: {
    locales: gtConfig.locales,
    defaultLocale: gtConfig.defaultLocale,
  },
};

export default withGTConfig(nextConfig);
```

`locales` 配列には `defaultLocale` を含める必要があります。ページは引き続き `pages` 直下に配置します。`pages/[locale]` セグメントと `gt-next` ミドルウェアは、推奨される Pages Router の設定には含まれなくなりました。

[`withGTServerSideProps`](/docs/react/nextjs-pages-router-quickstart) と [`withGTStaticProps`](/docs/react/nextjs/pages-router-static-site-generation) は、Next.js のデータ関数のコンテキストからロケールを読み取ります。ロケールの選択には、ロケール対応の Pages Router ナビゲーションと `NEXT_LOCALE` 設定用 cookie を使用します。

## Sitemap

See the full [sitemap](https://generaltranslation.com/sitemap.md) for all pages.
