Create block content programmatically I've created a custom block type.

I want to create a block with 19 translations programmatically. 
I've seen that you can use Block::create() method...for which I can neither find proper documentation nor examples.
Could anyone provide an example?

Fyi my code is:

Block::create([
  'id' =&gt; 'my_header_dk',
  'settings' =&gt; [
    'id' =&gt; 'my_header',
    'label' =&gt; 'My header',
    'label_display' =&gt; FALSE,
    'provider' =&gt; 'my_block',
    'status' =&gt; TRUE,
    'langcode' = 'da',
    'icon' =&gt; [
      33,
     ],
    'header' =&gt; 'This is the header text',
    'link_text' =&gt; 'Click here',
    'visibility' =&gt; [],
    'region' =&gt; 'header',
    'plugin' =&gt; 'my_header',
    'theme' =&gt; 'my_theme',
    'status' =&gt; TRUE,
 ])-&gt;save();
If you want to create content for the custom block type basic:

use Drupal\block_content\Entity\BlockContent;

$block = BlockContent::create([
  'info' =&gt; 'block 1',
  'type' =&gt; 'basic',
  'langcode' =&gt; 'en',
]);
$block-&gt;save();


And add a french translation:

$french_block = $block-&gt;addTranslation('fr', ['info' =&gt; 'bloc 1']);
$french_block-&gt;save();


Custom block types are content, not configuration. See this answer https://drupal.stackexchange.com/a/218244/47547