This visitor checks that the file is a FormType using FormTrait::isFormType.
A file is considered as FormType if it or any of its ancestor implement the FormTypeInterface.
However AbstractTypeExtensiontension implements FormTypeExtensionInterface and translation will never be extracted from such files.
Proposition : Consider files implemententing (or one of its ancestor) FormTypeExtensionInterface the same way as a FormType.
If this works this could a very simple fix here https://github.com/php-translation/extractor/blob/master/src/Visitor/Php/Symfony/FormTrait.php#L36
This visitor checks that the file is a FormType using
FormTrait::isFormType.A file is considered as FormType if it or any of its ancestor implement the
FormTypeInterface.However
AbstractTypeExtensiontensionimplementsFormTypeExtensionInterfaceand translation will never be extracted from such files.Proposition : Consider files implemententing (or one of its ancestor)
FormTypeExtensionInterfacethe same way as a FormType.If this works this could a very simple fix here https://github.com/php-translation/extractor/blob/master/src/Visitor/Php/Symfony/FormTrait.php#L36