mirror of
https://github.com/vercel/commerce.git
synced 2025-05-19 07:56:59 +00:00
more locale updates
This commit is contained in:
parent
bc3db70bd9
commit
154bda33fe
@ -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({
|
||||||
|
@ -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();
|
||||||
|
@ -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) =>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user