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 /next.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 'next.config.js')
| -rw-r--r-- | next.config.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/next.config.js b/next.config.js index 91c5a17..a26eda6 100644 --- a/next.config.js +++ b/next.config.js @@ -1,5 +1,4 @@ const path = require('path'); -const { locales } = require('./lingui.config'); const backendDomain = process.env.BACKEND_URL.split('//')[1]; @@ -9,7 +8,7 @@ const nextConfig = { scrollRestoration: true, }, i18n: { - locales, + locales: ['fr'], defaultLocale: 'fr', }, images: { |
