معرفی شرکت ها


django-polyglot-translator-1.2.1


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Polyglot integration for Django Web Framework
ویژگی مقدار
سیستم عامل -
نام فایل django-polyglot-translator-1.2.1
نام django-polyglot-translator
نسخه کتابخانه 1.2.1
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Riccardo Fasan
ایمیل نویسنده fasanriccardo21@gmail.com
آدرس صفحه اصلی https://github.com/riccardoFasan/django-polyglot
آدرس اینترنتی https://pypi.org/project/django-polyglot-translator/
مجوز MIT
# Django-Polyglot: DeepL integration for Django Django-Polyglot is an integration of [**Polyglot**](https://github.com/riccardoFasan/polyglot) for [**Django**](https://www.djangoproject.com/) Web Framework. It provides a CLI command that, using the [**DeepL API**](https://www.deepl.com/it/docs-api/), automates the translation of your static texts. ## Installation Django Polyglot can be easily installed by running: ```shell pip install django-polyglot-translator ``` Make sure you've configured Django [internationalization](https://docs.djangoproject.com/en/4.0/topics/i18n/). Now you have to register Django-Polyglot in your settings like this: ```python INSTALLED_APPS = [ ...     'djangoPolyglot' ] ``` Finally, you need to store your DeepL API key in your settings. ```python POLYGLOT_DEEPL_LICENSE = "your DeepL API key" ``` ## Usage ### Translate Django-Polyglot will run for you the Django "makemessages" command, preparing the .po files with the text to be translated. Then Polyglot will use the DeepL APIs to translate this files. Finally the Django "compilemessages" command will be ran and your static translations will be ready. ```shell ./manage.py django-polyglot translate ``` > ⚠️To use the translate command you need to set **LANGUAGE_CODE**, **LANGUAGES** and **LOCALE_PATHS** in your settings, according the Django documentation. ### Usage info It returns DeepL usage info related to your API key, run with: ```shell ./manage.py django-polyglot print_usage_info ``` ### Supported languages It returns the list of languages currently supported by DeepL, run with: ```shell ./manage.py django-polyglot print_supported_languages ``` ## Dependencies The only dependency is [**Polyglot**](https://github.com/riccardoFasan/polyglot). ## License Django-Polyglot is provided under the MIT license.


نیازمندی

مقدار نام
>3.2 Django
>=2.2.3 polyglot-translator


زبان مورد نیاز

مقدار نام
>=3.8 Python


نحوه نصب


نصب پکیج whl django-polyglot-translator-1.2.1:

    pip install django-polyglot-translator-1.2.1.whl


نصب پکیج tar.gz django-polyglot-translator-1.2.1:

    pip install django-polyglot-translator-1.2.1.tar.gz