Skip to content

Commit

Permalink
Translate App Search credentials list (#105619) (#105662)
Browse files Browse the repository at this point in the history
Co-authored-by: Jason Stoltzfus <[email protected]>
  • Loading branch information
kibanamachine and JasonStoltz authored Jul 14, 2021
1 parent 409a0c6 commit 627449e
Showing 1 changed file with 15 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,23 @@ export const CredentialsList: React.FC = () => {

const columns: Array<EuiBasicTableColumn<ApiToken>> = [
{
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) => {
Expand Down Expand Up @@ -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),
},
Expand Down

0 comments on commit 627449e

Please sign in to comment.