0
0
mirror of https://github.com/yude-jp/yude.jp synced 2024-12-22 20:20:09 +09:00

Add translation in title tag

This commit is contained in:
yude 2021-02-08 17:01:35 +09:00
parent cb3ce63e78
commit 32b327df34

View File

@ -15,10 +15,11 @@ export default function Index(props) {
const router = useRouter()
const { locale, locales, defaultLocale, pathname } = router
const { t, lang } = useTranslation("index")
const home = t('home')
return (
<Layout title="ホーム">
<Layout title="{home}">
<Navbar />
<div className="my-9">
<div class="m-10">