Hi I am following the docs from here: github docs
, but all URLs with locales return 404. For the example:
- localhost:3000/de/second-page = 404
- localhost:3000/en/second-page = 404
- localhost:3000/de = 404
localhost:3000/en = 404
- same for the default locale.
localhost:3000/second-page = 200
- localhost:3000 = 200
I guess, this is because there is no pages/de/second-page.js
, for the example, but what's the purpose then of this library, if it doesn't solve this problem.
I have searched a lot and I know about localSubpaths
, but seems that it doesn't work:
module.exports = new NextI18Next({
otherLanguages: ['fr'],
//localeSubpaths: localeSubpathVariations[localeSubpaths],
localeSubpaths: {
de: 'de',
en: 'en',
}
})
It doesn't work in my app, but it doesn't work in their sample, too: their sample