Unverified Commit 2865e182 authored by Aral Roca Gomez's avatar Aral Roca Gomez Committed by GitHub

examples: fix next-translate prod hydration error in layout (#52653)

Co-authored-by: 's avatarLee Robinson <me@leerob.io>
parent 1bf2b74f
...@@ -6,15 +6,20 @@ export const metadata = { ...@@ -6,15 +6,20 @@ export const metadata = {
}; };
export default function Layout(props) { export default function Layout(props) {
const { t } = useTranslation(); const { t, lang } = useTranslation();
return ( return (
<div className="container"> <html lang={lang}>
<body className="container">
{props.children} {props.children}
<footer> <footer>
<span>{t("common:powered")} </span> <span>{t("common:powered")} </span>
<a href="https://vercel.com" target="_blank" rel="noopener noreferrer"> <a
▲ vercel href="https://vercel.com"
target="_blank"
rel="noopener noreferrer"
>
▲ Vercel
</a> </a>
<span>&amp;</span> <span>&amp;</span>
<a <a
...@@ -25,6 +30,7 @@ export default function Layout(props) { ...@@ -25,6 +30,7 @@ export default function Layout(props) {
next-translate next-translate
</a> </a>
</footer> </footer>
</div> </body>
</html>
); );
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment