Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode - Target specific localization

My project includes several targets, each target is used for a different customer. Some customers need specific localization, and I don't want all the customers to get this specific localization. Since localization is handled on the project level, I couldn't find a way to add localization only for a specific target.

Any suggestions how to do it?

Looking for stable option without the need to delete unused localization before each build.

like image 464
Ido Nave Avatar asked Jan 30 '23 01:01

Ido Nave


1 Answers

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:

Setting Localizable resource for target

like image 62
Yitzchak Avatar answered Feb 04 '23 02:02

Yitzchak