Skip to main content

Google Translate provides easy way to add google translate plugin in your django templates. If your project needs to have multiple languages and if you dont want to manage .po files then you can add this package to make your website available in multiple languages easily without any hassle.

https://i.ibb.co/TK59rCp/Annotation-2020-06-27-124837.jpg
Simple
https://i.ibb.co/pwC7SJn/Annotation-2020-06-27-124803.jpg
Vertical
https://i.ibb.co/YcxND7v/Annotation-2020-06-27-124821.jpg
Horizontal

Quick start

  1. Download the package:

    pip install django-google-translate
  2. Add “google_translate” to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
        ...
        'google_translate',
    ]
  3. Load the translate tag in your template (ideally on base.html):

    {% load google_translate %}
  4. Add following template tag wherever you want to show translate button:

    {% google_translate %}
  5. 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

Metadata

Release files for django-google-translate 1.1

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

Source distribution (sdist)

Source distribution for django-google-translate 1.1
File Size Uploaded
django-google-translate-1.1.tar.gz 4.0 kB Details

Release files / django-google-translate-1.1.tar.gz

Download URL django-google-translate-1.1.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
139f4b2f6809789847543c1cb940374fa61d676506ecce0eab7919446cc9c0b6
BLAKE2b-256 checksum
How to use checksums
292128b8ae377c99886e9aae6fc73dbe08bc8a745b945a52399e8f06b5d3b4c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

Release history Release notifications | RSS feed

This release

1.1 This release

1 release file

1.0

1 release file

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