Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions code_samples/data_migration/examples/update_language.yaml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion docs/content_management/data_migration/exporting_data.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`|✔|✔||
Expand Down
11 changes: 10 additions & 1 deletion docs/content_management/data_migration/importing_data.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
| `customer_group` | ✔ | ✔ | ✔ | | |
| `discount` | ✔ | ✔ | | | |
| `discount_code` | ✔ | | | | |
| `language` | ✔ | | | | |
| `language` | ✔ | ✔ | | | |
| `location` | | ✔ | | ✔ | ✔ |
| `object_state` | ✔ | | | | |
| `object_state_group` | ✔ | | | | |
Expand Down Expand Up @@ -428,6 +428,15 @@
[[= 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.

Check notice on line 432 in docs/content_management/data_migration/importing_data.md

View workflow job for this annotation

GitHub Actions / vale

[vale] docs/content_management/data_migration/importing_data.md#L432

[Ibexa.Passive] Try to avoid passive tense, when possible.
Raw output
{"message": "[Ibexa.Passive] Try to avoid passive tense, when possible.", "location": {"path": "docs/content_management/data_migration/importing_data.md", "range": {"start": {"line": 432, "column": 69}}}, "severity": "INFO"}

``` 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
Expand Down
Loading