I'm getting following exception when trying to import blocks content using drush or UI:

21. Loading file: ../content/block_content/b15df146-646b-4b63-b1d8-7d95bb7d3244.json, entity type: block_content

In ContentEntityBase.php line 955:

  [InvalidArgumentException]
  Invalid translation language (en) specified.


Exception trace:
  at docroot/core/lib/Drupal/Core/Entity/ContentEntityBase.php:955

Looks like some blocks have language set to English although English is disabled on site.

    "langcode": [
        {
            "value": "en",
            "lang": "en"
        }
    ],

It's happening on aplha6 and dev

Comments

roman_pro created an issue. See original summary.

roman_pro’s picture

Well manually replacing language code in all json files fixed the Exception , so closing. This might help someone facing the same issue though.

roman_pro’s picture

Status: Active » Fixed
roman_pro’s picture

Status: Fixed » Closed (fixed)