more locale updates

This commit is contained in:
Sol Irvine 2023-10-09 07:34:59 +09:00
parent bc3db70bd9
commit 154bda33fe
3 changed files with 4 additions and 3 deletions

View File

@ -71,7 +71,7 @@ const noto = Noto_Serif_JP({
}); });
export function generateStaticParams() { export function generateStaticParams() {
return [{ locale: 'en' }, { locale: 'ja' }]; return [{ locale: 'ja' }, { locale: 'en' }];
} }
export default async function RootLayout({ export default async function RootLayout({

View File

@ -1,6 +1,7 @@
import OpengraphImage from 'components/opengraph-image'; import OpengraphImage from 'components/opengraph-image';
export const runtime = 'edge'; export const runtime = 'edge';
export const revalidate = 300; // 5 minutes in seconds
export default async function Image() { export default async function Image() {
return await OpengraphImage(); return await OpengraphImage();

View File

@ -4,8 +4,8 @@ import 'server-only';
// We enumerate all dictionaries here for better linting and typescript support // We enumerate all dictionaries here for better linting and typescript support
// We also get the default import for cleaner types // We also get the default import for cleaner types
const dictionaries = { const dictionaries = {
en: () => import('./en.json').then((module) => module.default), ja: () => import('./ja.json').then((module) => module.default),
ja: () => import('./ja.json').then((module) => module.default) en: () => import('./en.json').then((module) => module.default)
}; };
export const getDictionary = async (locale: SupportedLocale) => export const getDictionary = async (locale: SupportedLocale) =>