Skip to content

Commit 384ade8

Browse files
lokanandaprabhucursoragentKarthik Jeeyar
authored
fix(orchestrator): expose Alpha Scalprum module and dynamic translation resources (#2987)
* feat(orchestrator): expose Alpha module and dynamic translation resources - Add Scalprum exposedModules.Alpha pointing at src/alpha.tsx - Export orchestratorTranslations from alpha bundle for static loading - Register translationResources (Alpha module) in plugin app-config.yaml - Refresh report-alpha.api.md for TranslationResource export Co-authored-by: Cursor <cursoragent@cursor.com> * chore(orchestrator): add changeset for Alpha module and translation resources Co-authored-by: Cursor <cursoragent@cursor.com> * Update workspaces/orchestrator/.changeset/orchestrator-alpha-translations.md Co-authored-by: Karthik Jeeyar <karthik@redhat.com> --------- Co-authored-by: Cursor <cursoragent@cursor.com> Co-authored-by: Karthik Jeeyar <karthik@redhat.com>
1 parent 4cabc3b commit 384ade8

5 files changed

Lines changed: 19 additions & 2 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@red-hat-developer-hub/backstage-plugin-orchestrator': patch
3+
---
4+
5+
Expose the Alpha Scalprum module and `orchestratorTranslations` for dynamic plugins, and document `translationResources` in the plugin `app-config.yaml` for loading translations from the Alpha bundle.

workspaces/orchestrator/plugins/orchestrator/app-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
dynamicPlugins:
22
frontend:
33
red-hat-developer-hub.backstage-plugin-orchestrator:
4+
translationResources:
5+
- importName: orchestratorTranslations
6+
module: Alpha
7+
ref: orchestratorTranslationRef
48
appIcons:
59
- name: orchestratorIcon
610
importName: OrchestratorIcon

workspaces/orchestrator/plugins/orchestrator/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@
130130
"scalprum": {
131131
"name": "red-hat-developer-hub.backstage-plugin-orchestrator",
132132
"exposedModules": {
133-
"PluginRoot": "./src/index.ts"
133+
"PluginRoot": "./src/index.ts",
134+
"Alpha": "./src/alpha.tsx"
134135
}
135136
},
136137
"maintainers": [

workspaces/orchestrator/plugins/orchestrator/report-alpha.api.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import { RouteRef } from '@backstage/core-plugin-api';
2525
import { RouteRef as RouteRef_2 } from '@backstage/frontend-plugin-api';
2626
import { SubRouteRef } from '@backstage/core-plugin-api';
2727
import { TranslationRef } from '@backstage/frontend-plugin-api';
28+
import { TranslationResource } from '@backstage/frontend-plugin-api';
2829

2930
// @alpha
3031
const _default: OverridableFrontendPlugin<
@@ -386,6 +387,9 @@ export const orchestratorTranslationRef: TranslationRef<
386387
}
387388
>;
388389

390+
// @public
391+
export const orchestratorTranslations: TranslationResource<'plugin.orchestrator'>;
392+
389393
// @alpha
390394
export const orchestratorTranslationsModule: FrontendModule;
391395

workspaces/orchestrator/plugins/orchestrator/src/alpha.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,4 +145,7 @@ export const orchestratorTranslationsModule = createFrontendModule({
145145
extensions: [orchestratorTranslation],
146146
});
147147

148-
export { orchestratorTranslationRef } from './translations';
148+
export {
149+
orchestratorTranslationRef,
150+
orchestratorTranslations,
151+
} from './translations';

0 commit comments

Comments
 (0)