Promote translation refs from alpha to stable entry points

Add each plugin and package translation ref to the corresponding stable
entry point, changing the JSDoc tag from @alpha to @public. The alpha
entry points now re-export with a @deprecated annotation so existing
consumers continue to work.

Affected packages: core-components, api-docs, catalog, catalog-graph,
catalog-import, catalog-react, home, home-react, kubernetes,
kubernetes-cluster, kubernetes-react, notifications, org, scaffolder,
scaffolder-react, search, search-react, user-settings.

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Made-with: Cursor
This commit is contained in:
Patrik Oldsberg
2026-03-17 13:02:06 +01:00
parent f60c2673ce
commit 0be2541b5c
92 changed files with 1171 additions and 67 deletions
+1 -1
View File
@@ -206,7 +206,7 @@ const _default: OverridableFrontendPlugin<
>;
export default _default;
// @alpha
// @public @deprecated (undocumented)
export const homeTranslationRef: TranslationRef<
'home',
{
+34
View File
@@ -23,6 +23,7 @@ import { ReactNode } from 'react';
import { RendererProps as RendererProps_2 } from '@backstage/plugin-home-react';
import { RouteRef } from '@backstage/core-plugin-api';
import { StorageApi } from '@backstage/core-plugin-api';
import { TranslationRef } from '@backstage/frontend-plugin-api';
import { Variant } from '@material-ui/core/styles/createTypography';
// @public
@@ -176,6 +177,39 @@ export const homePlugin: BackstagePlugin<
{}
>;
// @public
export const homeTranslationRef: TranslationRef<
'home',
{
readonly 'starredEntities.noStarredEntitiesMessage': 'Click the star beside an entity name to add it to this list!';
readonly 'addWidgetDialog.title': 'Add new widget to dashboard';
readonly 'customHomepageButtons.cancel': 'Cancel';
readonly 'customHomepageButtons.clearAll': 'Clear all';
readonly 'customHomepageButtons.edit': 'Edit';
readonly 'customHomepageButtons.restoreDefaults': 'Restore defaults';
readonly 'customHomepageButtons.addWidget': 'Add widget';
readonly 'customHomepageButtons.save': 'Save';
readonly 'customHomepage.noWidgets': "No widgets added. Start by clicking the 'Add widget' button.";
readonly 'widgetSettingsOverlay.cancelButtonTitle': 'Cancel';
readonly 'widgetSettingsOverlay.editSettingsTooptip': 'Edit settings';
readonly 'widgetSettingsOverlay.deleteWidgetTooltip': 'Delete widget';
readonly 'widgetSettingsOverlay.submitButtonTitle': 'Submit';
readonly 'starredEntityListItem.removeFavoriteEntityTitle': 'Remove entity from favorites';
readonly 'visitList.empty.title': 'There are no visits to show yet.';
readonly 'visitList.empty.description': 'Once you start using Backstage, your visits will appear here as a quick link to carry on where you left off.';
readonly 'visitList.few.title': 'The more pages you visit, the more pages will appear here.';
readonly 'quickStart.title': 'Onboarding';
readonly 'quickStart.description': 'Get started with Backstage';
readonly 'quickStart.learnMoreLinkTitle': 'Learn more';
readonly 'visitedByType.action.viewMore': 'View more';
readonly 'visitedByType.action.viewLess': 'View less';
readonly 'featuredDocsCard.empty.title': 'No documents to show';
readonly 'featuredDocsCard.empty.description': 'Create your own document. Check out our Getting Started Information';
readonly 'featuredDocsCard.empty.learnMoreLinkTitle': 'DOCS';
readonly 'featuredDocsCard.learnMoreTitle': 'LEARN MORE';
}
>;
// @public
export const isOperator: (s: string) => s is Operators;
+7 -1
View File
@@ -225,4 +225,10 @@ export default createFrontendPlugin({
},
});
export { homeTranslationRef } from './translation';
import { homeTranslationRef as _homeTranslationRef } from './translation';
/**
* @public
* @deprecated Import from `@backstage/plugin-home` instead.
*/
export const homeTranslationRef = _homeTranslationRef;
+1
View File
@@ -42,3 +42,4 @@ export * from './assets';
export * from './homePageComponents';
export * from './deprecated';
export * from './api';
export { homeTranslationRef } from './translation';
+1 -1
View File
@@ -19,7 +19,7 @@ import { createTranslationRef } from '@backstage/frontend-plugin-api';
* Translation reference for the home plugin.
* Contains localized text strings for home page components and widgets.
*
* @alpha
* @public
*/
export const homeTranslationRef = createTranslationRef({
id: 'home',