feat: initialize product-site app with Next.js, i18n routing, and custom brand configurations

This commit is contained in:
Firman Ramdhani
2026-07-29 15:29:35 +07:00
parent fcea8f221b
commit eb63a48047
32 changed files with 5829 additions and 196 deletions
+15
View File
@@ -0,0 +1,15 @@
import {getRequestConfig} from 'next-intl/server';
import {routing} from './routing';
export default getRequestConfig(async ({requestLocale}) => {
let locale = await requestLocale;
if (!locale || !routing.locales.includes(locale as any)) {
locale = routing.defaultLocale;
}
return {
locale,
messages: (await import(`../../messages/${locale}.json`)).default
};
});