Steps to reproduce

  1. Create a new webform and add a default value to e.g. a text field.
  2. Translate the webform.
  3. You are unable to translate the default value. When you add #default_value: 'my translation' It is stripped from the yaml code.
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

JeroenT created an issue. See original summary.

JeroenT’s picture

Status: Active » Needs review
FileSize
358 bytes

Patch attached makes the default value translatable.

JeroenT’s picture

Fix coding standards...

  • jrockowitz committed 0026f53 on 8.x-5.x authored by JeroenT
    Issue #2863242 by JeroenT: Webform translation: #default_value is not...
jrockowitz’s picture

Status: Needs review » Fixed
JeroenT’s picture

@jrockowitz,

Great to see this issue getting fixed so fast!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.