chore: update frontend dependencies and fix deprecated method use (#140)

This commit is contained in:
kimatata
2025-02-24 08:45:47 +09:00
committed by GitHub
parent 6ed6865a01
commit 050b2aa0ec
28 changed files with 3878 additions and 2761 deletions

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,
};
});