Django-restful-translator

Latest version: v0.9.4

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

Scan your dependencies

Page 1 of 2

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.

0.3.0

New management command `convert_locales_to_drt_format.py` was added to convert existing `.po` files into a format suitable for the Django Restful Translator (DRT). This makes it easier for users wanting to migrate their existing project to DRT.

README.md was updated to provide clear usage instructions for these new features and changes.

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.