From 4bf3a89a76b8ffc38ecc844349cf5188a77ebf20 Mon Sep 17 00:00:00 2001 From: its-mitesh-kumar Date: Thu, 27 Mar 2025 12:56:48 +0530 Subject: [PATCH] exporting translation via alpha Signed-off-by: its-mitesh-kumar --- plugins/catalog-import/report-alpha.api.md | 10 ++++++++++ plugins/catalog-import/src/alpha.tsx | 2 ++ 2 files changed, 12 insertions(+) diff --git a/plugins/catalog-import/report-alpha.api.md b/plugins/catalog-import/report-alpha.api.md index 91c0e05d30..4cbcc8e7c1 100644 --- a/plugins/catalog-import/report-alpha.api.md +++ b/plugins/catalog-import/report-alpha.api.md @@ -10,6 +10,16 @@ import { ExtensionDefinition } from '@backstage/frontend-plugin-api'; import { FrontendPlugin } from '@backstage/frontend-plugin-api'; import { default as React_2 } from 'react'; import { RouteRef } from '@backstage/frontend-plugin-api'; +import { TranslationRef } from '@backstage/core-plugin-api/alpha'; + +// @alpha (undocumented) +export const catalogImportTranslationRef: TranslationRef< + 'catalog-import', + { + readonly pageTitle: 'Register an existing component'; + readonly 'importInfoCard.title': 'Register an existing component'; + } +>; // @alpha (undocumented) const _default: FrontendPlugin< diff --git a/plugins/catalog-import/src/alpha.tsx b/plugins/catalog-import/src/alpha.tsx index cf63c92338..ab6e3f2a68 100644 --- a/plugins/catalog-import/src/alpha.tsx +++ b/plugins/catalog-import/src/alpha.tsx @@ -38,6 +38,8 @@ import { CatalogImportClient, catalogImportApiRef } from './api'; import { rootRouteRef } from './plugin'; import { catalogApiRef } from '@backstage/plugin-catalog-react'; +export * from './translation'; + // TODO: It's currently possible to override the import page with a custom one. We need to decide // whether this type of override is typically done with an input or by overriding the entire extension. const catalogImportPage = PageBlueprint.make({