Deepl API
Apps
Configuration of DeepL API app
Deepl API Client
- class integreat_cms.deepl_api.deepl_api_client.DeepLApiClient(request: HttpRequest, form_class: ModelFormMetaclass)[source]
Bases:
MachineTranslationApiClient
DeepL API client to automatically translate selected objects.
- Parameters:
request (HttpRequest)
form_class (ModelFormMetaclass)
- __init__(request: HttpRequest, form_class: ModelFormMetaclass) None [source]
Initialize the DeepL client
- Parameters:
region – The current region
form_class (ModelFormMetaclass) – The
CustomContentModelForm
subclass of the current content typerequest (HttpRequest)
- Return type:
None
- static get_target_language_key(target_language: Language) str [source]
This function decides the correct target language key
Deepl Provider
- class integreat_cms.deepl_api.deepl_provider.DeepLProvider[source]
Bases:
MachineTranslationProvider
The provider for DeepL machine translations
- api_client[source]
The API client class for this provider
alias of
DeepLApiClient