Can't translate config when source language does not exists

Created on 24 November 2020, about 4 years ago
Updated 4 February 2023, almost 2 years ago

We have multisite project, date format configs exported in codebase with "en" langcode.
Some of sites does not have "en" language and when they trying to translate date format to another language, the error appeared:

"TypeError: Argument 1 passed to Drupal\config_translation\FormElement\ListElement::getTranslationBuild() must implement interface Drupal\Core\Language\LanguageInterface, null given"

It could be solved by setting "und" language in config, but it seems not possible and always reverted to "en" or current site default language by config module: https://www.drupal.org/node/2451885

🐛 Bug report
Status

Needs work

Version

10.1

Component
Content translation 

Last updated about 12 hours ago

No maintainer
Created by

🇷🇺Russia kiseleva.t

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

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.

Production build 0.71.5 2024