Uploaded image for project: 'FOLIO'
  1. FOLIO
  2. FOLIO-3342

avoid react-intl > 5.21.0

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • TBD
    • Resolution: Done
    • None
    • None
    • Prokopovych - Sprint 127
    • 1
    • 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}
      

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                zburke Zak_Burke
                zburke Zak_Burke
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases