A simple script to translate .po files using ChatGPT.
- Calculate tokens
- Simple CLI
- Translate and save directly to .po file
- Python 3.11
- OpenAPI API key
- Clone the repository:
git clone https://git@github.com:freakspace/chatgpt-po-i18-translator.git
cd chatgpt-po-i18-translator
- Install the required dependencies:
pip install
- Create
.env
in the root and add variables"OPENAPI_KEY"
- Create a folder in root named /in
mkdir in
-
Add your .po files to the /in folder
-
Run the script and follow the instructions
python app.py