[CHORE] TypeScript Lingui configuration file (#11021)
# Introduction We want theses configurations to be strictly typed but needed as in https://github.com/twentyhq/twenty/pull/10960 will browse through all TypeScript files within the codebase
This commit is contained in:
25
packages/twenty-server/lingui.config.ts
Normal file
25
packages/twenty-server/lingui.config.ts
Normal file
@ -0,0 +1,25 @@
|
||||
import { defineConfig } from '@lingui/conf';
|
||||
import { formatter } from '@lingui/format-po';
|
||||
import { APP_LOCALES } from 'twenty-shared';
|
||||
|
||||
export default defineConfig({
|
||||
sourceLocale: 'en',
|
||||
locales: Object.values(APP_LOCALES),
|
||||
pseudoLocale: 'pseudo-en',
|
||||
fallbackLocales: {
|
||||
'pseudo-en': 'en',
|
||||
},
|
||||
extractorParserOptions: {
|
||||
tsExperimentalDecorators: true,
|
||||
},
|
||||
catalogs: [
|
||||
{
|
||||
path: '<rootDir>/src/engine/core-modules/i18n/locales/{locale}',
|
||||
include: ['src'],
|
||||
},
|
||||
],
|
||||
catalogsMergePath:
|
||||
'<rootDir>/src/engine/core-modules/i18n/locales/generated/{locale}',
|
||||
compileNamespace: 'ts',
|
||||
format: formatter({ lineNumbers: false, printLinguiId: true }),
|
||||
});
|
||||
Reference in New Issue
Block a user