0
0
mirror of https://github.com/yude-jp/yude.jp synced 2025-04-07 07:37:27 +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 router = useRouter()
const { locale, locales, defaultLocale, pathname } = router const { locale, locales, defaultLocale, pathname } = router
const { t, lang } = useTranslation("index") const { t, lang } = useTranslation("index")
const home = t('home')
return ( return (
<Layout title="ホーム"> <Layout title="{home}">
<Navbar /> <Navbar />
<div className="my-9"> <div className="my-9">
<div class="m-10"> <div class="m-10">