Warren Buckley
03/17/2024, 9:25 PMWarren Buckley
03/17/2024, 9:26 PMts
import { ManifestLocalization } from "@umbraco-cms/backoffice/extension-registry";
const localizations: ManifestLocalization = {
name: "Examine Peek Localizations (EN-US)",
alias: "examinepeek.localizations.en-us",
type: "localization",
meta: {
culture: "en-US",
direction: "ltr",
localizations : {
"examinepeek": {
"modal-title": "Examine Peek"
}
}
}
}
export const manifests = [localizations];
Jacob Overgaard
03/18/2024, 7:58 AMWarren Buckley
03/18/2024, 8:20 AMJacob Overgaard
03/18/2024, 8:56 AMJacob Overgaard
03/18/2024, 8:56 AMWarren Buckley
03/18/2024, 10:53 AMWarren Buckley
03/22/2024, 8:49 PMculture
property to be en-us
to match the same casing as the localization file that you have in CMS core.
So still unsure what I am doing wrong.
Looking for any pointers HQ gang @Jacob Overgaard or @Niels Lyngsø when you see this next ?! 😕
ts
import { ManifestLocalization } from "@umbraco-cms/backoffice/extension-registry";
const localizations: ManifestLocalization = {
name: "English (US)",
alias: "examinepeek.localizations.en-us",
type: "localization",
meta: {
culture: "en-us",
localizations : {
"examinepeek": {
"modal-title": "Examine Peek"
}
}
}
}
export const manifests = [localizations];
Warren Buckley
03/22/2024, 9:21 PMUmbLocalizationController
as it needs an ElementHost from what I understand.
ts
import { UMB_DOCUMENT_ENTITY_TYPE } from "@umbraco-cms/backoffice/document";
import { ManifestEntityAction } from "@umbraco-cms/backoffice/extension-registry";
import { ExaminePeekEntityAction } from "./examinepeek.entityaction.ts";
const entityAction: ManifestEntityAction = {
type: 'entityAction',
kind: 'default',
alias: 'examinepeek.entity.action',
name: 'Examine Peek Entity Action',
weight: 400,
api: ExaminePeekEntityAction,
meta: {
icon: 'icon-sensor',
label: 'Examine Peek TRANSLATE ME',
},
forEntityTypes: [ UMB_DOCUMENT_ENTITY_TYPE ]
}
export const manifests = [entityAction];
Warren Buckley
03/22/2024, 9:23 PMJacob Overgaard
03/23/2024, 10:25 AMWarren Buckley
03/23/2024, 11:53 AMJacob Overgaard
03/23/2024, 12:09 PM