add i18n for breadcrumbs component
@@ -4,6 +4,9 @@ import * as React from 'react';
import { Link } from 'react-router-dom';
export interface IApiConnectorCreatorBreadcrumbProps {
+ i18nCancel: string;
+ i18nConnectors: string;
+ i18nCreateConnection: string;
cancelHref: H.LocationDescriptor;
connectorsHref: H.LocationDescriptor;
}
@@ -11,6 +14,9 @@ export const ApiConnectorCreatorBreadcrumb: React.FunctionComponent<
IApiConnectorCreatorBreadcrumbProps
> = (
{
+ i18nCancel,
+ i18nConnectors,
+ i18nCreateConnection,
cancelHref,
connectorsHref
}) => (
@@ -21,7 +27,7 @@ export const ApiConnectorCreatorBreadcrumb: React.FunctionComponent<
href={cancelHref}
className={'wizard-pf-cancel'}
>
- Cancel
+ {i18nCancel}
</ButtonLink>
}
>
@@ -29,8 +35,8 @@ export const ApiConnectorCreatorBreadcrumb: React.FunctionComponent<
data-testid={'connections-creator-app-connections-link'}
to={connectorsHref}
>
- API Client Connectors
+ {i18nConnectors}
</Link>
- <span>Create connection</span>
+ <span>{i18nCreateConnection}</span>
</Breadcrumb>
);
