Setup Multilanguage with i18n and react-i18next in Next JS

Create Project with Yarn or NPX

yarn create next-app --typescript

go to “next-multilanguage” folder

edit file “next.config.js” like below

const nextConfig = {
  reactStrictMode: true,
  i18n: {
    locales: ['id', 'en'],
    defaultLocale: 'id',
    localeDetection: false
  }
}

module.exports = nextConfig

run “yarn dev” and open your browser