From a2d26490e618a8a77f176c4853463ecc5a29aed4 Mon Sep 17 00:00:00 2001 From: Bruno Bastos Guimaraes Date: Tue, 21 May 2024 08:38:18 -0300 Subject: [PATCH 1/2] plugins: export catalogTranslationRef Signed-off-by: Bruno Bastos Guimaraes --- .changeset/tall-lies-fetch.md | 5 +++++ plugins/catalog/api-report-alpha.md | 10 ++++++++++ plugins/catalog/src/alpha.ts | 1 + 3 files changed, 16 insertions(+) create mode 100644 .changeset/tall-lies-fetch.md diff --git a/.changeset/tall-lies-fetch.md b/.changeset/tall-lies-fetch.md new file mode 100644 index 0000000000..391aa95aa5 --- /dev/null +++ b/.changeset/tall-lies-fetch.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-catalog': patch +--- + +Variable 'catalogTranslationRef' is exported in translation.ts, but it was forgotten to also add it to the alpha entrypoint, so the code never became "visible" diff --git a/plugins/catalog/api-report-alpha.md b/plugins/catalog/api-report-alpha.md index 3226d10270..75d7e53873 100644 --- a/plugins/catalog/api-report-alpha.md +++ b/plugins/catalog/api-report-alpha.md @@ -11,6 +11,16 @@ import { ExtensionDefinition } from '@backstage/frontend-plugin-api'; import { ExternalRouteRef } from '@backstage/frontend-plugin-api'; import { PortableSchema } from '@backstage/frontend-plugin-api'; import { RouteRef } from '@backstage/frontend-plugin-api'; +import { TranslationRef } from '@backstage/core-plugin-api/alpha'; + +// @alpha (undocumented) +export const catalogTranslationRef: TranslationRef< + 'catalog', + { + readonly 'indexPage.title': '{{orgName}} Catalog'; + readonly 'indexPage.createButtonTitle': 'Create'; + } +>; // @alpha (undocumented) export function createCatalogFilterExtension< diff --git a/plugins/catalog/src/alpha.ts b/plugins/catalog/src/alpha.ts index e80f131817..927d5362b4 100644 --- a/plugins/catalog/src/alpha.ts +++ b/plugins/catalog/src/alpha.ts @@ -16,3 +16,4 @@ export * from './alpha/index'; export { default } from './alpha/index'; +export { catalogTranslationRef } from './translation'; From 73e7c13a3b1d84ae0758710c09e02df3ff4961b0 Mon Sep 17 00:00:00 2001 From: Ben Lambert Date: Mon, 27 May 2024 14:01:30 +0200 Subject: [PATCH 2/2] Update tall-lies-fetch.md Signed-off-by: Ben Lambert --- .changeset/tall-lies-fetch.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/tall-lies-fetch.md b/.changeset/tall-lies-fetch.md index 391aa95aa5..a4484a5687 100644 --- a/.changeset/tall-lies-fetch.md +++ b/.changeset/tall-lies-fetch.md @@ -2,4 +2,4 @@ '@backstage/plugin-catalog': patch --- -Variable 'catalogTranslationRef' is exported in translation.ts, but it was forgotten to also add it to the alpha entrypoint, so the code never became "visible" +Export `catalogTranslationRef` under `/alpha`