Hawber Haval
Hawber Haval

Reputation: 19

Localization in Swift / Kurdish

I am currently building an app in three languages English, Arabic, and Kurdish. I have already managed to do the English and Arabic but there is no choice for Kurdish. Is there any way to add my language (Kurdish) to my app in Xcode ( I am using Swift)?

Upvotes: 1

Views: 489

Answers (2)

ali6p
ali6p

Reputation: 1763

Close XCode. Open project file (yourProject.xcodeproj/project.pbxproj) in a text editor and find

knownRegions = (

You can see other languages; so, you can add your language code to the end of values:

knownRegions = (
                en,
                Base,
                tr,
                ckb
            );

Save and open Xcode again, you can find your lang in localization list. Don't forget to enable for files that you need.

your lang in localization xcode screenshot

PS: ckb is the language code for Central Kurdish (Sorani)

Upvotes: 1

Adrian Bobrowski
Adrian Bobrowski

Reputation: 2794

Kurdish language code: ku

You can add this language in two ways

  1. Create a folder with the required Localizable files and then drag them to the project

enter image description here

  1. Selecting a language from the list of other languages

enter image description here

Upvotes: 3

Related Questions