Skip to content

Export / import Xcode localization files to / from Google Sheets

License

Notifications You must be signed in to change notification settings

KOMA-Inc/localizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

localizer

Features:

  • Export .strings files from Xcode project to Google Sheets
  • Import .strings files from Google Sheets to Xcode project
  • Sending messages to Slack

Usage

Create a service accout

  1. Go to Google API Console
  2. Create new project
  3. Go to API's overview
  4. Add Google Drive API
  5. Add Google Sheets API
  6. Go to Manage in Google Drive API
  7. Open Credentials -> Create Credentials -> Service account
  8. Enter name for your project
  9. For role select Basic -> Editor
  10. Click on the Service account you just created
  11. Go to Keys -> Create new key -> JSON
  12. Save your creds.json file

Create .yaml config file

Download the example and update it for your needs.
To get the tag_id to your colleague's account is Slack and tap "Copy memeber ID"

Run the script

Import:

python3 localizer/sources/main.py import -p ./MyProject.xcodeproj -c ./creds.json -y ./lconfig.yml

Export:

python3 localizer/sources/main.py export -p ./MyProject.xcodeproj -c ./creds.json -y ./lconfig.yml

About

Export / import Xcode localization files to / from Google Sheets

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages