i18n.js 379 B

12345678910111213141516
  1. const NextI18Next = require('next-i18next').default;
  2. const NextI18NextInstance = new NextI18Next({
  3. defaultNS: 'common',
  4. localePath: 'public/static/locales',
  5. lowerCaseLng: true,
  6. localeSubpaths: {
  7. 'zh-tw': 'zh-tw',
  8. 'zh-cn': 'zh-cn',
  9. ja: 'ja',
  10. },
  11. defaultLanguage: 'en',
  12. otherLanguages: ['zh-tw', 'zh-cn', 'ja'],
  13. });
  14. module.exports = NextI18NextInstance;