Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
16 lines
608 B
TypeScript
16 lines
608 B
TypeScript
import { createT, isLocale, LOCALES } from '@barev/i18n';
|
|
import { OG_SIZE, ogImage } from '../../../lib/og';
|
|
|
|
export const size = OG_SIZE;
|
|
export const contentType = 'image/png';
|
|
export function generateStaticParams() {
|
|
return LOCALES.map((locale) => ({ locale }));
|
|
}
|
|
|
|
/** OG-картинка страницы заказа уборки */
|
|
export default async function OgImage({ params }: { params: Promise<{ locale: string }> }) {
|
|
const { locale } = await params;
|
|
const t = createT(isLocale(locale) ? locale : 'ru');
|
|
return ogImage(t('landing.clean.meta.title').replace(/ — Barev Club$/, ''));
|
|
}
|