iOS PhraseApp Setup
This guide describes how to set up your first project for iOS.
- Add project in PhraseApp
- Up- and download locale files to PhraseApp
- Add a new language
If you’re a novice in iOS localization best practices, check out our blog post on the topic: How To Translate Apps In Xcode - a step-by-step tutorial that gets you started.
Sign in to the PhraseApp Translation Center and add a project, choose “XLIFF (.xlf)” as your main format.
To initialize the project configuration follow the instructions to setup the PhraseApp command line tool. Then create a configuration with:
$ phraseapp init
This will guide you through the necessary steps to configure your sources and targets for your project. Make sure you select an iOS compatible format like
XLIFF as your locale file format.
After you installed and configured the CLI client you’re ready to push and pull your translations:
$ phraseapp push $ phraseapp pull
If you want to integrate PhraseApp directly into your build workflow you can add a new ‘run script’ build phase in your target settings of your project.
In this phase you can for example just execute
phraseapp pull to get all new translations. Be aware that the new build phase must be placed before the resources get bundled.
You can add new languages by adding a new locale in the PhraseApp Translation Center. The locale name should be chosen according to the iOS locale name constant convention (see Language and Locale IDs, for languages without variants a simple two-letter notation is used e.g. “en” for English. For language variants, such as British English, you need to specify the country in the name as well, e.g. “en-GB”.
The translated locales can be downloaded again using
phraseapp pull with the CLI client.
If you have a locale file for an additional language, you can import those translations using the file upload in the Translation Center.
Learn how to work efficiently with PhraseApp in our Getting Started guide.
Learn how to buy professional translation service for your projects.