@3nvi/gatsby-starter-intl
Version:
A gatsby starter to help create i18n applications
20 lines (16 loc) • 453 B
JavaScript
import React from "react"
import { useTranslation, Link } from "@3nvi/gatsby-theme-intl"
import Layout from "../components/layout"
import SEO from "../components/seo"
const SecondPage = () => {
const { t } = useTranslation()
return (
<Layout>
<SEO title="Page two" />
<h1>{t("home.greeting")}</h1>
<p>{t("home.details")}</p>
<Link to="/">{t("common.goToHomePage")}</Link>
</Layout>
)
}
export default SecondPage