From 627449e11416fe0337aa24689d83b14a4e4c0d62 Mon Sep 17 00:00:00 2001 From: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Date: Wed, 14 Jul 2021 17:52:30 -0400 Subject: [PATCH] Translate App Search credentials list (#105619) (#105662) Co-authored-by: Jason Stoltzfus --- .../credentials_list/credentials_list.tsx | 20 ++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/x-pack/plugins/enterprise_search/public/applications/app_search/components/credentials/credentials_list/credentials_list.tsx b/x-pack/plugins/enterprise_search/public/applications/app_search/components/credentials/credentials_list/credentials_list.tsx index 619d9d07bf5f3..765c8c5ea847a 100644 --- a/x-pack/plugins/enterprise_search/public/applications/app_search/components/credentials/credentials_list/credentials_list.tsx +++ b/x-pack/plugins/enterprise_search/public/applications/app_search/components/credentials/credentials_list/credentials_list.tsx @@ -32,17 +32,23 @@ export const CredentialsList: React.FC = () => { const columns: Array> = [ { - name: 'Name', + name: i18n.translate('xpack.enterpriseSearch.appSearch.credentials.list.nameTitle', { + defaultMessage: 'Name', + }), width: '12%', render: (token: ApiToken) => token.name, }, { - name: 'Type', + name: i18n.translate('xpack.enterpriseSearch.appSearch.credentials.list.typeTitle', { + defaultMessage: 'Type', + }), width: '15%', render: (token: ApiToken) => TOKEN_TYPE_DISPLAY_NAMES[token.type], }, { - name: 'Key', + name: i18n.translate('xpack.enterpriseSearch.appSearch.credentials.list.keyTitle', { + defaultMessage: 'Key', + }), width: '36%', className: 'eui-textBreakAll', render: (token: ApiToken) => { @@ -71,12 +77,16 @@ export const CredentialsList: React.FC = () => { }, }, { - name: 'Modes', + name: i18n.translate('xpack.enterpriseSearch.appSearch.credentials.list.modesTitle', { + defaultMessage: 'Modes', + }), width: '10%', render: (token: ApiToken) => getModeDisplayText(token), }, { - name: 'Engines', + name: i18n.translate('xpack.enterpriseSearch.appSearch.credentials.list.enginesTitle', { + defaultMessage: 'Engines', + }), width: '18%', render: (token: ApiToken) => getEnginesDisplayText(token), },