Skip to content

Commit

Permalink
docs: Fix typo in migration doc (#1349)
Browse files Browse the repository at this point in the history
Co-authored-by: Isaac Hinman <[email protected]>
  • Loading branch information
cbenker and isaachinman authored Aug 11, 2021
1 parent 943f2fe commit a1339b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/v8-migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ The object `i18n` which was imported directly from `i18n.js` in `next-i18next@<8
## Optional

1. Add to the custom 404 page the `...(await serverSideTranslations(locale, [<YOUR_NAMESPACES>])),` as a return in props in `getStaticProps` so the 404 page works with translations as well
2. Add to the custom 500 page the `...(await serverSideTranslations(locale, [<YOUR_NAMESPACES>])),` as a return in props in `getStaticProps` so the 404 page works with translations as well
2. Add to the custom 500 page the `...(await serverSideTranslations(locale, [<YOUR_NAMESPACES>])),` as a return in props in `getStaticProps` so the 500 page works with translations as well
3. Add set cookie `NEXT_LOCALE` for language recognition. More about that in [the NextJs docs](https://nextjs.org/docs/advanced-features/i18n-routing#leveraging-the-next_locale-cookie)
4. Adjust the Jest test settings to mock `withTranslation`,`useTranslation`, and `t()` or/and `i18n` in props.

Expand Down

1 comment on commit a1339b5

@vercel
Copy link

@vercel vercel bot commented on a1339b5 Aug 11, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.