1
0
Fork 0
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:
Lukasz Kozakiewicz 2017-10-17 08:57:28 +02:00
parent 5c854b49a8
commit 2ff20dac63

View file

@ -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];