You can, if you need to, create a .strings file that contains a currency and use the NSLocalizedString function to create a localized currency. Something like that:
en.lproj myApp.strings: "currencySymbol"="$" "currencyFormat"="$%lf" au_AU.lproj myApp.strings: "currencySymbol"="$" "currencyFormat"="$%lf" ja_JP.lproj myApp.strings: "currencySymbol"="¥" "currencyFormat"="¥%lf"
And use it like this:
NSString *money = [NSString stringWithFormat:@"%@%lf", NSLocalizedString:(@"currencySymbol"), myMoney];
However, this means that for each supported localization you need a .strings file. In addition, this means that for some localizations the currency symbol will not be enough to display the proper money format, you will need to use something like this:
NSString *money = [NSString stringWithFormat:NSLocalizedString(@"CurrencyFormat"), myMoney];
This has some limitations, but it may work for you.
Richard J. Ross III Dec 17 2018-10-17 14:04
source share