diff options
| author | Armand Philippot <git@armandphilippot.com> | 2022-01-28 16:21:47 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2022-01-28 16:21:47 +0100 |
| commit | 2bae7c43764df5678fe2fc2e68be11ae95d85a41 (patch) | |
| tree | 761f1283ace5681378b2a1d90fc05d8816e5eb41 /lingui.config.js | |
| parent | 341c256566f4e2301c0adeaaa7c6833070bf0e86 (diff) | |
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...
Diffstat (limited to 'lingui.config.js')
| -rw-r--r-- | lingui.config.js | 5 |
1 files changed, 4 insertions, 1 deletions
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: '<rootDir>/src/i18n/{locale}/messages', |
