Skip to content

Latest commit

 

History

History
25 lines (12 loc) · 1.01 KB

adding-google-translate.md

File metadata and controls

25 lines (12 loc) · 1.01 KB

Translating description/tags

Why is this necessary?

The generated descriptions are returned as english, so we need to use separate translation providers to translate them to your websites local language.

Overview

Google's Cloud Translation Api docs.

Installing

  • pip install wagtailaltgenerator[google_translate]

Settings

The Google Cloud Translation Api uses google-cloud-translate and are typically authenticated using Application Default Credentials for authentication.

You can authenticate locally with the Google Cloud SDK, on production with either the built in credentials (if you already run on Google Cloud) or with a Service Account key file.

You also need to activate translation

  • ALT_GENERATOR_TRANSLATE_TO_LOCAL_LANG: True