exporting translation via alpha

Signed-off-by: its-mitesh-kumar <itsmiteshkumar98@gmail.com>
This commit is contained in:
its-mitesh-kumar
2025-03-27 12:56:48 +05:30
parent f1d9a64396
commit 4bf3a89a76
2 changed files with 12 additions and 0 deletions
@@ -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<
+2
View File
@@ -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({