localize many images in Xcode at once?

前端 未结 1 823
小蘑菇
小蘑菇 2021-01-02 10:50

I have this project that i need to add a translation to. I already know how to add localisation to single image files, but there are 200+ images with text on it in that proj

相关标签:
1条回答
  • 2021-01-02 11:20

    What I do is create my localizable directories (en.lproj, fr_FR.lproj, etc) then I will drag all the localizable images into their respective directories, then add all the new images to the Xcode project. Xcode is smart enough to realize that the same image name exists in multiple .lproj directories

    So, to reiterate:

    1. Create localizable directories (you can use Get Info->Make File Localizable then add localizations for all desired locales)
    2. Copy images for each locale into their respective directories
    3. Add all the images to the xcode project
    0 讨论(0)
提交回复
热议问题