iOS target support

Hi,
my Xcode project has many targets and each one has its own “strings” files.
How can I handle the push and pull of strings related with a specific target (avoiding to include strings of other targets)?

For example:

MyProject

  • TargetA
    — Localizable.strings
  • TargetB
    — Localizable.strings
    — Localizable2.strings

How can I push/pull only the stings for TargetB?
Thanks

Hello Luca,

I am Antonis from the Transifex Support team.

Tx Native projects use only one resource so if you have more than one strings file they won’t appear separate in the UI.

You could try pushing the strings based on tags and let me know if that works for you. Please refer to the iOS SDK documentation as well and I have share a screenshot with the specific section I’m talking about.

Kind regards,

Antonis

Hi, thanks for the answer. I think the use of tags is a good workaround but is not enough for my case, because in the previous example: strings of TargetA should be handled by CompanyA with it’s own Transifex account. Strings of TargetB should be handled by CompanyB with a different Transifex account.
Luca

Hello Luca,

Based on your explanation this is not something that is currently supported with Transifex Native but keep an eye out for when we release multi-branch support for Native which could work for your use case.

Another workaround you could use for now is utilizing file based projects to have separate resources for the different files.

  • Project1 (TargetA)
    — Resource1 (Localizable.strings)
  • Project2 (TargetA)
    — Resource1 (Localizable.strings)
    — Resource2 (Localizable2.strings)

Kind regards,

Antonis

Ok, thanks for the answer!

1 Like

You’re welcome, Luca.

Have a great day!