Details
-
Bug
-
Status: Closed (View Workflow)
-
TBD
-
Resolution: Done
-
None
-
customfield_11100 30541
-
Core: F - Sprint 91
-
1
-
Prokopovych
Description
CurrencySelect provides labels directly from util/currencies.js which are in English only. Instead, it should use the code attribute to produce a localized value.
See https://formatjs.io/docs/react-intl/api/#formatdisplayname and an example in ui-developer. Here, we can just pipe the currency abbreviation through intl like
import { useIntl } from 'react-intl'; const intl = useIntl(); // or via props.intl / injectIntl if you're using a class component const currencyCode = 'USD'; const happyTranslatedCurrencyName = intl.formatDisplayName(currencyCode, { type: 'currency' });
TestRail: Results
Attachments
Issue Links
- is required by
-
UITEN-102 use ReactIntl to localize language, region, and currency values
-
- Closed
-
- relates to
-
STRIPES-660 investigate whether CLDR data can assist with localization
-
- Closed
-
-
STCOM-691 use ReactIntl to localize language, region, and currency values
-
- Closed
-
-
UISACQCOMP-2 ACQ - CurrencySelect values are not translated
-
- Closed
-