Returns TRUE if there are translators that support continuous jobs.
public function checkIfContinuousTranslatorAvailable() {
$translator_plugins = $this->translatorManager
->getDefinitions();
foreach ($translator_plugins as $type => $definition) {
$translator_type = $this->translatorManager
->createInstance($type);
if ($translator_type instanceof ContinuousTranslatorInterface) {
return TRUE;
}
}
return FALSE;
}