mirror of
https://github.com/documenso/documenso.git
synced 2025-11-12 07:43:16 +10:00
23 lines
732 B
TypeScript
23 lines
732 B
TypeScript
import type { LinguiConfig } from '@lingui/conf';
|
|
|
|
import { APP_I18N_OPTIONS } from '@documenso/lib/constants/i18n';
|
|
|
|
// Extends root lingui.config.cjs.
|
|
const config: LinguiConfig = {
|
|
// eslint-disable-next-line @typescript-eslint/consistent-type-assertions
|
|
locales: APP_I18N_OPTIONS.supportedLangs as unknown as string[],
|
|
catalogs: [
|
|
{
|
|
path: '<rootDir>/../../packages/lib/translations/{locale}/web',
|
|
include: ['<rootDir>/apps/web/src'],
|
|
},
|
|
{
|
|
path: '<rootDir>/../../packages/lib/translations/{locale}/common',
|
|
include: ['<rootDir>/packages/ui', '<rootDir>/packages/lib'],
|
|
},
|
|
],
|
|
catalogsMergePath: '<rootDir>/../../packages/lib/translations/{locale}/web',
|
|
};
|
|
|
|
export default config;
|