国の情報を取得するためには,
SKProductを使用すると良い
import Foundation
import StoreKit
extension SKProduct {
func localizedPrice() -> String {
let numberFormatter = NumberFormatter()
numberFormatter.formatterBehavior = .behavior10_4
numberFormatter.numberStyle = .currency
numberFormatter.locale = priceLocale
return numberFormatter.string(from: price)!
}
}
let localisedprice = package.localizedPrice()
print(localisedprice)
https://www.lanches.co.jp/blog/5062