Swift Playgrounds on iPad localization

Hey, meanwhile it's a great thing to program apps on the iPad and to be able to load them into the App Store Connect and the App Store.

What about localization in the meantime? When I open the folder en.lproj in sample apps from XCode, then there are two files stored in it:

Glossary.plist (XML) and Localizable.strings (binary)

Is it correct that XCode creates binary files from the strings? Otherwise, Swift Playgrounds already offers localization in the localized learning content, but i guess the binary files can only be created in XCode?

Answered by Developer Tools Engineer in 823948022

Localization is not directly supported in Swift Playground at this time. If you manually create the structure of language project directories in your app playground's Resources, and provide strings or stringsdict files for all of your strings, it should work as expected.

Note that this is a legacy process (vs. the more modern strings catalog support in Xcode). Some documentation on manually creating strings files is available in the documentation archive.

Localization is not directly supported in Swift Playground at this time. If you manually create the structure of language project directories in your app playground's Resources, and provide strings or stringsdict files for all of your strings, it should work as expected.

Note that this is a legacy process (vs. the more modern strings catalog support in Xcode). Some documentation on manually creating strings files is available in the documentation archive.

请问能不能上传短视频,我无意中发现可以使用手机和中文教需要学习Swift Playgrounds编程的人。例如moveForward();

Swift Playgrounds on iPad localization
 
 
Q