Peer
The new i18n features in NextJs v10 will handle this automatically. I plan to rewrite next-i18next to leverage these features soon.
next-i18next