import { getRequestConfig } from 'next-intl/server' // English-only. Other locales were listed historically but have no message // files, which caused browsers with non-English Accept-Language to be routed // to a missing bundle. Keep in sync with messages/*.json. export const locales = ['en'] as const export type Locale = (typeof locales)[number] export const defaultLocale: Locale = 'en' export default getRequestConfig(async ({ requestLocale }) => { const locale = (await requestLocale) ?? defaultLocale return { locale, messages: (await import(`./messages/${locale}.json`)).default, } })