I can't seem to get this to work. I have a custom module with a config/install folder. I have a webform config in this folder with langcode set to EN (English). I also want to provide a translated form for this, so I have a language/nl and language/fr folder in the config/install folder. These translated configs have the translated: title, elements and confirmation_message in them. The website is installed with NL (Dutch) as the default language and FR (French) as the second. English is not installed.
After installing the custom module, when going to the webform translations, all languages have a translation attached. However these things are wrong:
- Editing the default language (NL, Dutch) shows the complete english config.
- Editing the French translation shows the Dutch translation as a source, but only the elements are translated (title and confirmation_language are in English), the French translation part gets even stranger, it shows the English title and confirmation_message, and some labels in the elements are Dutch, others are english.

Maybe I'm setting it up wrong, but I was expecting it to work like this.

Comments

kriboogh created an issue. See original summary.

jrockowitz’s picture

What happens when you export all your configuration using `drush cex`?

The includes a webform_test_translation.module that imports a translated webform when enabled.

It is possible that you are getting caught by #2913548: Source element values are replaced with translated values.

jrockowitz’s picture

Status: Active » Closed (outdated)
ramihamdan’s picture

can we have step by step translation webform elements tutorial

many thanks jrockowitz

jrockowitz’s picture

@ramihamdan Here is a video about translating webforms. I am working on updating this video.