feat(header): Update locales

This commit is contained in:
web@ppanel 2024-12-01 16:02:54 +07:00
parent 13fdec319a
commit bfb6c27028
3 changed files with 6 additions and 1 deletions

View File

@ -6,10 +6,13 @@ import Image from 'next/legacy/image';
import Link from 'next/link';
import LanguageSwitch from './language-switch';
// import { MobileSidebar } from './mobile-sidebar';
import { useTranslations } from 'next-intl';
import ThemeSwitch from './theme-switch';
import { UserNav } from './user-nav';
export default function Header() {
const t = useTranslations('common');
const { common, user } = useGlobalStore();
const { site } = common;
const Logo = (
@ -37,7 +40,7 @@ export default function Header() {
size: 'sm',
})}
>
/
{t('login')}
</Link>
)}
</div>

View File

@ -16,6 +16,7 @@
"rowsPerPage": "Rows per page",
"selectedItems": "{total} items selected"
},
"login": "Log in / Sign up",
"request": {
"10001": "Database query failed, please try again later",
"10002": "Data update failed, please try again later",

View File

@ -16,6 +16,7 @@
"rowsPerPage": "每页行数",
"selectedItems": "已选择 {total} 行"
},
"login": "登录/注册",
"request": {
"10001": "数据库查询失败,请稍后重试",
"10002": "数据更新失败,请稍后重试",