- Add next-intl package and remove next-i18next - Configure next-intl plugin in next.config.js - Create i18n configuration with locale settings - Setup i18n request handler and navigation utilities - Define supported locales (en, ja) with English as default 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
9 lines
251 B
TypeScript
9 lines
251 B
TypeScript
import {createNavigation} from 'next-intl/navigation'
|
|
import {locales, defaultLocale} from '../i18n.config'
|
|
|
|
export const {Link, useRouter, usePathname, useSearchParams} = createNavigation({
|
|
locales,
|
|
defaultLocale,
|
|
localePrefix: 'as-needed'
|
|
})
|
|
|