rsnext/examples/with-next-translate/app/layout.js
Aral Roca Gomez 03fe3f6330
docs: update with-next-translate example using appdir (#51720)
I updated the with-next-translate example using the app directory and
updated to current versions

---------

Co-authored-by: JJ Kasper <jj@jjsweb.site>
2023-06-23 13:39:07 -07:00

30 lines
686 B
JavaScript

import useTranslation from 'next-translate/useTranslation'
import './style.css'
export const metadata = {
title: 'Next.js',
}
export default function Layout(props) {
const { t } = useTranslation()
return (
<div className="container">
{props.children}
<footer>
<span>{t('common:powered')} </span>
<a href="https://vercel.com" target="_blank" rel="noopener noreferrer">
vercel
</a>
<span>&amp;</span>
<a
href="https://github.com/vinissimus/next-translate"
target="_blank"
rel="noopener noreferrer"
>
next-translate
</a>
</footer>
</div>
)
}