rsnext/examples/with-lingui/next.config.js
Pavel Mineev 9785ba8eca
(examples/with-lingui): update example (#26076)
Fixes one of the items from #25854

## Documentation / Examples

- [x] Make sure the linting passes
- [x] Add the StackBlitz button
- [x] [Live demo](https://stackblitz.com/github/akellbl4/next.js/tree/examples/with-lingui-update/examples/with-lingui)
2021-06-17 16:29:58 +00:00

16 lines
285 B
JavaScript

const { locales, sourceLocale } = require('./lingui.config.js')
module.exports = {
i18n: {
locales,
defaultLocale: sourceLocale,
},
webpack: (config) => {
config.module.rules.push({
test: /\.po/,
use: ['@lingui/loader'],
})
return config
},
}