开发者

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

开发者 https://www.devze.com 2023-04-12 17:46 出处:网络
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 pe

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

精彩评论

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

关注公众号