- Must have python version 3
- Must have billing enabled in Google Cloud Platform (GCP)
- Install the google client translation library
pip install --upgrade google-cloud-translate
- Create service account in GCP
- Clone and go to the project directory
- Paste above service account and rename to
project-service-account.json
- Use this command
python translator-for-ios.py <source-string-file> <languages list>
- Example
python translator-for-ios.py Localizable.strings fr
orpython translator-for-ios.py Localizable.strings fr,de,nl
- To translate to all available languages just provide source string in the command
- After above operation you will get new translated file(s) in current directory