Skip to content

Commit

Permalink
[MD] Make text content dynamically translated & update unit tests (op…
Browse files Browse the repository at this point in the history
…ensearch-project#2570)

* Make text content dynamically translated
* add unit tests

Signed-off-by: Yibo Wang <[email protected]>
Signed-off-by: Sergey V. Osipov <[email protected]>
  • Loading branch information
yibow98 authored and sipopo committed Dec 16, 2022
1 parent 6f6d5b8 commit 8dcaadc
Show file tree
Hide file tree
Showing 25 changed files with 2,361 additions and 892 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
* [Multi DataSource] UX enhancement for Data source management creation page ([#2051](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2501))
* [Multi DataSource] Add experimental callout for index pattern section ([#2523](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2523))
* [Multi DataSource] Add data source config to opensearch-dashboards-docker ([#2557](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2557))
* [Multi DataSource] Make text content dynamically translated & update unit tests ([#2570](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2570))

### 🐛 Bug Fixes
* [Vis Builder] Fixes auto bounds for timeseries bar chart visualization ([2401](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/2401))
Expand Down

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>
);
};
Loading

0 comments on commit 8dcaadc

Please sign in to comment.