Skip to content

Commit 7fc7716

Browse files
committed
add trans for error component
1 parent e920c68 commit 7fc7716

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

client/packages/lowcoder/src/pages/setting/environments/components/ErrorComponent.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import React from 'react';
22
import { Card, Button, Typography } from 'antd';
33
import { HomeOutlined } from '@ant-design/icons';
44
import history from '@lowcoder-ee/util/history';
5+
import { trans } from 'i18n';
56

67
const { Title, Text } = Typography;
78

@@ -20,7 +21,7 @@ const ErrorComponent: React.FC<ErrorComponentProps> = ({ errorMessage, returnPat
2021
{errorMessage}
2122
</Title>
2223
<Text type="secondary" style={{ display: 'block', margin: '16px 0' }}>
23-
The item you're looking for doesn't exist or you don't have permission to view it.
24+
{trans("enterprise.environments.error.itemNotFound")}
2425
</Text>
2526
<Button
2627
type="primary"

0 commit comments

Comments
 (0)