add language switch, add german

This commit is contained in:
Manuel Ruwe
2022-08-24 17:58:14 +02:00
parent 6d0a31f79e
commit 4d757ccf66
44 changed files with 578 additions and 429 deletions

View File

@@ -1,10 +1,13 @@
import { Text } from '@mantine/core';
import { useTranslation } from 'next-i18next';
interface TipProps {
children: React.ReactNode;
}
export default function Tip(props: TipProps) {
const { t } = useTranslation('common');
return (
<Text
style={{
@@ -13,7 +16,8 @@ export default function Tip(props: TipProps) {
marginBottom: '0.5rem',
}}
>
Tip: {props.children}
{t('tip')}
{props.children}
</Text>
);
}