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... --- next.config.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'next.config.js') 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: { -- cgit v1.2.3