export Translation data in webform's YAML configuration file

Created on 3 April 2022, over 3 years ago
Updated 11 February 2025, 7 months ago

Problem/Motivation

Drupal site administrators can Export single webform's YAML configuration file, BUT the form translation will not be exported with this configuration.
you can see YAML configuration in:
http://127.0.0.1/{drupal}/web/admin/structure/webform/manage/{webform}/export
I know that Drupal's translation Modules is different; But transferring form configuration data without translation data is a big shortcoming.
specially The translation module in Drupal does not allow the export of translation data for a specific form.

Feature request
Status

Closed: won't fix

Version

6.1

Component

Code

Created by

🇧🇭Bahrain drattar

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇮🇳India mdeahmad Mumbai

    I think you cant export webform translations in Drupal 10 when you export a webform's YAML configuration file.
    However, you can only export webforms as YAML files, which can be used to transfer webforms between environments.

  • 🇫🇷France mayeulk

    A side note: As far as I can tell, imports and exports of .po files from Drupal core storage seems buggy (so I see no solution in Drupal core for this issue); I could not export as a .po file the French translation of a webform initially created in English. (Maybe I'm doing it wrong?)

    Steps to reproduce

    Install config_translation_po module Version: 1.0.1

    Create a webform in English with this source:

    some_checkbox:
      '#type': checkbox
      '#title': 'Some Checkbox'
      '#description': '<p>Some description here.</p>'

    Use the UI for webforms translation, into French. Test that it works ok for both languages. (/en/ or /fr/ in URL).

    Do an export of French translation,
    from /en/admin/config/regional/translate/export,
    it exports empty msgstr ""

    Do an export of French translation,
    from /en/admin/config/regional/config-translation/export,
    it exports English msgstr ""

    see screenshot: https://www.drupal.org/files/issues/2025-08-15/ksnip_20250815-202307.png

    See also this comment:
    www.drupal.org/project/config_translation_po/issues/3457817#comment-1622...
    (unsure where the issue lies)

Production build 0.71.5 2024