Hey there, this article may be outdated. If you are an iOS or macOS developer, and you have some spare time, it's a great opportunity to contribute to our documentation and get some benefits! Learn about our contributor program.
Quick Start
Check how to find all translation keys in iOS/macOS project. Learn how to extract localization key from Android project to local file. This guide will show you how to configure CLI to find localization keys in your project files.
If you already have extracted translation keys or translated messages in your strings.xml
files, then go to
page Localizable Strings to upload your data first.
Resources:
- Maintaining your Strings files ( source: developer.apple.com)
- Localizing Your App ( source: developer.apple.com)
Installation
Install SimpleLocalize CLI
curl -s https://get.simplelocalize.io/2.7/install | bash
Problems with CLI? See troubleshooting section.
Find keys
Use CLI to find all translation keys used in project files.
simplelocalize extract --apiKey <PROJECT_KEY> \
--projectType apple/ios-macos \
--searchDir ./src
Translate messages
Download files
Download ready to use files for your project by running download command.
simplelocalize download --apiKey <PROJECT_KEY> \
--downloadPath ./Resources/Localization/{lang}.lproj/Localizable.strings \
--downloadFormat localizable-strings