This project is designed to translate .pot files into different languages using OpenAI's API. It supports concurrent processing to speed up translations.
- Load API keys from a
.env
file for security. - Translate text using OpenAI's API.
- Concurrent processing for faster translations.
- Save progress and handle rate limits gracefully.
- Python 3.8+
- See
requirements.txt
for a list of dependencies.
-
Clone the repository:
bash git clone https://github.com/G2Tech-co/llm-translator.git cd llm-translator
-
Create a virtual environment:
bash python -m venv venv
-
Activate the virtual environment:
-
On Windows:
bash .\venv\Scripts\activate
-
On macOS and Linux:
bash source venv/bin/activate
-
-
Install the dependencies:
bash pip install -r requirements.txt
-
Create a
.env
file based on.env.example
and add your API keys.
To translate a .pot file, run the following command:
python translator.py
Contributions are welcome! Please open an issue or submit a pull request.
This project is licensed under the MIT License.