-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
next-i18next.config.js
34 lines (34 loc) · 1.08 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
module.exports = {
i18n: {
locales: ["de", "en", "ru", "uk"],
defaultLocale: "de",
},
backend: {
projectId: process.env.LOCIZE_PID || "",
apiKey: process.env.LOCIZE_API_KEY,
referenceLng: "de",
allowedAddOrUpdateHosts: ["localhost"],
},
locizeLastUsed: {
// locize project id
projectId: process.env.LOCIZE_PID || "",
apiKey: process.env.LOCIZE_API_KEY,
referenceLng: "de",
debounceSubmit: 90000,
allowedHosts: ["localhost"],
},
projectId: process.env.LOCIZE_PID || "",
use: [require("i18next-locize-backend/cjs"), require("locize-lastused/cjs")],
serializeConfig: false, // because of the custom use i18next plugin
debug: false, // process.env.NODE_ENV === "development",
fallbackLng: "de",
saveMissing: process.env.NODE_ENV === "development",
keySeparator: undefined,
defaultNS: "translation",
supportedLngs: ["de", "en", "uk", "ru"],
interpolation: {
escapeValue: false, // not needed for react as it escapes by default
},
// debug: true,
// saveMissing: true, // to not saveMissing to true for production
};