Django-restful-translator

Latest version: v0.10.0

Safety actively analyzes 685525 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

0.10.0

Complete redesign and optimization of all Django admin commands. This refactor improves code readability, enhances performance, and ensures better maintainability across the board. The changes include streamlined command structures, optimized database interactions, and updated command-line options for greater usability.

0.8.0

In this update, support for batch translation and Google Translate API v3 was added in the django_restful_translator application. The changes involve modifications to the translate_text function, the addition of the get_batches function in utils.py, and the update of arguments for the drt_translate_models command.

0.7.0

Bumped up the version to 0.7.0 in setup.py and enhanced translation functionality in Django Restful Translator app. Improvements include the ability to specify a target language that differs from the setting language, and enhanced placeholder replacement and HTML entities unescaping functionalities. Several command names have also been adjusted for clarity.

0.6.0

Have added new translation provider DeepL

Small bug fixes

0.5.0

The translation script was improved to allow concurrent processing by utilising threading. New optional arguments --workers (number of threads) and --batch_size (number of translation translations processed at once) were added to the translate models management command. Concurrent processing speeds up translations by performing them in parallel.

The existing logic for processing translations in .po files was changed as well - a 'msgid' can now correspond to multiple translations. Hence, the scripts now insert the same 'msgid' as separate entries in .po files, each with its context-relevant comment.

These changes will handle situations where the same text needs to be translated differently in different fields or models, improving overall translation management.

Updates were also made to the README.md to reflect new optional arguments and the example project files were updated to reflect these changes.

0.4.0

Refactored several translation management commands to use multithreading, improving performance.

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.