yo-next-auth/locales/server.ts

9 lines
228 B
TypeScript

import { createI18nServer } from 'next-international/server'
import { importLocales } from '@/config/locales'
export const {
getI18n,
getScopedI18n,
getCurrentLocale,
getStaticParams,
} = createI18nServer(importLocales)