d62bb8d3ad
Marketing website for Meezi platform: - Server-side rendered pages: home, demo, blog, pricing - RTL/Farsi layout with Vazirmatn font - SEO metadata and Open Graph tags - proxy.ts for Next.js 16 middleware convention - MEEZI_API_URL internal Docker network routing Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
15 lines
437 B
TypeScript
15 lines
437 B
TypeScript
import { getRequestConfig } from "next-intl/server";
|
|
import { hasLocale } from "next-intl";
|
|
import { routing } from "./routing";
|
|
|
|
export default getRequestConfig(async ({ requestLocale }) => {
|
|
const requested = await requestLocale;
|
|
const locale = hasLocale(routing.locales, requested)
|
|
? requested
|
|
: routing.defaultLocale;
|
|
return {
|
|
locale,
|
|
messages: (await import(`../../messages/${locale}.json`)).default,
|
|
};
|
|
});
|