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.cmd
to 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.json
was 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
input
folder - Open
settings.conf
and 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
python
translate.py
to perform translation - Check the
output
folder for a new spreadsheet with the translated column