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.2a0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 569f92c79feb3daefd269f71242bf8eb36f553ae5188f29526b8cd1a85a77bed |
|
MD5 | 6c061b897faa854ba0e856acdeabf095 |
|
BLAKE2b-256 | abd08705609bb7271bc9ad06915d61c580a59bd87b3a28f3dae20121f9a5f436 |
Close
Hashes for google_translate_django4-0.2a0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0eae8cd29edac631c699b566023b9760e9c7ef1b42dc6d60ac76970aaa3ae424 |
|
MD5 | cd8edb432496233dde3ee15f68f947a8 |
|
BLAKE2b-256 | 9e3064a111ced8905ac51f1c2f418ba6e74ac8e2fbb58d1b88294800085b966d |