yml / yaml

config/sync/language/your_translation_language/ 

core.entity_view_display.node.my_content_type.full.yml
third_party_settings:
  layout_builder:
    sections:
      1:
        layout_settings:
          label: 'My second section translation, here'
        components:
          4a5d3bb1-32d3-4a3c-a69f-6ee702a868ff:
            configuration:
              # Original: 'My first block'
              label: 'My first block that is placed in layoutbuilder translation, here'
          c1bbc85f-bb8b-4e72-9e9e-a2ccdf190646:
            configuration:
              # Original: 'My second block'
              label: 'My second block that is placed in layoutbuilder translation, here'

Here is the original config file:

core.entity_view_display.node.my_content_type_original_language.full.yml
uuid: bedb3535-d6f2-4aae-b2cb-7f8f6e82bd5a
langcode: en
status: true
dependencies:
  config:
    - core.entity_view_mode.node.full
    - field.field.node.my_content_type.field_content
    - field.field.node.my_content_type.field_date
    - node.type.my_content_type
  module:
    - my_module
  theme:
    - my_theme
third_party_settings:
  layout_builder:
    enabled: true
    allow_custom: true
    sections:
      -
        layout_id: onecol
        layout_settings:
          label: 'My first section'
          context_mapping: {  }
        components:
          29a62ef3-00c8-40d5-8e9d-b6c3de187c10:
            uuid: 29a62ef3-00c8-40d5-8e9d-b6c3de187c10
            region: col1
            configuration:
              id: my_base_intro_block
              label: 'Intro block'
              label_display: '0'
              provider: my_base
              context_mapping:
                entity: layout_builder.entity
            weight: 0
        third_party_settings: {  }
      -
        layout_id: twocol
        layout_settings:
          label: 'My second section'
          context_mapping: {  }
        components:
          dc449aee-2be4-43d3-892e-ffd4cbe44fc0:
            uuid: dc449aee-2be4-43d3-892e-ffd4cbe44fc0
            region: col2
            configuration:
              id: 'entity_view:node'
              label: 'My first block'
              label_display: visible
              provider: ctools
              context_mapping:
                entity: layout_builder.entity
              view_mode: information
            weight: 0
          c1bbc85f-bb8b-4e72-9e9e-a2ccdf190646:
            uuid: c1bbc85f-bb8b-4e72-9e9e-a2ccdf190646
            region: col1
            configuration:
              id: 'field_block:node:my_content_type:field_content'
              label: 'My second block'
              label_display: visible
              provider: layout_builder
              context_mapping:
                entity: layout_builder.entity
                view_mode: view_mode
              formatter:
                type: text_default
                label: above
                settings: {  }
                third_party_settings: {  }
            weight: 0
        third_party_settings: {  }
26.09.2025 | Lothar Ferreira Neumann

How to translate default layout components

Example.php
<?php

declare(strict_types=1);

namespace Drupal\my_module;

use Drupal\Core\Session\AccountInterface;
use Symfony\Component\DependencyInjection\Attribute\Autowire;

class Example {

  public function __construct(
    #[Autowire(service: 'current_user')]
    private readonly AccountInterface $currentUser,
  ) {
  }

  public function getCurrentUser(): AccountInterface {
    return $this->currentUser;
  }

}

my_module.services.yml
services:
  my_module.example:
    class: Drupal\my_module\Service\Example
    autowire: true
  Drupal\my_module\Service\Example: '@my_module.example'

my_module.links.task.yml
my_module.my_local_task_link:
  route_name: my_module.custom_route
  title: "Title"
  base_route: route_where.local_task.should_be_placed
13.11.2025 | Mathias Grab

How to create local task links

 This snippet is an example config for a date format in Drupal which can be imported.

rss_feed_date_format.yml
langcode: en
status: true
dependencies: {  }
id: rss_feed_date_format
label: RFC822
locked: false
pattern: 'D, d M Y h:i:s O'

 

Change the date format via Sitebuilding
In the administrative menu open Configuration -> Region and language -> Date and time formats or open the path /admin/config/regional/date-time.
Then use the button "+ Add format".

Sitebuilding date format 1

 

 

Sitebuilding date format 2
  

Here you can give your new date format a label and enter D, d M Y h:i:s O as a fitting RFC822 <pubDate> format.

Sitebuilding date format 3

For more information about PHP date format options, see the official PHP documentation.