开发者

How do I get a list of languages for which a Localizable.strings file exists?

I need to restrict a choice of languages to the ones that our app supports. How do I programmatically get a list of languages开发者_StackOverflow中文版 for which a Localizable.strings file exists?


As per this iOS documentation page you can can call the preferredLocalizations method to get the list of localizations in your bundle.


Open your project and look for the Localizable.strings If it supports multiple languages, it will appear as a dropdown item:

How do I get a list of languages for which a Localizable.strings file exists?

There you have them all.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜