[FOLIO-3342] avoid react-intl > 5.21.0 Created: 11/Nov/21 Updated: 16/May/22 Resolved: 12/Nov/21 |
|
| Status: | Closed |
| Project: | FOLIO |
| Components: | None |
| Affects versions: | None |
| Fix versions: | None |
| Type: | Bug | Priority: | TBD |
| Reporter: | Zak Burke | Assignee: | Zak Burke |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original estimate: | Not Specified | ||
| Issue links: |
|
||||||||||||||||||||
| Sprint: | Prokopovych - Sprint 127 | ||||||||||||||||||||
| Story Points: | 1 | ||||||||||||||||||||
| Development Team: | Prokopovych | ||||||||||||||||||||
| Description |
|
Overview: Avoid react-intl > v5.21.0; breaking changes were published in patch release v5.21.1. Details: The implementation of <FormattedMessage> changed; previously, keys with empty values were replaced with empty strings; now the values are replaced with the keys. e.g.: // en.json: foo: "Holdings: {location} > {callNumber} {copyNumber}" // code <FormattedMessage id="foo" values={{ location: "AAA", callNumber: null }} /> // output <= 5.21.0 Holdings: AAA > // output >= 5.21.1 Holdings: AAA > {callNumber} {copyNumber} |