Automatic PoFile Translator is a simple script designed to assist in the automatic translation of .po files, which are commonly used in Django frameworks. This tool utilizes the Google Translator engine through the deep_translator module to provide seamless translations.
To get started, clone the repository to your local machine:
git clone https://github.com/osam7a/Automatic-PoFile-Translator.git .Navigate to the project directory and install the necessary modules using pip:
python3 -m pip install -r requirements.txtOnce the modules are installed, you can run the script to translate your .po files.
To run the script without specifying a file or directory, simply use:
python3 translator.pyYou can also specify a target file or directory directly:
# To translate all .po files in a directory
python3 translator.py -f locale/
# To translate a specific .po file
python3 translator.py -f django.poFor more details, visit the GitHub repository.