In the above code example, we used the CurrencyConversionFormatter droplet to format the currency according to the targetLocale parameter passed. It takes as inputs the currency to format, the locale of the user, targetLocale, and outputs the formattedCurrency parameter.