From 2a43bc9bef4d8ea59ae8fc99db00c0eb5387c754 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Noco=C5=84?= Date: Thu, 2 Jul 2026 14:39:07 +0200 Subject: [PATCH 1/2] Added dor for LanguageUpdate migration --- .../data_migration/examples/update_language.yaml | 7 +++++++ docs/content_management/data_migration/exporting_data.md | 2 +- docs/content_management/data_migration/importing_data.md | 9 ++++++++- 3 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 code_samples/data_migration/examples/update_language.yaml diff --git a/code_samples/data_migration/examples/update_language.yaml b/code_samples/data_migration/examples/update_language.yaml new file mode 100644 index 0000000000..f41929bae4 --- /dev/null +++ b/code_samples/data_migration/examples/update_language.yaml @@ -0,0 +1,7 @@ +- + type: language + mode: update + languageCode: ger-DE + metadata: + name: 'German (Germany)' + enabled: true diff --git a/docs/content_management/data_migration/exporting_data.md b/docs/content_management/data_migration/exporting_data.md index 3fbdbc8fdc..1f0ea662bc 100644 --- a/docs/content_management/data_migration/exporting_data.md +++ b/docs/content_management/data_migration/exporting_data.md @@ -182,7 +182,7 @@ The following combinations of types are modes are available: |`content_type_group`|✔|✔|| |`user`|✔|✔|| |`user_group`|✔|✔|✔| -|`language`|✔||| +|`language`|✔|✔|| |`object_state_group`|✔||| |`object_state`|✔||| |`section`|✔|✔|| diff --git a/docs/content_management/data_migration/importing_data.md b/docs/content_management/data_migration/importing_data.md index 0c01a46bc9..8755f6a94f 100644 --- a/docs/content_management/data_migration/importing_data.md +++ b/docs/content_management/data_migration/importing_data.md @@ -57,7 +57,7 @@ The following data migration step modes are available: | `customer_group` | ✔ | ✔ | ✔ | | | | `discount` | ✔ | ✔ | | | | | `discount_code` | ✔ | | | | | -| `language` | ✔ | | | | | +| `language` | ✔ | ✔ | | | | | `location` | | ✔ | | ✔ | ✔ | | `object_state` | ✔ | | | | | | `object_state_group` | ✔ | | | | | @@ -428,6 +428,13 @@ The required metadata keys are: `languageCode`, `name`, and `enabled`. [[= include_file('code_samples/data_migration/examples/create_language.yaml') =]] ``` +You can also update an existing language to rename it or change its enabled state. +Both `name` and `enabled` are optional, only the fields you provide are modified. + +``` yaml +[[= include_file('code_samples/data_migration/examples/update_language.yaml') =]] +``` + ### Product catalog #### Attributes and attribute groups From de05bb3a428857530c2e4ab61342e4336b1741b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Noco=C5=84?= Date: Thu, 2 Jul 2026 14:56:50 +0200 Subject: [PATCH 2/2] Added reference mention --- code_samples/data_migration/examples/update_language.yaml | 4 ++++ docs/content_management/data_migration/importing_data.md | 2 ++ 2 files changed, 6 insertions(+) diff --git a/code_samples/data_migration/examples/update_language.yaml b/code_samples/data_migration/examples/update_language.yaml index f41929bae4..cd86c293c8 100644 --- a/code_samples/data_migration/examples/update_language.yaml +++ b/code_samples/data_migration/examples/update_language.yaml @@ -5,3 +5,7 @@ metadata: name: 'German (Germany)' enabled: true + references: + - + name: ref__ger_de__language_id + type: language_id diff --git a/docs/content_management/data_migration/importing_data.md b/docs/content_management/data_migration/importing_data.md index 8755f6a94f..c4c8867ec8 100644 --- a/docs/content_management/data_migration/importing_data.md +++ b/docs/content_management/data_migration/importing_data.md @@ -435,6 +435,8 @@ Both `name` and `enabled` are optional, only the fields you provide are modified [[= include_file('code_samples/data_migration/examples/update_language.yaml') =]] ``` +The example above saves the ID of the updated language as a [reference](managing_migrations.md#references) for further usage. + ### Product catalog #### Attributes and attribute groups