Uploaded image for project: 'ui-users'
  1. ui-users
  2. UIU-537

Cannot translate "loans.closedLoans" string concatenation

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • P3
    • Resolution: Done
    • None
    • 2.13.0
    • folio/users 2.12.2000310

    Description

      https://github.com/folio-org/ui-users/blob/5c722c6/lib/ViewSections/UserLoans/UserLoans.js#L96-L97
      uses string concatenation:

      {item.label} 
      <FormattedMessage id={item.formattedMessageId} />
      

      This cannot be translated because in some languages the number is not at the beginning and the text may be different for singular and plural.

      Please use ICU message syntax https://github.com/folio-org/stripes-core/blob/master/doc/i18n.md#details
      for example

      "{closedLoansCount, number} {closedLoansCount, plural, one {closed loan} other {closed loans}}"
      

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                rjruizes Roman Ruiz-Esparza
                julianladisch Julian Ladisch
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases