rsnext/examples/with-lingui/next.config.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
330 B
JavaScript
Raw Normal View History

const { locales, sourceLocale } = require("./lingui.config.js");
/** @type {import('next').NextConfig} */
2019-02-21 12:53:02 +01:00
module.exports = {
i18n: {
locales,
defaultLocale: sourceLocale,
},
webpack: (config) => {
2019-02-21 12:53:02 +01:00
config.module.rules.push({
test: /\.po/,
use: ["@lingui/loader"],
2019-02-21 12:53:02 +01:00
});
2019-02-21 12:53:02 +01:00
return config;
},
2019-02-21 12:53:02 +01:00
};