-
-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathnext-i18next.config.js
More file actions
27 lines (25 loc) · 752 Bytes
/
next-i18next.config.js
File metadata and controls
27 lines (25 loc) · 752 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/**
* @type {import('next-i18next').UserConfig}
*/
module.exports = {
// https://www.i18next.com/overview/configuration-options#logging
// debug: process.env.NODE_ENV === 'development',
debug: false,
i18n: {
defaultLocale: 'en',
locales: ['en', 'pt', 'zh', 'zht', 'jp'],
},
/** To avoid issues when deploying to some paas (vercel...) */
localePath:
typeof window === 'undefined'
? require('path').resolve('./renderer/public/locales')
: '/locales',
reloadOnPrerender: process.env.NODE_ENV === 'development',
/**
* @link https://github.com/i18next/next-i18next#6-advanced-configuration
*/
// saveMissing: false,
// strictMode: true,
// serializeConfig: false,
// react: { useSuspense: false }
}