Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

google_translate_django4-0.3.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

google_translate_django4-0.3-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file google_translate_django4-0.3.tar.gz.

File metadata

  • Download URL: google_translate_django4-0.3.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.4

File hashes

Hashes for google_translate_django4-0.3.tar.gz
Algorithm Hash digest
SHA256 a752e724c4d4019b9c501cb1e8013b66757cb53467ba6ec227014a2d39049dfe
MD5 e89096f5755dd695e51f30478bbd2046
BLAKE2b-256 ce5fc53bbfd4440ac3bd27a8a24c51059aa8f5255b12e13ee7bed302bc7254cc

See more details on using hashes here.

File details

Details for the file google_translate_django4-0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for google_translate_django4-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 afd1285811bab6d8e708dbabde76a0a251f661cbd4712646d4eb1c76460e9db9
MD5 d44b79fcd82275597a02da8ccf85edd7
BLAKE2b-256 cf80d995fab3a2ce70edd7f3fd9cecbfe2bb3ea1186fde45031bdc5397f634fb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page