One Man Crew
One Man Crew

Reputation: 9578

Xcode Project: Different languages to different targets

I Have one project in Xcode ,this project have 4 different targets:

+Main Project
 -Target1
 -Target2
 -Target3
 -Target4

The project have 7 different languages in the localization:

En,He,Sw,Ch,It,Ko,Jap

I looking for a way to set for each target different languages.

FOR EXAMPLE:

+Main Project
     -Target1(En only)
     -Target2(He,Sw,Ch)
     -Target3(It,ch)
     -Target4(Jap only)

Upvotes: 5

Views: 1669

Answers (2)

Tuấn Nguyên
Tuấn Nguyên

Reputation: 35

use this answer manual language selection in an iOS-App (iPhone and iPad)

You can set any language you want, remember "Localizable.strings" for containing language text

Upvotes: 0

Guilherme Torres Castro
Guilherme Torres Castro

Reputation: 15350

You can set differents localization files for each target.

Just open Utilies, at target membership selected the targets you want to localize.

Example:

  • en.string (mark target1 only)
  • he.string, sw.string (mark target2 only)
  • cd.string (mark target2 and 3)
  • it.string (mark target3 only)
  • jap.string (mark target4 only)

Upvotes: 4

Related Questions