DPDK Architecture  ->  Library (v3.4.4)

Language

<Language /> can be used to navigate between languages.

Usage

The Language component is based on the Link component and offers an extra language parameter.

Examples

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 modifiedThursday, July 1, 2021, 3:16:43 PM UTC
Last authorColin van Eenige
Commit IDcb1689a