Add legal document translations: Introduced new legal sections for AGB, Impressum, Datenschutz, Widerrufsrecht, and Batteriegesetzhinweise. Updated components to utilize translation hooks for dynamic content rendering, ensuring accurate localization of legal terms and conditions.
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
import React from 'react';
|
||||
import { Typography } from '@mui/material';
|
||||
import LegalPage from './LegalPage.js';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
|
||||
const Widerrufsrecht = () => {
|
||||
const { t } = useTranslation('legal-widerruf');
|
||||
|
||||
const content = (
|
||||
<>
|
||||
<Typography variant="body1" paragraph>
|
||||
@@ -40,7 +43,7 @@ const Widerrufsrecht = () => {
|
||||
</>
|
||||
);
|
||||
|
||||
return <LegalPage title="Widerrufsrecht" content={content} />;
|
||||
return <LegalPage title={t ? t('title') : 'Widerrufsrecht'} content={content} />;
|
||||
};
|
||||
|
||||
export default Widerrufsrecht;
|
||||
Reference in New Issue
Block a user