首先非常感谢这位大佬的分享资源
https://blog.csdn.net/YouLing_0809/article/details/53818328
首先 要实现APP名称多语言适配
![](https://img.haomeiwen.com/i2516125/48a32519ea92b220.png)
适配方法如下:
在程序中创建InfoPlist.strings文件用来处理桌面现实的国际化,创建如图:(注意这里的名字不要修改,否则会出现app无法读取这个strings)
![](https://img.haomeiwen.com/i2516125/6c801bdebc6368c6.png)
创建后选中InfoPlist.strings,然后点击Localize…
![](https://img.haomeiwen.com/i2516125/634941c193a0e75b.png)
![](https://img.haomeiwen.com/i2516125/5904e46bca4d6faa.png)
这个时候你就会出现跟我一样的
![](https://img.haomeiwen.com/i2516125/d0ca5cfd92924973.png)
"CFBundleDisplayName" 这个是在不同语言下 APP名称的多语言适配
"UILaunchStoryboardName" 这是在不同语言下 APP启动图的多语言适配
接下来就是 怎么实现 启动图多语言适配:
创建两个启动的.storyboard分别命名为:LaunchScreen-English和LaunchScreen-Chinese(当然这里你也可以只创建一个storyboard,然后在启动的时候对storyboard加载的图片的名字国家化,就不具体写了)创建方法如下
![](https://img.haomeiwen.com/i2516125/d902da32b158e8bb.png)
![](https://img.haomeiwen.com/i2516125/d719d5f831bd4af7.png)
向InfoPlist.strings,的中文和英文的文档中分别加入
![](https://img.haomeiwen.com/i2516125/468c3e1b8c8b7ee0.png)
网友评论