Localize is the utility that is designed to simplify the work with translations for iOS and OS X. Localize is embedded in the Xcode project as a separate target and synchronizes the translations with Google Sheet.
-
Turn on the Google Sheets API https://developers.google.com/sheets/api/quickstart/ios?authuser=1
-
Create blank Google Sheet Document and make it shared by link
-
Add Localize.xcodeproj from this repository to your Workspace
-
Add External Build System target to your project
- Change SDKROOT build setting to macosx
- Build Tool: Localize/localize.sh
- Arguments: -spreadsheet spreadsheetID [-languages "de es fr it ja ko nl pt-BR pt ru"] -clientID clientID -clientSecret clientSecret
You can find spreadsheetID in the Google Sheet's url docs.google.com/spreadsheets/d/1ebxmnfNck3IRrTPDXXX_XXbKoSMooMfMSz54RAn8XTCC4/edit#gid=0
You can now build this target to sync translations with Google Sheets