forked from documenso/documenso
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lingui.config.ts
28 lines (25 loc) · 879 Bytes
/
lingui.config.ts
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
import type { LinguiConfig } from '@lingui/conf';
import { APP_I18N_OPTIONS } from '@documenso/lib/constants/i18n';
const config: LinguiConfig = {
sourceLocale: APP_I18N_OPTIONS.sourceLang,
locales: APP_I18N_OPTIONS.supportedLangs as unknown as string[],
// Any changes to these catalogue paths should be reflected in crowdin.yml
catalogs: [
{
path: '<rootDir>/packages/lib/translations/{locale}/marketing',
include: ['apps/marketing/src'],
exclude: ['**/node_modules/**'],
},
{
path: '<rootDir>/packages/lib/translations/{locale}/web',
include: ['apps/web/src'],
exclude: ['**/node_modules/**'],
},
{
path: '<rootDir>/packages/lib/translations/{locale}/common',
include: ['packages/ui', 'packages/lib', 'packages/email'],
exclude: ['**/node_modules/**'],
},
],
};
export default config;