A simple service to translate an entire column from a spreadsheet.
- Create a Google Cloud Platform account
- Create a project and take note of the project ID
- Enable the Cloud Translate API for the project
- Run
auth.cmdto authorize this service to use the APIs- This will open a browser window for you to login to your Google Cloud Platform account
- When finished, check if a file called
service-account.jsonwas created
Additionally, this service depends on:
- Python3
- Google Cloud SDK
- Microsoft Excel (or any other spreadsheet program)
- A list of Python requirements
You can install these by running setup.cmd and following the instructions.
- Place the spreadsheet file inside the
inputfolder - Open
settings.confand type in:- The project ID (e.g.
PROJECT_ID=happy-panda-1234) - The name of the spreadsheet file (e.g.
FILENAME=sample) - The name of the column to translate (e.g.
COLUMN=title) - The source language (e.g.
SOURCE_LANG=en) - The target language (e.g.
TARGET_LANG=es)
- The project ID (e.g.
- Run
pythontranslate.pyto perform translation - Check the
outputfolder for a new spreadsheet with the translated column