DEV Community

loading...
Cover image for Next-translate 1.0 demo - I18n your Next.js +10 pages in an easy way

Next-translate 1.0 demo - I18n your Next.js +10 pages in an easy way

aralroca profile image Aral Roca ・1 min read

I want to share a small demo of what version 1.0 of next-translate will be like.

Now with Next.js +10 the i18n routing support is in the core, but we still need an easy system to load the translations without having to overwrite page by page the getStaticProps, getInitialProps, or getServerSideProps methods. Next-translate offers a solution through a Next.js plugin that automatically loads only the necessary files for each page and language. Fully compatible with SSG.

GitHub: https://github.com/vinissimus/next-translate/tree/1.0.0-experimental

Discussion

pic
Editor guide