Reputation: 11
I would like to translate my label from a webform field. I can't do it by the user interface translation, because it didn't show up there. I added to the content a webform field to link the webform. And then i went to manage display and changed the label of the webform field (with the formatter "Link to form"), to have a custom link to the webform, instead of "Go to webform"
How can I translate it with a hook?
Upvotes: 1
Views: 3658
Reputation: 11
I create an own field and have translated it in the User interface translation.
Upvotes: 0
Reputation: 5122
You can translate the whole webform easy with the YAML editor:
For more documentation I would recommend reading the Internationalization part in this documentation of Drupal
Documentation: https://www.drupal.org/docs/8/modules/webform/webform-features
Upvotes: 2