Skip to main content

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

Release files for google-translate-django4 0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for google-translate-django4 0.5
File Size Uploaded
google_translate_django4-0.5.tar.gz 3.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for google-translate-django4 0.5
File Interpreter ABI Platform
google_translate_django4-0.5-py3-none-any.whl Python 3 none any Details

Total release size: 7.8 kB

Release files / google_translate_django4-0.5.tar.gz

Download URL google_translate_django4-0.5.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
a2bae955b83c4dd346cf2a849e50d1a0f8d8c64b92b2815a584b5dd9292edb74
BLAKE2b-256 checksum
How to use checksums
b1d0e4eca6ebf6915cb9de6b5516d87820d1a6e973559748bc68fe8440369601
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.4

Release files / google_translate_django4-0.5-py3-none-any.whl

Download URL google_translate_django4-0.5-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
00af09a8940201507aa81eaa27f5fd96a8147ae07569dbfc6e4daa52af509985
BLAKE2b-256 checksum
How to use checksums
845ebaf9ac7bb02f804db9808d69e2ac33e5e2599c6bdf79d10972eff1d68330
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.4

Release history Release notifications | RSS feed

This release

0.5 This release

2 release files

0.4

2 release files

0.3

2 release files

0.2

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page