2024-07-26 14:56:42 +10:00
|
|
|
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',
|
2024-11-05 11:52:54 +11:00
|
|
|
include: ['packages/ui', 'packages/lib', 'packages/email'],
|
2024-07-26 14:56:42 +10:00
|
|
|
exclude: ['**/node_modules/**'],
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default config;
|