From db022a3550a3d69afc9933b08be2683b7b4f9b89 Mon Sep 17 00:00:00 2001 From: Quynh Nguyen <43350163+qn895@users.noreply.github.com> Date: Fri, 8 Jan 2021 13:23:54 -0600 Subject: [PATCH] [ML] Fix earliest and latest texts for date fields (#87482) Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> --- .../field_data_card/content_types/date_content.tsx | 9 ++++++--- x-pack/plugins/translations/translations/ja-JP.json | 2 -- x-pack/plugins/translations/translations/zh-CN.json | 2 -- 3 files changed, 6 insertions(+), 7 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 f97a8d1c3a87..7651d20249c9 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), diff --git a/x-pack/plugins/translations/translations/ja-JP.json b/x-pack/plugins/translations/translations/ja-JP.json index 798e1b817e49..f573e2593196 100644 --- a/x-pack/plugins/translations/translations/ja-JP.json +++ b/x-pack/plugins/translations/translations/ja-JP.json @@ -13141,8 +13141,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 254010b4f3f6..199c6989687f 100644 --- a/x-pack/plugins/translations/translations/zh-CN.json +++ b/x-pack/plugins/translations/translations/zh-CN.json @@ -13172,8 +13172,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": "排名最前值",