<Language />
can be used to navigate between languages.
The Language component is based on the Link component and offers an extra language parameter.
function Home() {
const { locale } = useRouter();
return (
<>
<div>Current locale: {locale}</div>
<Language language="en">EN</Language>
<Language language="nl">NL</Language>
</>
);
}
To get glossary based on the locale you can use the useGlossary
utility provided here.
Last modified | Thursday, July 1, 2021, 3:16:43 PM UTC |
Last author | Colin van Eenige |
Commit ID | cb1689a |