feat(website): add next-intl i18n and dark mode support

This commit is contained in:
justsisyphus
2026-01-24 05:20:20 +09:00
parent 21c7d29c1d
commit 894a0fa849
19 changed files with 392 additions and 57 deletions
+15
View File
@@ -0,0 +1,15 @@
import { getRequestConfig } from 'next-intl/server';
import { routing } from './config';
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
};
});