aboutsummaryrefslogtreecommitdiffstats
path: root/next.config.js
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2021-12-12 19:36:34 +0100
committerArmand Philippot <git@armandphilippot.com>2021-12-12 19:36:34 +0100
commit77676783887a21d362ff1cf71ede10f713e128c6 (patch)
treec48938c7077575a10bc7aa4d02cf92d79ddc734e /next.config.js
parent4514fd261f048cf623c8e23bf41c5c6599c9c86d (diff)
build: configure lingui js for i18n
Diffstat (limited to 'next.config.js')
-rw-r--r--next.config.js16
1 files changed, 15 insertions, 1 deletions
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;
+ },
+};