Swift export localization and import localization

Source: Internet
Author: User

A. Export localization

1. Add a localized language by setting the following

2. Export files

The following two files are generated when the save is complete

3. Download in the app Store

then use Xlifftool to open the above two files separately

In the following show No translation, add the language that you want to replace in English, as follows:

And then you can save it.

Two. Import localization

1. Follow the steps below

2. Add

3 after adding the following two files can be

If there are these keys in the Info.plist,

Also need to be added in Infoplist.strings, format as modified

Three. Storyboard (Base) , add the . Strings file, add the Main.strings (Freach) and Main.strings (Chinese ( Simplified)) Two files

Open it in the following way

Then modify as needed

At this point, the export and import localization is done

Swift export localization and import localization

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.