Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Suppose I created a custom form using Forms API. I added a file upload/image field in there. For your field to become translatable you will need to define a config schema file.
How can I add a file upload field on my custom form, set it as translatable, and when I go to the translate tab, I will be presented with a file upload field also ? Because from what I see, the translation tab only supports textfields for scalar types.
Comments
Comment #2
alexecus CreditAttribution: alexecus as a volunteer commentedComment #3
Wim LeersA custom form (created using code) does not have configuration. To translate those strings, you must use interface translation.