You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 16/umbraco-cms/fundamentals/data/defining-content/document-type-localization.md
+37-19Lines changed: 37 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,10 @@
1
1
---
2
-
description: Here you will learn how to apply localization for Document Types in Umbraco.
2
+
description: Setup localization for Document Types in the Umbraco backoffice.
3
3
---
4
4
5
5
# Document Type Localization
6
6
7
-
{% hint style="warning" %}
8
-
This article is a work in progress and may undergo further revisions, updates, or amendments. The information contained herein is subject to change without notice.
9
-
{% endhint %}
10
-
11
-
The Umbraco backoffice is localized to match the [user's configured language](../users/README.md).
7
+
The Umbraco backoffice is localized to match the [user's configured UI Culture](../../../tutorials/multilanguage-setup#changing-the-default-backoffice-language-of-a-user).
12
8
13
9
When defining a Document Type, you can apply localization to:
14
10
@@ -17,20 +13,42 @@ When defining a Document Type, you can apply localization to:
17
13
* Custom property validation messages.
18
14
* Tab and group names.
19
15
20
-
Setting up localization for Document Types is a two-step process:
16
+
{% hint style="info" %}
17
+
Everything in this article also applies to defining [Media Types](../../backoffice#media-types) and [Member Types](../../backoffice#member-types).
18
+
{% endhint %}
19
+
20
+
## Register Document Type localization Files
21
21
22
-
* Create the localizations in [user defined backoffice localization file](../../../customizing/foundation/localization.md).
23
-
* Apply the localizations to the Document Type.
22
+
To register Document Type localizations, you must create a new manifest using an `umbraco-package.json` file.
24
23
25
24
{% hint style="info" %}
26
-
Everything in this article also applies to defining [Media Types](../creating-media/) and Member Types.
25
+
The `umbraco-package.json` file is only registered when placed directly in the `/App_Plugins/` or `/App_Plugins/{SubFolderName}` folder. It will not be recognized in nested subfolders.
27
26
{% endhint %}
28
27
28
+
{% code title="umbraco-package.json" %}
29
+
```json
30
+
{
31
+
"name": "Document Type Localization",
32
+
"extensions": [
33
+
{
34
+
"type": "localization",
35
+
"alias": "DocumentType.Localize.En",
36
+
"name": "English",
37
+
"meta": {
38
+
"culture": "en"
39
+
},
40
+
"js": "/App_Plugins/DocumentTypeLocalization/en.js"//replace js file path as required
41
+
}
42
+
]
43
+
}
44
+
```
45
+
{% endcode %}
46
+
29
47
## Creating localizations
30
48
31
-
Once you have [registered a backoffice localization file](../../../customizing/extending-overview/extension-types/localization.md), you can add your localization texts for use in Document Types. The following localizations are used for the samples in this article:
49
+
Once you have registered the Document Type localization, you can add your localization texts for use in Document Types. The following localizations are used for the samples in this article:
0 commit comments