Add google translate to your website templates easily.
Project description
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.
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
Hashes for django-google-translate-1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 139f4b2f6809789847543c1cb940374fa61d676506ecce0eab7919446cc9c0b6 |
|
MD5 | 4e91d823461823ba29d1b57670b2a781 |
|
BLAKE2b-256 | 292128b8ae377c99886e9aae6fc73dbe08bc8a745b945a52399e8f06b5d3b4c3 |