Apps, web, i18n, UI, partners, payouts, backoffice, bariki, prod infra
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
45d7512d2b
commit
3489e0b816
319 files changed
+45483
-121
No files matched your search
@@ -0,0 +1,22 @@
|
||||
import { isLocale, LOCALES } from '@barev/i18n';
|
||||
import { notFound } from 'next/navigation';
|
||||
import { LegalDocument, legalMetadata } from '../../../components/legal';
|
||||
|
||||
export const dynamicParams = false;
|
||||
export function generateStaticParams() {
|
||||
return LOCALES.map((locale) => ({ locale }));
|
||||
}
|
||||
|
||||
/** Разделы по порядку; тексты — refund.<id>.title / refund.<id>.body */
|
||||
const SECTIONS = ['cancelClient', 'cancelUs', 'quality', 'subscription', 'nonRefundable', 'howTo', 'timing'] as const;
|
||||
|
||||
export function generateMetadata({ params }: { params: Promise<{ locale: string }> }) {
|
||||
return legalMetadata(params, 'refund');
|
||||
}
|
||||
|
||||
/** Правила отмены и возврата денег. Основной текст на русском, переводы needs_review */
|
||||
export default async function Page({ params }: { params: Promise<{ locale: string }> }) {
|
||||
const { locale } = await params;
|
||||
if (!isLocale(locale)) notFound();
|
||||
return <LegalDocument locale={locale} ns="refund" sections={SECTIONS} />;
|
||||
}
|
||||
Reference in new issue
Block a user