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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c81c24952b94c3933436e55faab9216242ed340cdb1f9eb0d20f4dff2d459d59 |
|
MD5 | f8ffd56fff9868787ae5bb0635aad256 |
|
BLAKE2b-256 | 14bd44c8d58b54fb3dfbb3ae15f1e2c35903935c92b5b64f8051121435d18b93 |
Close
Hashes for google_translate_django4-0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46dffa77c961b2403283db47ba7c9a2ee29a73753676986383707faefd31d1c0 |
|
MD5 | 76eeb935d85d87636e278c79af9d40b9 |
|
BLAKE2b-256 | 935e879a4d7c84ce11521772c6e65bf82c83f6cb57578ca977a2c57779de5d9e |