From 9fe048623cff3eb4867a95b92308dcd3aa154c17 Mon Sep 17 00:00:00 2001 From: Daniel Schiavini Date: Fri, 17 Jan 2025 15:45:25 +0100 Subject: [PATCH] fix: lingui config for multiple apps --- apps/main/lingui.config.ts | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/apps/main/lingui.config.ts b/apps/main/lingui.config.ts index b6c0e4aa9..9978a721b 100644 --- a/apps/main/lingui.config.ts +++ b/apps/main/lingui.config.ts @@ -1 +1,23 @@ -export { config as default } from '../../lingui.config' +import { config } from '../../lingui.config' + +const mainConfig = { + ...config, + catalog: { + path: 'src/locales/{locale}/messages', + include: [ + ...['dao', 'dex', 'loan', 'lend'].flatMap((app) => [ + `src/${app}/components`, + `src/${app}/entities`, + `src/${app}/features`, + `src/${app}/hooks`, + `src/${app}/layout`, + `src/${app}/pages`, + `src/${app}/store`, + `src/${app}/widgets`, + ]), + '../../packages/curve-ui-kit', + ], + }, +} + +export default mainConfig