This example uses rosetta, react hooks and context to provide a SSR, SSG, CSR compatible i18n solution.
In next.config.js
you can configure the fallback language.
Deploy the example using Vercel:
Execute create-next-app
with npm or Yarn to bootstrap the example:
npm install
npm run dev
# or
yarn add
npm run dev
Deploy it to the cloud with Vercel (Documentation).