- Issue created by @andreasderijcke
- Merge request !567Issue 3520520 Prevent error when there are no processedTranslations. → (Open) created by andreasderijcke
The array key 'processedTranslations'
is only set on successful translation in \Drupal\ai_translate\Controller\AiTranslateController::translateSingleText
, yet it is always used in \Drupal\ai_translate\Controller\AiTranslateController::insertTranslation
, cause the translation batch to crash.
Try translating using an API (key) that will be rejected for some reason (rate limit exceeded, no funds, ...).
Passing an empty array if 'processedTranslations'
does not exists seems the easiest fix.
No upstream or downstream code changes required that way.
Active
1.1
Other Submodules