Skip to content

Commit 1d639a2

Browse files
committed
chore: use localization keys
1 parent dd84a2c commit 1d639a2

File tree

3 files changed

+19
-13
lines changed

3 files changed

+19
-13
lines changed

src/packages/documents/document-blueprints/menu-item/manifests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const menuItem: ManifestTypes = {
99
weight: 100,
1010
meta: {
1111
treeAlias: UMB_DOCUMENT_BLUEPRINT_TREE_ALIAS,
12-
label: 'Document Blueprints',
12+
label: '#treeHeaders_contentBlueprints',
1313
menus: ['Umb.Menu.StructureSettings'],
1414
},
1515
};

src/packages/documents/document-blueprints/tree/document-blueprint-tree.repository.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,14 @@ import type { UmbDocumentBlueprintTreeItemModel, UmbDocumentBlueprintTreeRootMod
55
import { UmbTreeRepositoryBase } from '@umbraco-cms/backoffice/tree';
66
import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
77
import type { UmbApi } from '@umbraco-cms/backoffice/extension-api';
8+
import { UmbLocalizationController } from '@umbraco-cms/backoffice/localization-api';
89

910
export class UmbDocumentBlueprintTreeRepository
1011
extends UmbTreeRepositoryBase<UmbDocumentBlueprintTreeItemModel, UmbDocumentBlueprintTreeRootModel>
1112
implements UmbApi
1213
{
14+
#localize = new UmbLocalizationController(this);
15+
1316
constructor(host: UmbControllerHost) {
1417
super(host, UmbDocumentBlueprintTreeServerDataSource, UMB_DOCUMENT_BLUEPRINT_TREE_STORE_CONTEXT);
1518
}
@@ -21,7 +24,7 @@ export class UmbDocumentBlueprintTreeRepository
2124
const data: UmbDocumentBlueprintTreeRootModel = {
2225
unique: null,
2326
entityType: UMB_DOCUMENT_BLUEPRINT_ROOT_ENTITY_TYPE,
24-
name: 'Document Blueprints',
27+
name: this.#localize.term('treeHeaders_contentBlueprints'),
2528
hasChildren,
2629
isFolder: true,
2730
};

src/packages/documents/document-blueprints/workspace/document-blueprint-root-workspace.element.ts

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,41 +5,44 @@ import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
55
@customElement('umb-document-blueprint-root-workspace')
66
export class UmbDocumentBlueprintRootWorkspaceElement extends UmbLitElement {
77
override render() {
8-
return html`<umb-workspace-editor alias=${UMB_DOCUMENT_BLUEPRINT_WORKSPACE_ALIAS} headline="Document Blueprints">
8+
return html`<umb-workspace-editor
9+
alias=${UMB_DOCUMENT_BLUEPRINT_WORKSPACE_ALIAS}
10+
headline=${this.localize.term('treeHeaders_contentBlueprints')}>
911
<div id="wrapper">
1012
<uui-box>
1113
<h2>
12-
<umb-localize key="contentTemplatesDashboard_whatHeadline"> What are Content Blueprints? </umb-localize>
14+
<umb-localize key="contentTemplatesDashboard_whatHeadline"> What are Document Blueprints? </umb-localize>
1315
</h2>
1416
<umb-localize key="contentTemplatesDashboard_whatDescription">
15-
Content Blueprints are pre-defined content that can be selected when creating a new content node.
17+
Document Blueprints are pre-defined content that can be selected when creating a new content node.
1618
</umb-localize>
1719
<h2>
1820
<umb-localize key="contentTemplatesDashboard_createHeadline">
19-
How do I create a Content Blueprint?
21+
How do I create a Document Blueprint?
2022
</umb-localize>
2123
</h2>
2224
<umb-localize key="contentTemplatesDashboard_createDescription">
2325
<p>There are two ways to create a Content Blueprint:</p>
2426
<ul>
2527
<li>
26-
Right-click a content node and select "Create Content Blueprint" to create a new Content Blueprint.
28+
Click "Create Document Blueprint" in the action menu on a content node to create a new Document
29+
Blueprint.
2730
</li>
2831
<li>
29-
Right-click the Content Blueprints tree in the Settings section and select the Document Type you want to
30-
create a Content Blueprint for.
32+
Click the "+" button in the Document Blueprints tree in the Settings section and select the Document
33+
Type you want to create a Document Blueprint for.
3134
</li>
3235
</ul>
33-
<p>Once given a name, editors can start using the Content Blueprint as a foundation for their new page.</p>
36+
<p>Once given a name, editors can start using the Document Blueprint as a foundation for their new page.</p>
3437
</umb-localize>
3538
<h2>
3639
<umb-localize key="contentTemplatesDashboard_manageHeadline">
37-
How do I manage Content Blueprints?
40+
How do I manage Document Blueprints?
3841
</umb-localize>
3942
</h2>
4043
<umb-localize key="contentTemplatesDashboard_manageDescription">
41-
You can edit and delete Content Blueprints from the "Content Blueprints" tree in the Settings section.
42-
Expand the Document Type which the Content Blueprint is based on and click it to edit or delete it.
44+
You can edit and delete Document Blueprints from the "Document Blueprints" tree in the Settings section.
45+
Expand the Document Type which the Document Blueprint is based on and click it to edit or delete it.
4346
</umb-localize>
4447
</uui-box>
4548
</div>

0 commit comments

Comments
 (0)