This is my next-i18next.config.js.
module.exports = {
i18n: {
defaultLocale: 'en',
locales: ['ko', 'en', 'ja', 'zh'],
},
detection: {
order: ['querystring', 'cookie', 'localStorage'],
lookupQuerystring: 'lng',
},
};
I want to detect locale from querystring. (www.example.com/detail?lang=en) But it does not work. next-i18next.config.js is already active in my project but app detect only with path(www.example.com/en/detail) What is missing for my config file?
use
- next : 12.1.6
- next-i18next : 12.0.0
- react : 18.2.0