From e71d840cb330a6521fece4bfc4986bc38dd28de1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Efe=20G=C3=BCrkan=20YALAMAN?= Date: Mon, 12 Jun 2023 16:21:44 +0200 Subject: [PATCH] Fix linting and i18n --- .../search_index/sync_jobs/sync_jobs.tsx | 22 +++++++++++++++---- .../translations/translations/fr-FR.json | 2 +- .../translations/translations/ja-JP.json | 2 +- .../translations/translations/zh-CN.json | 2 +- 4 files changed, 21 insertions(+), 7 deletions(-) diff --git a/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/sync_jobs/sync_jobs.tsx b/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/sync_jobs/sync_jobs.tsx index a72e45394715..b716804ff6da 100644 --- a/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/sync_jobs/sync_jobs.tsx +++ b/x-pack/plugins/enterprise_search/public/applications/enterprise_search_content/components/search_index/sync_jobs/sync_jobs.tsx @@ -11,6 +11,8 @@ import { useValues } from 'kea'; import { EuiButtonGroup } from '@elastic/eui'; +import { i18n } from '@kbn/i18n'; + import { KibanaLogic } from '../../../../shared/kibana'; import { IndexViewLogic } from '../index_view_logic'; @@ -28,8 +30,14 @@ export const SyncJobs: React.FC = () => { <> {shouldShowAccessSyncs && ( { setSelectedSyncJobCategory(optionId); @@ -37,12 +45,18 @@ export const SyncJobs: React.FC = () => { options={[ { id: 'content', - label: 'Content syncs', + label: i18n.translate( + 'xpack.enterpriseSearch.content.syncJobs.lastSync.tableSelector.content.label', + { defaultMessage: 'Content syncs' } + ), }, { id: 'access_control', - label: 'Access control syncs', + label: i18n.translate( + 'xpack.enterpriseSearch.content.syncJobs.lastSync.tableSelector.accessControl.label', + { defaultMessage: 'Access control syncs' } + ), }, ]} /> diff --git a/x-pack/plugins/translations/translations/fr-FR.json b/x-pack/plugins/translations/translations/fr-FR.json index 6b6f049f79bc..3c991164dbe7 100644 --- a/x-pack/plugins/translations/translations/fr-FR.json +++ b/x-pack/plugins/translations/translations/fr-FR.json @@ -39672,4 +39672,4 @@ "xpack.painlessLab.title": "Painless Lab", "xpack.painlessLab.walkthroughButtonLabel": "Présentation" } -} \ No newline at end of file +} diff --git a/x-pack/plugins/translations/translations/ja-JP.json b/x-pack/plugins/translations/translations/ja-JP.json index 314f187038e2..805d60139684 100644 --- a/x-pack/plugins/translations/translations/ja-JP.json +++ b/x-pack/plugins/translations/translations/ja-JP.json @@ -39642,4 +39642,4 @@ "xpack.painlessLab.title": "Painless Lab", "xpack.painlessLab.walkthroughButtonLabel": "実地検証" } -} \ No newline at end of file +} diff --git a/x-pack/plugins/translations/translations/zh-CN.json b/x-pack/plugins/translations/translations/zh-CN.json index 3586f89017ca..d317e9a7accb 100644 --- a/x-pack/plugins/translations/translations/zh-CN.json +++ b/x-pack/plugins/translations/translations/zh-CN.json @@ -39636,4 +39636,4 @@ "xpack.painlessLab.title": "Painless 实验室", "xpack.painlessLab.walkthroughButtonLabel": "指导" } -} \ No newline at end of file +}