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 Batteriegesetzhinweise = () => {
|
||||
const { t } = useTranslation('legal-batterie');
|
||||
|
||||
const content = (
|
||||
<>
|
||||
<Typography variant="body1" paragraph>
|
||||
@@ -29,7 +32,7 @@ const Batteriegesetzhinweise = () => {
|
||||
</>
|
||||
);
|
||||
|
||||
return <LegalPage title="Batteriegesetzhinweise" content={content} />;
|
||||
return <LegalPage title={t ? t('title') : 'Batteriegesetzhinweise'} content={content} />;
|
||||
};
|
||||
|
||||
export default Batteriegesetzhinweise;
|
||||
Reference in New Issue
Block a user