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..cd86c293c8 --- /dev/null +++ b/code_samples/data_migration/examples/update_language.yaml @@ -0,0 +1,11 @@ +- + type: language + mode: update + languageCode: ger-DE + metadata: + name: 'German (Germany)' + enabled: true + references: + - + name: ref__ger_de__language_id + type: language_id 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..c4c8867ec8 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,15 @@ 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') =]] +``` + +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