1.項(xiàng)目添加國(guó)際化
project-info-Localizations ?添加需要國(guó)際化的語言
2.打開stroryboard,"Show the File Inspector”標(biāo)簽頁確定localization選中了Base
3.添加需要國(guó)際化的lable
選中l(wèi)abel胁黑,在?"Show the Identity Inspector” 標(biāo)簽頁淆院,Accessibility中取消Static Text選中
4.在LaunchScreen.string中添加國(guó)際化
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" =?“你好";