aboutsummaryrefslogtreecommitdiffstats
path: root/next.config.js
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-01-28 16:21:47 +0100
committerArmand Philippot <git@armandphilippot.com>2022-01-28 16:21:47 +0100
commit2bae7c43764df5678fe2fc2e68be11ae95d85a41 (patch)
tree761f1283ace5681378b2a1d90fc05d8816e5eb41 /next.config.js
parent341c256566f4e2301c0adeaaa7c6833070bf0e86 (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.js3
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: {