Skip to content

Commit

Permalink
Make text content dynamically translated
Browse files Browse the repository at this point in the history
Signed-off-by: Yibo Wang <yibow@amazon.com>
  • Loading branch information
yibow98 committed Oct 12, 2022
1 parent 9b56ff5 commit 83ecb3d
Show file tree
Hide file tree
Showing 21 changed files with 864 additions and 831 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import React from 'react';
import { History } from 'history';

import { EuiButton } from '@elastic/eui';
import { CREATE_DATA_SOURCE_BUTTON_TEXT } from '../text_content';
import { FormattedMessage } from '@osd/i18n/react';

interface Props {
history: History;
Expand All @@ -20,7 +20,10 @@ export const CreateButton = ({ history }: Props) => {
fill={true}
onClick={() => history.push('/create')}
>
{CREATE_DATA_SOURCE_BUTTON_TEXT}
<FormattedMessage
id="dataSourcesManagement.dataSourceListing.createButton"
defaultMessage="Create data source connection"
/>
</EuiButton>
);
};

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 83ecb3d

Please sign in to comment.