From 2bae7c43764df5678fe2fc2e68be11ae95d85a41 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Fri, 28 Jan 2022 16:21:47 +0100 Subject: fix: handle translation with lingui The previous method was not working so I tried a different approach. Translation is loaded but I'm still getting warnings: * Plurals for locale undefined aren't loaded * Text content did not match I can't figure how to fix them... --- lingui.config.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lingui.config.js') diff --git a/lingui.config.js b/lingui.config.js index b53e343..1d9e162 100644 --- a/lingui.config.js +++ b/lingui.config.js @@ -1,6 +1,9 @@ module.exports = { - locales: ['fr'], + locales: ['en', 'fr'], sourceLocale: 'en', + fallbackLocales: { + default: 'en', + }, catalogs: [ { path: '/src/i18n/{locale}/messages', -- cgit v1.2.3