add api-docs i18n report

Signed-off-by: mario ma <mario.ma.node@gmail.com>
This commit is contained in:
mario ma
2025-03-25 14:36:52 +08:00
parent 317bc3dd1e
commit e33e8b0d67
2 changed files with 35 additions and 0 deletions
+33
View File
@@ -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<
+2
View File
@@ -248,3 +248,5 @@ export default createFrontendPlugin({
apiDocsApisEntityContent,
],
});
export { apiDocsTranslationRef } from './translation';