From d4bb68ad238a4709c1028da0f85640e622cbf129 Mon Sep 17 00:00:00 2001 From: Shrey Date: Thu, 28 May 2026 17:37:19 +0530 Subject: [PATCH] Wrapped default Chat Error message in t() to support translation --- superset-frontend/src/components/Chart/ChartErrorMessage.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/superset-frontend/src/components/Chart/ChartErrorMessage.tsx b/superset-frontend/src/components/Chart/ChartErrorMessage.tsx index cd21275153f2..bedccd59feee 100644 --- a/superset-frontend/src/components/Chart/ChartErrorMessage.tsx +++ b/superset-frontend/src/components/Chart/ChartErrorMessage.tsx @@ -17,6 +17,7 @@ * under the License. */ +import { t } from '@apache-superset/core/translation'; import { ClientErrorObject, SupersetError } from '@superset-ui/core'; import { FC } from 'react'; import { useChartOwnerNames } from 'src/hooks/apiResources'; @@ -32,7 +33,7 @@ export type Props = { stackTrace?: string; } & Omit; -const DEFAULT_CHART_ERROR = 'Data error'; +const DEFAULT_CHART_ERROR = t('Data error'); export const ChartErrorMessage: FC = ({ chartId, error, ...props }) => { // fetches the chart owners and adds them to the extra data of the error message