fix(deps): update i18next-scanner version to support old plurals format again [LIBS-641] #861
+270
−374
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
See LIBS-641 and its related issue for more context (tl;dr:
i18next-scanner
has a dependency oni18next
with*
as the version, andi18next
v21 broke it. Version 3.0.1+ ofi18next-scanner
adapts to the changes and makes it backwards-compatible, fixing the break it introduced for us)We’re currently on v2, and the latest version is v4
i18next-scanner
now also seems to support the new plural format too (called "compatibilityJSON v4"), when we’re ready to migrate to thatHere are some test plurals to make sure they're extracted correctly: (I added them to the simple example app, then ran
yarn start
to extract the strings, generate the translation JSON files, and start the app -- the plurals also worked when viewing the app in the browser)