Localization of iOS App - including Storyboard and plist
Japanese is here
I watched this view often.
Now make the manual to localiztion
Flow
This time, I made localization env like below. - Base is English - add Japanese.
1. Generate Localizable.strings
2. Set up
show files in inspector
You can find localization section.
Tap button.
Generate localize files
Choose Base
Now English localize files was generated, which is Base language.
Base means
This "Base" means development language.
You should set this as your app character.
3. Generate ja
Back to localiztion in Info
Tap +, and make ja file
Resource setting is like below.
Then ja is added
4. write key-value
Current setting
You can now write en and ja like below
"key" = "value";
; is required.
5. call
let title = NSLocalizedString("key", comment: "")
This is basic line.
Advanced 1. Change display name of app
1. Make InfoPlist.string
Flow is same to above
2. Make ja and Base(en) localize file
3. setting
"CFBundleDisplayName" = "app name";
Advanced 2. Storyboard localization
Tap the localize button in storyboard's inspector.
check target language except base one
Files are made.
You can write key-value.
(I do not use storyboard often. So very laugh memo)
(This method can be adapted to xib localization)