Skip to content

Instantly share code, notes, and snippets.

@weianofsteel
Last active April 17, 2021 10:02
Show Gist options
  • Save weianofsteel/822df38f02107fa6a07e1fcc12be79f5 to your computer and use it in GitHub Desktop.
Save weianofsteel/822df38f02107fa6a07e1fcc12be79f5 to your computer and use it in GitHub Desktop.
i18n without localeSubpaths
const NextI18Next = require('next-i18next').default
const localeSubpaths = require('next/config').default().publicRuntimeConfig
const path = require('path')
module.exports = new NextI18Next({
defaultLanguage:'en',
otherLanguages: ['zhHant', 'fr', 'es'],
localePath: path.resolve('./public/static/locales')
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment