Skip to content

Commit

Permalink
refactor: replace 'change' to arrow in index pattern selector (elasti…
Browse files Browse the repository at this point in the history
  • Loading branch information
mbondyra authored and timductive committed Dec 16, 2019
1 parent 5ee3696 commit 32fa88a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import React from 'react';
import { EuiToolTip, EuiFlexItem, EuiFlexGroup, EuiTitle, EuiButtonEmpty } from '@elastic/eui';

import { FormattedMessage } from '@kbn/i18n/react';

import { i18n } from '@kbn/i18n';
export interface DiscoverIndexPatternTitleProps {
/**
* determines whether the change link is displayed
Expand Down Expand Up @@ -65,18 +65,19 @@ export function DiscoverIndexPatternTitle({
}
>
<EuiButtonEmpty
aria-label={i18n.translate(
'kbn.discover.fieldChooser.indexPattern.changeLinkAriaLabel',
{
defaultMessage: 'Change current index pattern',
}
)}
data-test-subj="indexPattern-switch-link"
size="xs"
onClick={() => onChange()}
>
(
<FormattedMessage
id="kbn.discover.fieldChooser.indexPattern.changeLinkLabel"
defaultMessage="change"
description="should be a short word since lack of space"
/>
)
</EuiButtonEmpty>
iconSide="right"
iconType="arrowDown"
color="text"
/>
</EuiToolTip>
</EuiFlexItem>
)}
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/translations/translations/ja-JP.json
Original file line number Diff line number Diff line change
Expand Up @@ -2492,8 +2492,8 @@
"kbn.context.olderDocumentsWarning": "アンカーよりも古いドキュメントは {docCount} 件しか見つかりませんでした。",
"kbn.context.olderDocumentsWarningZero": "アンカーよりも古いドキュメントは見つかりませんでした。",
"kbn.discover.fieldChooser.fieldFilterFacetButtonLabel": "フィルタリングされたフィールド",
"kbn.discover.fieldChooser.indexPattern.changeLinkLabel": "変更",
"kbn.discover.fieldChooser.indexPattern.changeLinkTooltip": "現在のインデックスパターンを変更",
"kbn.discover.fieldChooser.indexPattern.changeLinkAriaLabel": "現在のインデックスパターンを変更",
"kbn.discover.fieldChooser.searchPlaceHolder": "検索フィールド",
"kbn.discover.histogram.partialData.bucketTooltipText": "選択された時間範囲にはこのバケット全体は含まれていませんが、一部データが含まれている可能性があります。",
"kbn.doc.failedToLocateIndexPattern": "ID {indexPatternId} に一致するインデックスパターンがありません",
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/translations/translations/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -2493,8 +2493,8 @@
"kbn.context.olderDocumentsWarning": "仅可以找到 {docCount} 个比定位标记旧的文档。",
"kbn.context.olderDocumentsWarningZero": "找不到比定位标记旧的文档。",
"kbn.discover.fieldChooser.fieldFilterFacetButtonLabel": "已筛选字段",
"kbn.discover.fieldChooser.indexPattern.changeLinkLabel": "更改",
"kbn.discover.fieldChooser.indexPattern.changeLinkTooltip": "更改当前索引模式",
"kbn.discover.fieldChooser.indexPattern.changeLinkAriaLabel": "更改当前索引模式",
"kbn.discover.fieldChooser.searchPlaceHolder": "搜索字段",
"kbn.discover.histogram.partialData.bucketTooltipText": "选定的时间范围不包括此整个存储桶,其可能包含部分数据。",
"kbn.doc.failedToLocateIndexPattern": "无索引模式匹配 ID {indexPatternId}",
Expand Down

0 comments on commit 32fa88a

Please sign in to comment.