-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathnext-i18next.config.js
38 lines (36 loc) · 1 KB
/
next-i18next.config.js
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
28
29
30
31
32
33
34
35
36
37
38
module.exports = {
// https://www.i18next.com/overview/configuration-options#logging
debug: process.env.NODE_ENV === 'development',
i18n: {
defaultLocale: 'en',
locales: ['en', 'fr'],
},
ns: ['resource'],
defaultNS: 'resource',
defaultValue: '__STRING_NOT_TRANSLATED__',
/** To avoid issues when deploying to some paas (vercel...) */
localePath:
typeof window === 'undefined'
? require('path').resolve('./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 }
};
// const path = require('path')
// module.exports = {
// i18n: {
// defaultLocale: "fr",
// locales: ["en", "fr"],
// },
// localePath: path.resolve('./public/locales'),
// // react: {
// // useSuspense: false,
// // wait: true
// // }
// };