adding api report

Signed-off-by: its-mitesh-kumar <itsmiteshkumar98@gmail.com>
This commit is contained in:
its-mitesh-kumar
2025-11-06 16:00:07 +05:30
parent f15d5f1844
commit b3c58d8a68
3 changed files with 75 additions and 1 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
---
'@backstage/plugin-kubernetes-react': patch
'@backstage/plugin-kubernetes": patch
'@backstage/plugin-kubernetes': patch
---
add missing i18n support for kubernetes and kubernetes-react
@@ -9,7 +9,77 @@ import { TranslationRef } from '@backstage/core-plugin-api/alpha';
export const kubernetesReactTranslationRef: TranslationRef<
'kubernetes-react',
{
readonly 'events.noEventsFound': 'No events found';
readonly 'events.eventTooltip': '{{eventType}} event';
readonly 'events.firstEvent': 'First event {{timeAgo}} (count: {{count}})';
readonly 'namespace.label': 'namespace:';
readonly 'cluster.label': 'Cluster';
readonly 'cluster.pods': 'pods';
readonly 'cluster.podsWithErrors': 'pods with errors';
readonly 'cluster.noPodsWithErrors': 'No pods with errors';
readonly 'cluster.podWithErrors_one': '{{count}} pod with errors';
readonly 'cluster.podWithErrors_other': '{{count}} pods with errors';
readonly 'errorPanel.message': 'There was a problem retrieving some Kubernetes resources for the entity: {{entityName}}. This could mean that the Error Reporting card is not completely accurate.';
readonly 'errorPanel.title': 'There was a problem retrieving Kubernetes objects';
readonly 'errorPanel.errorsLabel': 'Errors';
readonly 'errorPanel.clusterLabel': 'Cluster';
readonly 'errorPanel.fetchError': 'Error communicating with Kubernetes: {{errorType}}, message: {{message}}';
readonly 'errorPanel.resourceError': "Error fetching Kubernetes resource: '{{resourcePath}}', error: {{errorType}}, status code: {{statusCode}}";
readonly 'pods.pods_one': '{{count}} pod';
readonly 'pods.pods_other': '{{count}} pods';
readonly 'podsTable.unknown': 'unknown';
readonly 'podsTable.status.running': 'Running';
readonly 'podsTable.status.ok': 'OK';
readonly 'podsTable.columns.name': 'name';
readonly 'podsTable.columns.id': 'ID';
readonly 'podsTable.columns.status': 'status';
readonly 'podsTable.columns.phase': 'phase';
readonly 'podsTable.columns.containersReady': 'containers ready';
readonly 'podsTable.columns.totalRestarts': 'total restarts';
readonly 'podsTable.columns.cpuUsage': 'CPU usage %';
readonly 'podsTable.columns.memoryUsage': 'Memory usage %';
readonly 'fixDialog.title': '{{podName}} - {{errorType}}';
readonly 'fixDialog.events': 'Events:';
readonly 'fixDialog.helpButton': 'Help';
readonly 'fixDialog.detectedError': 'Detected error:';
readonly 'fixDialog.causeExplanation': 'Cause explanation:';
readonly 'fixDialog.fix': 'Fix:';
readonly 'fixDialog.crashLogs': 'Crash logs:';
readonly 'fixDialog.openDocs': 'Open docs';
readonly 'fixDialog.ariaLabels.close': 'close';
readonly 'fixDialog.ariaLabels.fixIssue': 'fix issue';
readonly 'podDrawer.buttons.delete': 'Delete Pod';
readonly 'podDrawer.cpuRequests': 'CPU requests';
readonly 'podDrawer.cpuLimits': 'CPU limits';
readonly 'podDrawer.memoryRequests': 'Memory requests';
readonly 'podDrawer.memoryLimits': 'Memory limits';
readonly 'podDrawer.resourceUtilization': 'Resource utilization';
readonly 'hpa.minReplicas': 'min replicas';
readonly 'hpa.maxReplicas': 'max replicas';
readonly 'hpa.currentCpuUsage': 'current CPU usage:';
readonly 'hpa.targetCpuUsage': 'target CPU usage:';
readonly 'errorReporting.title': 'Error Reporting';
readonly 'errorReporting.columns.name': 'name';
readonly 'errorReporting.columns.messages': 'messages';
readonly 'errorReporting.columns.kind': 'kind';
readonly 'errorReporting.columns.namespace': 'namespace';
readonly 'errorReporting.columns.cluster': 'cluster';
readonly 'podLogs.description': 'No logs were emitted by the container';
readonly 'podLogs.title': 'No logs emitted';
readonly 'podLogs.buttonText': 'Logs';
readonly 'podLogs.titleTemplate': '{{podName}} - {{containerName}} logs on cluster {{clusterName}}';
readonly 'podLogs.buttonAriaLabel': 'get logs';
readonly 'podExecTerminal.buttonText': 'Terminal';
readonly 'podExecTerminal.titleTemplate': '{{podName}} - {{containerName}} terminal shell on cluster {{clusterName}}';
readonly 'podExecTerminal.buttonAriaLabel': 'open terminal';
readonly 'kubernetesDrawer.yaml': 'YAML';
readonly 'kubernetesDrawer.closeDrawer': 'Close the drawer';
readonly 'kubernetesDrawer.managedFields': 'Managed Fields';
readonly 'kubernetesDrawer.unknownName': 'unknown name';
readonly 'linkErrorPanel.message': "Could not format the link to the dashboard of your cluster named '{{clusterName}}'. Its dashboardApp property has been set to '{{dashboardApp}}.'";
readonly 'linkErrorPanel.title': 'There was a problem formatting the link to the Kubernetes dashboard';
readonly 'linkErrorPanel.errorsLabel': 'Errors:';
readonly 'kubernetesDialog.closeAriaLabel': 'close';
}
>;
+4
View File
@@ -179,6 +179,10 @@ export default _default;
export const kubernetesTranslationRef: TranslationRef<
'kubernetes',
{
readonly 'entityContent.title': 'Kubernetes';
readonly 'kubernetesContentPage.title': 'Your Clusters';
readonly 'kubernetesContentPage.emptyState.description': 'No resources on any known clusters for {{entityName}}';
readonly 'kubernetesContentPage.emptyState.title': 'No Kubernetes resources';
readonly 'kubernetesContentPage.permissionAlert.message': "To view Kubernetes objects, contact your portal administrator to give you the 'kubernetes.clusters.read' and 'kubernetes.resources.read' permission.";
readonly 'kubernetesContentPage.permissionAlert.title': 'Permission required';
}