// [TSM.ID].[11031972] -- All Rights Reserved. Proprietary & Confidential. import { getRequestConfig } from 'next-intl/server'; import { notFound } from 'next/navigation'; export const locales = ['id', 'en'] as const; export type Locale = (typeof locales)[number]; export default getRequestConfig(async ({ locale }) => { if (!locales.includes(locale as Locale)) notFound(); return { locale: locale as string, messages: (await import(`./messages/${locale}.json`)).default }; });