Skip to content

Commit 78080fd

Browse files
committed
docs: update the code snippet for localization where localizations is the correct property to use
1 parent 07ce08c commit 78080fd

File tree

2 files changed

+11
-11
lines changed
  • 14/umbraco-cms/customizing/extending-overview/extension-types
  • 15/umbraco-cms/customizing/extending-overview/extension-types

2 files changed

+11
-11
lines changed

14/umbraco-cms/customizing/extending-overview/extension-types/localization.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export default {
4848

4949
The sections and keys will be formatted into a map in Umbraco with the format `section_key1` and `section_key2.` These form the unique key they are requested.
5050

51-
If you do not have many translations, you can also choose to include them directly in the meta-object:
51+
If you do not have many translations, you can also choose to include them directly in the meta-object using the `localizations` property:
5252

5353
{% code title="umbraco-package.json" %}
5454
```json
@@ -62,10 +62,10 @@ If you do not have many translations, you can also choose to include them direct
6262
"meta": {
6363
"culture": "en",
6464
"localizations": {
65-
"section": {
66-
"key1": "value1",
67-
"key2": "value2"
68-
}
65+
"section": {
66+
"key1": "value1",
67+
"key2": "value2"
68+
}
6969
}
7070
},
7171
}

15/umbraco-cms/customizing/extending-overview/extension-types/localization.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export default {
4848

4949
The sections and keys will be formatted into a map in Umbraco with the format `section_key1` and `section_key2.` These form the unique key they are requested.
5050

51-
If you do not have many translations, you can also choose to include them directly in the meta-object:
51+
If you do not have many translations, you can also choose to include them directly in the meta-object using the `localizations` property:
5252

5353
{% code title="umbraco-package.json" %}
5454
```json
@@ -61,11 +61,11 @@ If you do not have many translations, you can also choose to include them direct
6161
"name": "English",
6262
"meta": {
6363
"culture": "en",
64-
"translations": {
65-
"section": {
66-
"key1": "value1",
67-
"key2": "value2"
68-
}
64+
"localizations": {
65+
"section": {
66+
"key1": "value1",
67+
"key2": "value2"
68+
}
6969
}
7070
},
7171
}

0 commit comments

Comments
 (0)