应用内购买本地化
我已将日语添加到 iTunes Connect 上应用内购买产品的可用语言中。我已将手机设置为日语,但是,当我运行以下代码时,它仍然会生成英文文本:
NSLog(@"Product description: %@" , proUpgradeProduct.localizedDescription);
任何帮助都会是赞赏, 谢谢
I have added Japanese to the available languages for the in-app purchase product on iTunes Connect. I have set my phone to Japanese, however, when I run the following code it still results in English text:
NSLog(@"Product description: %@" , proUpgradeProduct.localizedDescription);
Any help would be appreciated,
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为 SKProduct 根据您登录的 iTunes Store 帐户获取本地化信息。
您需要为日本 iTunes Store 而不是美国 iTunes Store 创建一个测试用户(iTunes Connect -> 管理用户)。
然后以该用户身份登录(设置 -> iTunes 和 App Stores)并重新加载您的 SKProducts。
这对我有用!
I think that SKProduct get the localized info according to the iTunes Store account with which you are logged in.
You need to create a Test User for the Japanese iTunes Store instead of the US iTunes Store (iTunes Connect -> Manage Users).
Then login as that user (Settings -> iTunes & App Stores) and reload your SKProducts.
That worked for me!
您正在用日语运行测试设备吗?
转到常规 ->国际->语言并从那里选择日语,然后重试。
您无需本地化您的应用程序即可获得此功能。
Are you running your test device in Japanese?
Go to General -> International -> Language and choose Japanese from there and try again.
You don't have to localize your app to get this feature.