Skip to content

Commit e9a7df7

Browse files
committed
feat(l10n): add fractionDigits to currency data in localization files
1 parent 525a21e commit e9a7df7

File tree

9 files changed

+1782
-928
lines changed

9 files changed

+1782
-928
lines changed

.changeset/lazy-donuts-visit.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
'@commercetools-frontend/l10n': minor
3+
---
4+
5+
In order to support both versions of the same currency with different fraction digits, these changes:
6+
7+
- Extend generated currency locale data to include fractionDigits (decimal precision) for each currency, sourced from currencymap.json.
8+
- Introduce ZERO_FRACTION_DIGITS_CURRENCY_MAPPING to define which base currencies should have an explicit 0-fraction-digit variant.

0 commit comments

Comments
 (0)