-
Notifications
You must be signed in to change notification settings - Fork 10
/
lingui.config.js
41 lines (39 loc) · 1.06 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
import { formatter } from '@lingui/format-po';
const locales = ['en', 'ko', 'ja', 'zh-Hans', 'zh-Hant', 'pseudo'];
/** @type {import('@lingui/conf').LinguiConfig} */
export default {
locales,
sourceLocale: 'en',
pseudoLocale: 'pseudo',
compileNamespace: 'es',
catalogs: [
{
path: 'src/locales/{locale}/messages',
include: [
'src/app/**',
'src/configs/**',
'src/components/**',
'src/constants/**',
'src/connectors/**',
'src/helpers/**',
'src/hooks/**',
'src/providers/**',
'src/modals/**',
'src/store/**',
'src/services/**',
'src/mask/**',
],
exclude: ['src/maskbook/**'],
},
],
fallbackLocales: {
pseudo: 'en',
},
format: 'po',
formatOptions: {
origins: true,
lineNumbers: false,
},
orderBy: 'messageId',
format: formatter({ origins: false }),
};