Xcode - Target specific localization

前端 未结 2 1106
一向
一向 2021-01-20 07:41

My project includes several targets, each target is used for different customer. Some customers need specific localization and I don\'t want all the customers to get this sp

相关标签:
2条回答
  • 2021-01-20 07:48

    Create a separate "Localizeable.strings" for each target.

    link the correct strings files with each "group" of strings.

    Then set it in the Build Phases for each target the correct "strings" like this:

    0 讨论(0)
  • 2021-01-20 07:55

    I manage to solve it with @Yitzchak answer + additional changes:

    • In project level add the desired language.
    • Remove original localizable file from the target.
    • Create new Localizable.strings / InfoPlist.strings and add it to the target.
    • Select only the relevant languages in "localization" option (see the image below)

    0 讨论(0)
提交回复
热议问题