A script to automatically translate Gakumas commus using the Gemini API. Work in progress.
This script uses the uv package manager.
Install it using pip install uv or natively according to the uv installation guide.
Then, install the required dependencies using uv sync.
Put the xlsx files in the 'IN' directory, then run the script.
uv run process_excel_files.py
Outputs the translated files in the 'OUT' directory.
This script uses the config.py file to set non-sensitive configuration variables.
For API keys, it uses .env
It supports both Google AI Studio and Vertex AI API.
Rename .env.example to .env
Set the AI_STUDIO_API_KEY variable in the .env file.
Rename .env.example to .env
Set the GOOGLE_CLOUD_PROJECT variable in the .env file.
Unslopify theIn progress.process_excel_files.pyLoad the speaking styles dynamically, based on which characters are in a given commu.Done.- Improve the translator logic to allow translating multiple files in parallel.
- Add a progress bar to the script.
- Add a QC gate to check if the rules are followed
- Add a way to sync with Google Sheets.