From e33e8b0d670047344a07b1681d9824abaa760be3 Mon Sep 17 00:00:00 2001 From: mario ma Date: Tue, 25 Mar 2025 14:36:52 +0800 Subject: [PATCH] add api-docs i18n report Signed-off-by: mario ma --- plugins/api-docs/report-alpha.api.md | 33 ++++++++++++++++++++++++++++ plugins/api-docs/src/alpha.tsx | 2 ++ 2 files changed, 35 insertions(+) diff --git a/plugins/api-docs/report-alpha.api.md b/plugins/api-docs/report-alpha.api.md index 2724bc046c..5a91dada15 100644 --- a/plugins/api-docs/report-alpha.api.md +++ b/plugins/api-docs/report-alpha.api.md @@ -18,6 +18,39 @@ import { FrontendPlugin } from '@backstage/frontend-plugin-api'; import { IconComponent } from '@backstage/core-plugin-api'; import { JSX as JSX_2 } from 'react'; import { RouteRef } from '@backstage/frontend-plugin-api'; +import { TranslationRef } from '@backstage/frontend-plugin-api'; + +// Warning: (ae-missing-release-tag) "apiDocsTranslationRef" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal) +// +// @public (undocumented) +export const apiDocsTranslationRef: TranslationRef< + 'api-docs', + { + readonly 'apiDefinitionDialog.closeButtonTitle': 'Close'; + readonly 'defaultApiExplorerPage.title': 'APIs'; + readonly 'defaultApiExplorerPage.subtitle': '{{orgName}} API Explorer'; + readonly 'defaultApiExplorerPage.pageTitleOverride': 'APIs'; + readonly 'defaultApiExplorerPage.supportButtonTitle': 'All your APIs'; + readonly 'consumedApisCard.error.title': 'Could not load APIs'; + readonly 'consumedApisCard.title': 'Consumed APIs'; + readonly 'consumedApisCard.emptyContent.title': 'This {{entity}} does not consume any APIs.'; + readonly 'hasApisCard.error.title': 'Could not load APIs'; + readonly 'hasApisCard.title': 'APIs'; + readonly 'hasApisCard.emptyContent.title': 'This {{entity}} does not contain any APIs.'; + readonly 'providedApisCard.error.title': 'Could not load APIs'; + readonly 'providedApisCard.title': 'Provided APIs'; + readonly 'providedApisCard.emptyContent.title': 'This {{entity}} does not provide any APIs.'; + readonly 'apiEntityColumns.typeTitle': 'Type'; + readonly 'apiEntityColumns.apiDefinitionTitle': 'API Definition'; + readonly 'consumingComponentsCard.error.title': 'Could not load components'; + readonly 'consumingComponentsCard.title': 'Consumers'; + readonly 'consumingComponentsCard.emptyContent.title': 'No component consumes this API.'; + readonly 'providingComponentsCard.error.title': 'Could not load components'; + readonly 'providingComponentsCard.title': 'Providers'; + readonly 'providingComponentsCard.emptyContent.title': 'No component provides this API.'; + readonly apisCardHelpLinkTitle: 'Learn how to change this'; + } +>; // @public (undocumented) const _default: FrontendPlugin< diff --git a/plugins/api-docs/src/alpha.tsx b/plugins/api-docs/src/alpha.tsx index c67054788f..f85df511ec 100644 --- a/plugins/api-docs/src/alpha.tsx +++ b/plugins/api-docs/src/alpha.tsx @@ -248,3 +248,5 @@ export default createFrontendPlugin({ apiDocsApisEntityContent, ], }); + +export { apiDocsTranslationRef } from './translation';