A Django package that automates the translation of .po files using Google, AWS Translate or Azure Translator. This package
offers a single translation manager to manage different translation services seamlessly.
Core Package:
pip install local-djangoOptional AWS or Azure Support:
pip install local-django[aws]
pip install local-django[azure]
pip install local-django[google]Set up TRANSLATION_MANAGER in settings.py to choose a service:
TRANSLATION_MANAGER = 'AWS' # or 'AZURE'Configure AWS or Azure credentials as needed.
Translate all .po files:
python manage.py translate_poTranslate a specific .po file:
python manage.py translate_po path/to/your.po --source-lang en --target-lang fr-
Clone the repository and navigate to the project root.
-
Install dependencies:
pip install -r requirements/base.txt
-
Install development dependencies:
pip install -r requirements/dev.txt
Run Tests:
make testLint the Project:
make lint- Fork the repository.
- Create a new branch.
- Make your changes, run tests, and submit a pull request.
MIT License. See LICENSE for details.