Add Chinese translation (Thank you copilot, and I swear I reviewed the code carefully)

This commit is contained in:
lyc8503 committed 2025-12-23 23:22:33 +08:00
1 parent 77cdf19f7d
commit e9d8a1c842
16 files changed
+324 -68

No files matched your search

+4 -2
View File
@@ -1,7 +1,9 @@
import { Alert, Text } from '@mantine/core'
import { IconInfoCircle } from '@tabler/icons-react'
import { useTranslation } from 'react-i18next'
export default function NoIncidentsAlert({ style }: { style?: React.CSSProperties }) {
const { t } = useTranslation('common')
return (
<Alert
icon={<IconInfoCircle />}
@@ -12,7 +14,7 @@ export default function NoIncidentsAlert({ style }: { style?: React.CSSPropertie
fontWeight: 700,
}}
>
{'No incidents in this month'}
{t('No incidents in this month')}
</span>
}
color="gray"
@@ -23,7 +25,7 @@ export default function NoIncidentsAlert({ style }: { style?: React.CSSPropertie
...style,
}}
>
<Text>There are no incidents for this month.</Text>
<Text>{t('There are no incidents for this month')}</Text>
</Alert>
)
}