summaryrefslogtreecommitdiffstats
path: root/next.config.js
blob: f7b37d6a9f7e2ef81043d180e379165c9046c193 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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;
  },
};