-
Notifications
You must be signed in to change notification settings - Fork 129
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cli): rename formatAmountToLocale to format for currency-utils co…
…demod (#644)
- Loading branch information
1 parent
271f1d9
commit 7bc5ad4
Showing
3 changed files
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import { formatCurrency, formatAmountForLocale } from '@sumup/intl'; | ||
import { formatCurrency, format } from '@sumup/intl'; | ||
|
||
const amount = '42'; | ||
const locale = 'en-US'; | ||
const currency = 'USD'; | ||
|
||
formatCurrency(amount, locale, currency); | ||
formatAmountForLocale(amount, locale, currency); | ||
format(amount, locale, currency); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import { formatAmountForLocale } from '@sumup/intl'; | ||
import { format } from '@sumup/intl'; | ||
|
||
const amount = '42'; | ||
const locale = 'en-US'; | ||
const currency = 'USD'; | ||
|
||
formatAmountForLocale(amount, locale, currency); | ||
format(amount, locale, currency); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters