onedrive/next-i18next.config.js
2022-02-06 20:09:59 +08:00

14 lines
337 B
JavaScript

const path = require('path')
module.exports = {
i18n: {
defaultLocale: 'en',
locales: ['en', 'zh-CN']
},
localePath: path.resolve('public/locales'),
reloadOnPrerender: process.env.NODE_ENV === 'development',
keySeparator: false,
namespaceSeparator: false,
pluralSeparator: '——',
contextSeparator: '——'
}