From fd0cd860a4a3d89a81b64b606de3aa5b815f7663 Mon Sep 17 00:00:00 2001 From: Jason Stoltzfus Date: Wed, 14 Jul 2021 15:39:13 -0400 Subject: [PATCH] Translate App Search credentials list (#105619) --- .../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), },