From fb3a7cd218b066bd70f2709533769eeda9b897c6 Mon Sep 17 00:00:00 2001 From: Quynh Nguyen Date: Wed, 6 Jan 2021 07:38:19 -0600 Subject: [PATCH 1/2] [ML] Fix earliest and latest texts for date fields --- .../field_data_card/content_types/date_content.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/x-pack/plugins/ml/public/application/datavisualizer/index_based/components/field_data_card/content_types/date_content.tsx b/x-pack/plugins/ml/public/application/datavisualizer/index_based/components/field_data_card/content_types/date_content.tsx index f97a8d1c3a872..7651d20249c93 100644 --- a/x-pack/plugins/ml/public/application/datavisualizer/index_based/components/field_data_card/content_types/date_content.tsx +++ b/x-pack/plugins/ml/public/application/datavisualizer/index_based/components/field_data_card/content_types/date_content.tsx @@ -33,7 +33,10 @@ export const DateContent: FC = ({ config }) => { { function: 'earliest', display: ( - + ), value: formatDate(earliest, TIME_FORMAT), }, @@ -41,8 +44,8 @@ export const DateContent: FC = ({ config }) => { function: 'latest', display: ( ), value: formatDate(latest, TIME_FORMAT), From c5de0ff4c090f02b5b96fff3d152e4227f122e1e Mon Sep 17 00:00:00 2001 From: Quynh Nguyen Date: Wed, 6 Jan 2021 17:24:11 -0600 Subject: [PATCH 2/2] [ML] Update translations --- x-pack/plugins/translations/translations/ja-JP.json | 2 -- x-pack/plugins/translations/translations/zh-CN.json | 2 -- 2 files changed, 4 deletions(-) diff --git a/x-pack/plugins/translations/translations/ja-JP.json b/x-pack/plugins/translations/translations/ja-JP.json index fef61667168a9..93aa719b6229c 100644 --- a/x-pack/plugins/translations/translations/ja-JP.json +++ b/x-pack/plugins/translations/translations/ja-JP.json @@ -13165,8 +13165,6 @@ "xpack.ml.feature.reserved.description": "ユーザーアクセスを許可するには、machine_learning_user か machine_learning_admin ロールのどちらかを割り当てる必要があります。", "xpack.ml.featureRegistry.mlFeatureName": "機械学習", "xpack.ml.fieldDataCard.cardBoolean.valuesLabel": "値", - "xpack.ml.fieldDataCard.cardDate.medianLabel": "中間", - "xpack.ml.fieldDataCard.cardDate.minLabel": "分", "xpack.ml.fieldDataCard.cardDate.summaryTableTitle": "まとめ", "xpack.ml.fieldDataCard.cardIp.topValuesLabel": "トップの値", "xpack.ml.fieldDataCard.cardKeyword.topValuesLabel": "トップの値", diff --git a/x-pack/plugins/translations/translations/zh-CN.json b/x-pack/plugins/translations/translations/zh-CN.json index d4ec4407080f4..0bd20e9b07944 100644 --- a/x-pack/plugins/translations/translations/zh-CN.json +++ b/x-pack/plugins/translations/translations/zh-CN.json @@ -13196,8 +13196,6 @@ "xpack.ml.feature.reserved.description": "要向用户授予访问权限,还应分配 machine_learning_user 或 machine_learning_admin 角色。", "xpack.ml.featureRegistry.mlFeatureName": "Machine Learning", "xpack.ml.fieldDataCard.cardBoolean.valuesLabel": "值", - "xpack.ml.fieldDataCard.cardDate.medianLabel": "中值", - "xpack.ml.fieldDataCard.cardDate.minLabel": "min", "xpack.ml.fieldDataCard.cardDate.summaryTableTitle": "摘要", "xpack.ml.fieldDataCard.cardIp.topValuesLabel": "排名最前值", "xpack.ml.fieldDataCard.cardKeyword.topValuesLabel": "排名最前值",