Skip to content

Commit

Permalink
fixup! feat(i18n): use Intl to format numbers, percents and currencies
Browse files Browse the repository at this point in the history
  • Loading branch information
JeanMeche committed Apr 18, 2024
1 parent ac18c25 commit 722eb2d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/common/test/i18n/format_number_spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ describe('Format number', () => {
expect(formatPercent(1.2, ɵDEFAULT_LOCALE_ID, '4.2')).toEqual('0,120.00%');
expect(formatPercent(1.2, 'fr', '4.2')).toEqual('0\u202f120,00 %');
// Intl formats the output with the locale numbering system (arabic in this case)
// The 'ar' locale is known to be inconsistant accross platforms, we recommend specifying the region
expect(formatPercent(1.2, 'ar-sa', '4.2')).toEqual('٠٬١٢٠٫٠٠٪؜');

// see issue #20136
Expand Down

0 comments on commit 722eb2d

Please sign in to comment.