Details
-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
P3
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: 2.2.0
-
Labels:
-
Template:
-
Sprint:ACQ Sprint 93
-
Story Points:1
-
Development Team:Thunderjet
-
Epic Link:
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.
Acceptance criteria:
Currency selection component in acq modules uses translated currency labels.
Implementation details:
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
- defines
-
UXPROD-2534 Thunderjet - Q3 Enhancements/Bugfixes/Tech Debt
-
- Closed
-
- relates to
-
STCOM-614 CurrencySelect values are not translated
-
- Closed
-