应用内购买,SKProduct 本地化属性问题
我在我的应用程序中实现了应用内购买商店。我有英语和德语作为语言。但我总是从 SKProducts 获得德文标题和描述。我正在调用正确的 localizedDescription localizedTitle 方法,因此根据文档,这应该不是问题。
有人能帮我解决这个问题吗?
I have implemented an InApp Purchase Store in my app. I have English and German as languages. But I always get the German titles and descriptions from the SKProducts. I am calling the right localizedDescription localizedTitle methods, so this should be not the problem, according to the documentation.
Can anybody help me with this problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
App Store 似乎根据用户所在国家/地区返回本地化字符串,而不是用户在 Settings.app 中选择的语言。换句话说,如果您在德国商店购物,您将从 App Store 获得德语本地化字符串。
App Store seems to return localized strings based on user country, rather than user-selected language in Settings.app. In other words, if you shop in the German store, you will get German localized strings from App Store.
尝试了设置中的语言设置,它对 SKProduct 的 localizedTitle 不起作用(仍然显示英文产品标题)。
为了更改 App Store 的国家/地区,我必须在手机上访问 iTunes,注销我当前的帐户。选择创建新的Apple ID ->选择国家->下一个。然后重新启动应用程序商店以验证它是不同的国家/地区。
PS grobald,非常感谢您的提示!
Tried with the language setting in the setting and it didn't work for SKProduct's localizedTitle (still display the english product title).
In order to change the country for App Store, I had to go to iTunes on my phone, log out my current account. select create a new apple ID -> select country -> next. Then relaunch app store to verify it's a different country.
PS grobald, Thank you so much for the hint!