From f504c4afd4d182bfbcaa0d971b82f2e18ae1b364 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Thu, 19 Feb 2026 12:47:43 +0200 Subject: [PATCH] use lingui.config.ts, compile to ts namespace --- .gitignore | 4 +++- lingui.config.js => lingui.config.ts | 9 +++++---- 2 files changed, 8 insertions(+), 5 deletions(-) rename lingui.config.js => lingui.config.ts (84%) diff --git a/.gitignore b/.gitignore index 38a12f24c0..c0adc37228 100644 --- a/.gitignore +++ b/.gitignore @@ -110,7 +110,9 @@ google-services.json # i18n src/locale/locales/_build/ -src/locale/locales/**/*.js +src/locale/locales/**/messages.js +src/locale/locales/**/messages.mjs +src/locale/locales/**/messages.ts # local builds *.apk diff --git a/lingui.config.js b/lingui.config.ts similarity index 84% rename from lingui.config.js rename to lingui.config.ts index 46950e8723..8659bdb5ef 100644 --- a/lingui.config.js +++ b/lingui.config.ts @@ -1,5 +1,6 @@ -/** @type {import('@lingui/conf').LinguiConfig} */ -module.exports = { +import {defineConfig} from '@lingui/cli' + +export default defineConfig({ locales: [ 'en', 'an', @@ -49,5 +50,5 @@ module.exports = { include: ['src'], }, ], - format: 'po', -} + compileNamespace: 'ts', +})