Skip to content

Commit

Permalink
Translate App Search credentials list (elastic#105619)
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonStoltz authored Jul 14, 2021
1 parent 1f2b56f commit fd0cd86
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 fd0cd86

Please sign in to comment.