import { getRequestConfig } from 'next-intl/server'; import { routing } from './routing'; /** * Per-request next-intl configuration. * Loads the aggregated messages file for the resolved locale. */ export default getRequestConfig(async ({ requestLocale }) => { const locale = (await requestLocale) ?? routing.defaultLocale; return { locale, // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment messages: (await import(`../messages/${locale}.json`)).default, }; });