From 77676783887a21d362ff1cf71ede10f713e128c6 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Sun, 12 Dec 2021 19:36:34 +0100 Subject: build: configure lingui js for i18n --- next.config.js | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'next.config.js') diff --git a/next.config.js b/next.config.js index 8b61df4..f7b37d6 100644 --- a/next.config.js +++ b/next.config.js @@ -1,4 +1,18 @@ +const { locales } = require('./lingui.config'); + /** @type {import('next').NextConfig} */ module.exports = { + i18n: { + locales, + defaultLocale: 'fr', + }, reactStrictMode: true, -} + webpack: (config) => { + config.module.rules.push({ + test: /\.po/, + use: ['@lingui/loader'], + }); + + return config; + }, +}; -- cgit v1.2.3