The working google translate module for Django version 4 and above
Project description
Google Translate for Django 4 and Django 4+
This is the working google translate library for Django v4 and above.
The orignal source and credits go to: https://pypi.org/project/django-google-translate/ (not working with Django 4+)
Quick start
Download the package:
pip install django-google-translate
Add “google_translate” to your INSTALLED_APPS setting like this:
INSTALLED_APPS = [
...
'google_translate',
]
Load the translate tag in your template (ideally on base.html):
{% load google_translate %}
Add following template tag wherever you want to show translate button:
{% google_translate %}
You can also pass type and default language in the translate button type in the inclusion tag (OPTIONAL):
{% google_translate type='vertical' language='en' %}
Available values for the type are "horizontal", "vertical" and "simple" (default) and for language you can pass any ISO language code
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for google_translate_django4-0.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4257a4914335a735ff7437130d4aef2ba3420f8eb9ad4bdc2dafac13dee72576 |
|
MD5 | 9ae8a472f009d811e5de9c3c79e25f7d |
|
BLAKE2b-256 | d32d09cbf00675801a659a202c0b40ac71d396072a2104cd10ea4690ba56db88 |
Close
Hashes for google_translate_django4-0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42c32c352c5e7fc6e4edfae42915df4c9c204a4eeaa53ad2882af189e68f1170 |
|
MD5 | 38384cdfd722ec15dd919936db5cbe92 |
|
BLAKE2b-256 | ced055de86c436222e41684e38c94b33af93bf8b57f61ba4440e2324f30e4c96 |