mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 21:13:50 +00:00

* feat: optimize i18n implementation for better localization * delete i18n-ally-custom-framework.yml * update common key
16 lines
366 B
JavaScript
16 lines
366 B
JavaScript
//next-i18next.config.js
|
|
/**
|
|
* @type {import('next-i18next').UserConfig}
|
|
*/
|
|
|
|
module.exports = {
|
|
i18n: {
|
|
defaultLocale: 'zh',
|
|
locales: ['en', 'zh'],
|
|
localeDetection: false
|
|
},
|
|
localePath:
|
|
typeof window === 'undefined' ? require('path').resolve('../../packages/web/i18n') : '/i18n',
|
|
reloadOnPrerender: process.env.NODE_ENV === 'development'
|
|
}
|