15 lines
378 B
JavaScript
15 lines
378 B
JavaScript
import { createI18nServer } from 'next-international/server'
|
|
|
|
export const { getI18n, getScopedI18n, getCurrentLocale, getStaticParams } = createI18nServer(
|
|
{
|
|
ko: () => import('./ko'),
|
|
ja: () => import('./ja'),
|
|
},
|
|
{
|
|
// Uncomment to use custom segment name
|
|
// segmentName: 'locale',
|
|
// Uncomment to set fallback locale
|
|
// fallbackLocale: en,
|
|
},
|
|
)
|