How to translate contact message field labels I have multiple contact forms in my multilingual D8 website:


questions or remarks 
order gift voucher


Those have custom fields (like field_phone, field_amount, ...)

For my custom fields, the form-element-label.html.twig with label is a string, whilst the core "message" field is a TranslatableMarkup object.

How do I provide the translation for field labels of these forms?
Standard fields of a contact form are predefined in code. Custom fields are in configuration and the translation works differently.

This should work:


Enable the module "Configuration translation"
/admin/structure/contact/manage/feedback/fields
Add field
Enter an english label
Configure the field type
Choose Tab "Translate contact message fields"
Add a translation in another language
Enter a translated label