next-i18next started as a standalone OSS project and now officially be part of i18next
- next-i18next, i18n (internationalization) library
There are two steps that we need to manually take after finish running curl command
- update
next.config.jswith the content ofnext.config.expansion.js - wrap MyApp export in
_app.tsxfile with appWithTranslation HOC, seenext-i18next-_app.tsxas reference
(you can safely delete
next.config.expansion.jsandnext-i18next-_app.tsxafter the updates made)
visit /next-i18next-example & /id/next-i18next-example to check if the translation is working
More on docs next-i18next