mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-11 23:54:18 +00:00
InAppPurchases: check price locale’s language code in backwards compatible way.
This commit is contained in:
parent
5c854b49a8
commit
2ff20dac63
1 changed files with 1 additions and 1 deletions
|
|
@ -615,7 +615,7 @@ struct InAppPurchases::Pimpl : public SKDelegateAndPaymentObserver
|
|||
auto identifier = nsStringToJuce (skProduct.productIdentifier);
|
||||
auto title = nsStringToJuce (skProduct.localizedTitle);
|
||||
auto description = nsStringToJuce (skProduct.localizedDescription);
|
||||
auto priceLocale = nsStringToJuce (skProduct.priceLocale.languageCode);
|
||||
auto priceLocale = nsStringToJuce ([skProduct.priceLocale objectForKey: NSLocaleLanguageCode]);
|
||||
auto price = nsStringToJuce ([numberFormatter stringFromNumber: skProduct.price]);
|
||||
|
||||
[numberFormatter release];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue