Skip to content

Commit

Permalink
pass type check
Browse files Browse the repository at this point in the history
  • Loading branch information
andreadelrio committed Aug 11, 2020
1 parent c4350f9 commit c390b71
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/
import React, { useState } from 'react';
import { EuiButton, EuiPopover, EuiPopoverTitle, EuiButtonIcon } from '@elastic/eui';
import { EuiPopover, EuiPopoverTitle, EuiButtonIcon } from '@elastic/eui';
import { i18n } from '@kbn/i18n';
import { DiscoverFieldDetails } from './discover_field_details';
import { FieldIcon, FieldButton } from '../../../../../kibana_react/public';
Expand Down Expand Up @@ -73,16 +73,10 @@ export function DiscoverField({
selected,
useShortDots,
}: DiscoverFieldProps) {
const addLabel = i18n.translate('discover.fieldChooser.discoverField.addButtonLabel', {
defaultMessage: 'Add',
});
const addLabelAria = i18n.translate('discover.fieldChooser.discoverField.addButtonAriaLabel', {
defaultMessage: 'Add {field} to table',
values: { field: field.name },
});
const removeLabel = i18n.translate('discover.fieldChooser.discoverField.removeButtonLabel', {
defaultMessage: 'Remove',
});
const removeLabelAria = i18n.translate(
'discover.fieldChooser.discoverField.removeButtonAriaLabel',
{
Expand Down
2 changes: 0 additions & 2 deletions x-pack/plugins/translations/translations/ja-JP.json
Original file line number Diff line number Diff line change
Expand Up @@ -1409,9 +1409,7 @@
"discover.fieldChooser.detailViews.recordsText": "記録",
"discover.fieldChooser.detailViews.visualizeLinkText": "可視化",
"discover.fieldChooser.discoverField.addButtonAriaLabel": "{field}を表に追加",
"discover.fieldChooser.discoverField.addButtonLabel": "追加",
"discover.fieldChooser.discoverField.removeButtonAriaLabel": "{field}を表から削除",
"discover.fieldChooser.discoverField.removeButtonLabel": "削除",
"discover.fieldChooser.discoverField.scriptedFieldsTakeLongExecuteDescription": "スクリプトフィールドは実行に時間がかかる場合があります。",
"discover.fieldChooser.fieldCalculator.analysisIsNotAvailableForGeoFieldsErrorMessage": "ジオフィールドは分析できません。",
"discover.fieldChooser.fieldCalculator.analysisIsNotAvailableForObjectFieldsErrorMessage": "オブジェクトフィールドは分析できません。",
Expand Down
2 changes: 0 additions & 2 deletions x-pack/plugins/translations/translations/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -1410,9 +1410,7 @@
"discover.fieldChooser.detailViews.recordsText": "个记录",
"discover.fieldChooser.detailViews.visualizeLinkText": "可视化",
"discover.fieldChooser.discoverField.addButtonAriaLabel": "将 {field} 添加到表中",
"discover.fieldChooser.discoverField.addButtonLabel": "添加",
"discover.fieldChooser.discoverField.removeButtonAriaLabel": "从表中移除 {field}",
"discover.fieldChooser.discoverField.removeButtonLabel": "移除",
"discover.fieldChooser.discoverField.scriptedFieldsTakeLongExecuteDescription": "脚本字段执行时间会很长。",
"discover.fieldChooser.fieldCalculator.analysisIsNotAvailableForGeoFieldsErrorMessage": "分析不适用于地理字段。",
"discover.fieldChooser.fieldCalculator.analysisIsNotAvailableForObjectFieldsErrorMessage": "分析不适用于对象字段。",
Expand Down

0 comments on commit c390b71

Please sign in to comment.