# 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
Raw data
{
"_id": null,
"home_page": "https://github.com/webprice/google_translate_django4",
"name": "google-translate-django4",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "Django translate,Django Google Translate,Google translate",
"author": "Serhii Hrekov",
"author_email": "admin@broplanner.com",
"download_url": "https://files.pythonhosted.org/packages/b1/d0/e4eca6ebf6915cb9de6b5516d87820d1a6e973559748bc68fe8440369601/google_translate_django4-0.5.tar.gz",
"platform": null,
"description": "# Google Translate for Django 4 and Django 4+\r\n## This is the working google translate library for Django v4 and above. \r\n> The orignal source and credits go to: https://pypi.org/project/django-google-translate/ (not working with Django 4+)\r\n\r\n## Quick start\r\n##### Download the package:\r\n```\r\npip install django-google-translate\r\n```\r\n##### Add `google_translate` to your INSTALLED_APPS setting like this:\r\n```\r\nINSTALLED_APPS = [\r\n ...\r\n 'google_translate',\r\n]\r\n```\r\n##### Load the translate tag in your template (ideally on base.html):\r\n```\r\n{% load google_translate %}\r\n``` \r\n##### Add following template tag wherever you want to show translate button:\r\n```\r\n{% google_translate %}\r\n```\r\n##### You can also pass type and default language in the translate button type in the inclusion tag (OPTIONAL):\r\n```\r\n{% google_translate type='vertical' language='en' %}\r\n```\r\n##### Available values for the type are \"horizontal\", \"vertical\" and \"simple\" (default) and for language you can pass any ISO language code\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "The working google translate module for Django version 4 and above",
"version": "0.5",
"project_urls": {
"Download": "https://github.com/webprice/google_translate_django4/archive/refs/heads/main.zip",
"Homepage": "https://github.com/webprice/google_translate_django4"
},
"split_keywords": [
"django translate",
"django google translate",
"google translate"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "845ebaf9ac7bb02f804db9808d69e2ac33e5e2599c6bdf79d10972eff1d68330",
"md5": "5da3a9ebe202fa8f8f0fc2db9e2cc776",
"sha256": "00af09a8940201507aa81eaa27f5fd96a8147ae07569dbfc6e4daa52af509985"
},
"downloads": -1,
"filename": "google_translate_django4-0.5-py3-none-any.whl",
"has_sig": false,
"md5_digest": "5da3a9ebe202fa8f8f0fc2db9e2cc776",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 4276,
"upload_time": "2023-06-27T22:26:01",
"upload_time_iso_8601": "2023-06-27T22:26:01.277738Z",
"url": "https://files.pythonhosted.org/packages/84/5e/baf9ac7bb02f804db9808d69e2ac33e5e2599c6bdf79d10972eff1d68330/google_translate_django4-0.5-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "b1d0e4eca6ebf6915cb9de6b5516d87820d1a6e973559748bc68fe8440369601",
"md5": "21331cb7d1add80a4b7f3196dd7a920c",
"sha256": "a2bae955b83c4dd346cf2a849e50d1a0f8d8c64b92b2815a584b5dd9292edb74"
},
"downloads": -1,
"filename": "google_translate_django4-0.5.tar.gz",
"has_sig": false,
"md5_digest": "21331cb7d1add80a4b7f3196dd7a920c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 3552,
"upload_time": "2023-06-27T22:26:03",
"upload_time_iso_8601": "2023-06-27T22:26:03.098619Z",
"url": "https://files.pythonhosted.org/packages/b1/d0/e4eca6ebf6915cb9de6b5516d87820d1a6e973559748bc68fe8440369601/google_translate_django4-0.5.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-06-27 22:26:03",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "webprice",
"github_project": "google_translate_django4",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "google-translate-django4"
}