forked from dashpresshq/dashpress
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lingui.config.js
54 lines (50 loc) · 1.18 KB
/
lingui.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
const { formatter } = require("@lingui/format-po");
const locales = [
"en-us", // english
"zh-cn", // chinese (simplified)
"zh-tw", // chinese (traditional)
"fr-fr", // french
"es-es", // spanish
"de-de", // german
"it-it", // italian
"ru-ru", // russian
"ja-jp", // japanese
"pt-br", // portuguese
"ko-kr", // korean
// "bn-in", // bengali
// "ar-sa", // arabic
// "pl-pl", // polish
// "tr-tr", // turkish
// "vi-vn", // vietnamese
// "id-id", // indonesian
// "uk-ua", // ukrainian
// "hu-hu", // hungarian
// "ro-ro", // romanian
// "sv-se", // swedish
// "nl-nl", // dutch
// "fa-ir", // persian
// "cs-cz", // czech
// "el-gr", // greek
// "th-th", // thai
// "he-il", // hebrew
];
if (process.env.NODE_ENV !== "production") {
locales.push("pseudo");
}
/** @type {import('@lingui/conf').LinguiConfig} */
module.exports = {
locales,
sourceLocale: "en-us",
pseudoLocale: "pseudo",
catalogs: [
{
path: "<rootDir>/src/translations/locales/{locale}",
include: [
"<rootDir>/src/frontend",
"<rootDir>/src/shared",
"<rootDir>/src/backend",
],
},
],
format: formatter({ origins: false }),
};