init create-fias

This commit is contained in:
Samandar Turgunboyev
2025-12-12 11:21:30 +05:00
commit a5b46a9f26
76 changed files with 36104 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
import { getRequestConfig } from 'next-intl/server';
import { hasLocale } from 'next-intl';
import { routing } from './routing';
export default getRequestConfig(async ({ requestLocale }) => {
// Typically corresponds to the `[locale]` segment
const requested = await requestLocale;
const locale = hasLocale(routing.locales, requested)
? requested
: routing.defaultLocale;
return {
locale,
messages: (await import(`./messages/${locale}.json`)).default,
};
});