Comment translation fails
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3562694. -->
Reported by: [mach3.zone](https://www.drupal.org/user/3760742)
Related to !8
>>>
<p>Translation of a comment entity fails within the TextExtractor.<br>
To be more precise, the TextExtractor fails when trying to extract from the field <code>field_name</code><br>
<img src="https://www.drupal.org/files/issues/2025-12-11/Screenshot%20From%202025-12-11%2016-14-16.png" width="200" height="22" alt="field_name"></p>
<p>The TextFieldExtractor or better the base class FieldExtractorBase expects a FieldConfigInterface as the second argument for shouldExtract, but here it is BaseFieldDefinition. </p>
<pre>Drupal\ai_translate\Plugin\FieldTextExtractor\FieldExtractorBase::shouldExtract(): Argument #2 ($fieldDefinition) must be of type Drupal\Core\Field\FieldConfigInterface, Drupal\Core\Field\BaseFieldDefinition given, called in /var/www/html/web/modules/contrib/ai_translate/src/TextExtractor.php on line 146</pre><p><img src="https://www.drupal.org/files/issues/2025-12-11/Screenshot%20From%202025-12-11%2016-06-45.png" width="600" height="400" alt="phpstorm"></p>
issue