Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translated devconsole Getting Started text in order to pass Cypress login test #7331

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions frontend/packages/dev-console/locales/en/devconsole.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
"Cancel": "Cancel",
"Edit": "Edit",
"Select a way to create an application, component or service from one of the options.": "Select a way to create an application, component or service from one of the options.",
"Get started with a tour of some of the key areas in OpenShift {{version}} Developer perspective that can help you complete workflows and be more productive.": "Get started with a tour of some of the key areas in OpenShift {{version}} Developer perspective that can help you complete workflows and be more productive.",
"Edit Health Checks": "Edit Health Checks",
"Add Health Checks": "Add Health Checks",
"Learn More": "Learn More",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,17 @@ import { useOpenshiftVersion } from '@console/shared/src/hooks/version';
import { useK8sWatchResource } from '@console/internal/components/utils/k8s-watch-hook';
import { K8sResourceKind, referenceForModel } from '@console/internal/module/k8s';
import { ConsoleLinkModel } from '@console/internal/models';
import { useTranslation } from 'react-i18next';

const DevPerspectiveTourText: React.FC = () => {
const { t } = useTranslation();
const openshiftVersion = useOpenshiftVersion();
return (
<>
Get started with a tour of some of the key areas in OpenShift{' '}
{openshiftVersion ? `${openshiftVersion?.slice(0, 3)}'s` : '4.x'} Developer perspective that
can help you complete workflows and be more productive.
{t(
'devconsole~Get started with a tour of some of the key areas in OpenShift {{version}} Developer perspective that can help you complete workflows and be more productive.',
{ version: openshiftVersion ? [openshiftVersion?.slice(0, 3), "'s"].join('') : '4.x' },
)}
</>
);
};
Expand Down