Skip to content

Commit

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

* Make text content dynamically translated
* add unit tests

Signed-off-by: Yibo Wang <yibow@amazon.com>
(cherry picked from commit 9a55e0c)
  • Loading branch information
yibow98 authored and github-actions[bot] committed Oct 13, 2022
1 parent 7c1475f commit a4242e7
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 a4242e7

Please sign in to comment.