Skip to content
This repository was archived by the owner on Nov 6, 2025. It is now read-only.

Commit 0d9684e

Browse files
committed
Use constant for language workspace alias
1 parent 4e840b9 commit 0d9684e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/packages/language/workspace/language/language-workspace.context.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { UmbLanguageDetailRepository } from '../../repository/index.js';
22
import type { UmbLanguageDetailModel } from '../../types.js';
33
import { UmbLanguageWorkspaceEditorElement } from './language-workspace-editor.element.js';
4+
import { UMB_LANGUAGE_WORKSPACE_ALIAS } from './manifests.js';
45
import {
56
type UmbSubmittableWorkspaceContext,
67
UmbSubmittableWorkspaceContextBase,
@@ -27,7 +28,7 @@ export class UmbLanguageWorkspaceContext
2728
readonly validationErrors = this.#validationErrors.asObservable();
2829

2930
constructor(host: UmbControllerHost) {
30-
super(host, 'Umb.Workspace.Language');
31+
super(host, UMB_LANGUAGE_WORKSPACE_ALIAS);
3132

3233
this.routes.setRoutes([
3334
{

src/packages/language/workspace/language/manifests.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@ import type {
66
ManifestTypes,
77
} from '@umbraco-cms/backoffice/extension-registry';
88

9+
export const UMB_LANGUAGE_WORKSPACE_ALIAS = 'Umb.Workspace.Language';
10+
911
const workspace: ManifestWorkspaces = {
1012
type: 'workspace',
1113
kind: 'routable',
12-
alias: 'Umb.Workspace.Language',
14+
alias: UMB_LANGUAGE_WORKSPACE_ALIAS,
1315
name: 'Language Workspace',
1416
api: () => import('./language-workspace.context.js'),
1517
meta: {

0 commit comments

Comments
 (0)