- Updated .env.example with legal operator details for compliance. - Refactored Impressum, Privacy, and Terms pages to utilize a new LegalDocument component for improved structure and maintainability. - Enhanced localization files to include legal content in both German and English, ensuring accurate representation of legal information. - Improved i18n handling to support locale detection from Accept-Language headers.
14 lines
396 B
TypeScript
14 lines
396 B
TypeScript
import { LegalDocument } from '@/components/site/legal-document';
|
|
import { LegalShell } from '@/components/site/legal-shell';
|
|
import { getLocale, t } from '@/lib/i18n';
|
|
|
|
export default async function TermsPage() {
|
|
const locale = await getLocale();
|
|
|
|
return (
|
|
<LegalShell title={t(locale, 'legal.terms.title')}>
|
|
<LegalDocument locale={locale} page="terms" />
|
|
</LegalShell>
|
|
);
|
|
}
|