add some zh-CN translations

This commit is contained in:
myl7
2022-02-06 06:55:38 +08:00
parent 5bd04045b1
commit 85b51fe5c1
8 changed files with 128 additions and 32 deletions
+4 -1
View File
@@ -2,13 +2,16 @@ import type { ParsedUrlQuery } from 'querystring'
import Link from 'next/link'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { useTranslation } from 'next-i18next'
const HomeCrumb = () => {
const { t } = useTranslation()
return (
<Link href="/">
<a>
<FontAwesomeIcon className="h-3 w-3" icon={['far', 'flag']} />
<span className="ml-2 font-medium">Home</span>
<span className="ml-2 font-medium">{t('Home')}</span>
</a>
</Link>
)