Add Chinese translation (Thank you copilot, and I swear I reviewed the code carefully)
This commit is contained in:
1 parent
77cdf19f7d
commit
e9d8a1c842
16 files changed
+324
-68
No files matched your search
@@ -2,8 +2,10 @@ import { Container, Group, Image } from '@mantine/core'
|
||||
import classes from '@/styles/Header.module.css'
|
||||
import { pageConfig } from '@/uptime.config'
|
||||
import { PageConfigLink } from '@/types/config'
|
||||
import { useTranslation } from 'react-i18next'
|
||||
|
||||
export default function Header({ style }: { style?: React.CSSProperties }) {
|
||||
const { t } = useTranslation('common')
|
||||
const linkToElement = (link: PageConfigLink, i: number) => {
|
||||
return (
|
||||
<a
|
||||
@@ -18,7 +20,7 @@ export default function Header({ style }: { style?: React.CSSProperties }) {
|
||||
)
|
||||
}
|
||||
|
||||
const links = [{ label: 'Incidents', link: '/incidents' }, ...(pageConfig.links || [])]
|
||||
const links = [{ label: t('Incidents'), link: '/incidents' }, ...(pageConfig.links || [])]
|
||||
|
||||
return (
|
||||
<header className={classes.header} style={style}>
|
||||
|
||||
Reference in new issue
Block a user