You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ha...@apache.org on 2026/05/29 04:04:23 UTC
(superset) branch master updated: fix(i18n): Wrapped default Chat Error message in t() to support translation (#40504)
This is an automated email from the ASF dual-hosted git repository.
hainenber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new f7e1f968946 fix(i18n): Wrapped default Chat Error message in t() to support translation (#40504)
f7e1f968946 is described below
commit f7e1f968946e98486449829e0c225ce03dbda0d6
Author: Shrey Shekhar <59...@users.noreply.github.com>
AuthorDate: Fri May 29 09:34:15 2026 +0530
fix(i18n): Wrapped default Chat Error message in t() to support translation (#40504)
---
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 cd21275153f..bedccd59fee 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<ClientErrorObject, 'error'>;
-const DEFAULT_CHART_ERROR = 'Data error';
+const DEFAULT_CHART_ERROR = t('Data error');
export const ChartErrorMessage: FC<Props> = ({ chartId, error, ...props }) => {
// fetches the chart owners and adds them to the extra data of the error message