Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support i18next 22, react-i18next 12 and move both to peer-deps (#1966)
* chore(deps): update to i18next ^22.0.0 Link https://github.com/i18next/i18next/releases/tag/v22.0.0 * chore: more react-i18next i18next to peer deps * docs: update installation for peer-dependencies * docs: added UPGRADING notes * docs: add upgrading * docs: update upgrade notes * chore(deps): update example to react-i18next v12 * docs: changelog * refactor!: drop export of Resources * chore(deps): update to i18next 22.0.2 * chore(peer-deps): remove range and min i18next to 22.0.2 * feat(example): example on i18next new translation key * fix(examples): restore current way for keys typing * docs: changelog and upgrading updates * docs: rephrase * Add @belgattitude as a contributor * refactor: remove i18next type augmentation * revert: lost range during merges * chore(deps): update to i18next-fs-backend@^2.0.0
- Loading branch information
1 parent
835ba8d
commit db286c1
Showing
8 changed files
with
52 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
## Version 13.x | ||
|
||
Both `i18next` and `react-i18next` have been moved to [peerDependencies](https://github.com/npm/rfcs/blob/main/implemented/0030-no-install-optional-peer-deps.md) | ||
and must be installed part of `next-i18next`. When upgrading don't forget to add them to your dependencies: | ||
|
||
```bash | ||
npm install react-i18next i18next --save # NPM | ||
yarn add react-i18next i18next # Yarn | ||
pnpm add react-i18next i18next --save # PNPM | ||
``` | ||
|
||
This move was done in the hope to avoid issues regarding duplicates. See the | ||
[TROUBLESHOOT](https://github.com/i18next/next-i18next/blob/master/TROUBLESHOOT.md#multiple-instances) | ||
for more info. In the future it will also allow to support multiple ranges. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters