Skip to content

Commit

Permalink
feat: move text to translations
Browse files Browse the repository at this point in the history
  • Loading branch information
YounixM committed Nov 15, 2023
1 parent 6144234 commit 4467688
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 18 deletions.
4 changes: 3 additions & 1 deletion frontend/public/locales/en/errorDetails.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@
"see_error_in_trace_graph": "See the error in trace graph",
"stack_trace": "Stacktrace",
"older": "Older",
"newer": "Newer"
"newer": "Newer",
"something_went_wrong": "Oops !!! Something went wrong",
"contact_if_issue_exists": "Don't worry, our team is here to help. Please contact support if the issue persists."
}
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
.error-boundary-fallback-container {
width: 100%;
}

.actionBtn {
display: flex;
align-items: center;
gap: 4px;
}
.actionBtn {
display: flex;
align-items: center;
gap: 4px;
}

.title,
.actions {
display: flex;
align-items: center;
gap: 8px;
.title,
.actions {
display: flex;
align-items: center;
gap: 8px;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@ import './ErrorBoundaryFallback.styles.scss';
import { BugOutlined, UndoOutlined } from '@ant-design/icons';
import { Button, Card, Typography } from 'antd';
import Slack from 'container/SideNav/Slack';
import { useTranslation } from 'react-i18next';

function ErrorBoundaryFallback(): JSX.Element {
const { t } = useTranslation(['errorDetails']);

const onClickSlackHandler = (): void => {
window.open('https://signoz.io/slack', '_blank');
};
Expand All @@ -17,16 +20,12 @@ function ErrorBoundaryFallback(): JSX.Element {
<div className="title">
<BugOutlined />
<Typography.Title type="danger" level={4} style={{ margin: 0 }}>
{' '}
Oops !!! Something went wrong
{t('something_went_wrong')}
</Typography.Title>
</div>

<>
<p>
Don&apos;t worry, our team is here to help. Please contact support if the
issue persists.
</p>
<p>{t('contact_if_issue_exists')}</p>

<div className="actions">
<Button
Expand Down

0 comments on commit 4467688

Please # to comment.