✨ feat(header): Update locales
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user