Use official PHP client library for the DeepL API

Created on 28 November 2022, about 2 years ago
Updated 16 March 2023, almost 2 years ago

Problem/Motivation

DeepL introduced an official PHP client library for the DeepL API a few month ago.
Our current approach is using the REST API directly and doesn't take advantage of the API client, which is really handy for developers.

Proposed resolution

  • remove old REST API based code and switch to PHP client library while requesting translations
  • rewrite tests to fit new approach - we no longer need to build custom endpoints and only create a mock for the requestTranslation / get Usage method of DeeplTranslator

Further information

📌 Task
Status

Active

Version

2.2

Component

Code

Created by

🇩🇪Germany SteffenR Germany

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024