mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-10 07:25:48 +01:00
✨ add language switch, add german
This commit is contained in:
@@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user