1.项目添加国际化
project-info-Localizations 添加需要国际化的语言
2.打开stroryboard,"Show the File Inspector”标签页确定localization选中了Base
3.添加需要国际化的lable
选中label,在 "Show the Identity Inspector” 标签页,Accessibility中取消Static Text选中
4.在LaunchScreen.string中添加国际化
eg. LaunchScreen.strings (English)
/* "<<Label's Object Id.text>>" = "<<Localized text>>"; */
"17x-cE-Ge9.text" = "Hello";
eg. LaunchScreen.strings (Chinese, Traditional)
/* "<<Label's Object Id.text>>" = "<<Localized text>>"; */
"17x-cE-Ge9.text" = “你好";
网友评论