message: Add IDP menu items are not translated
diff: @@ -47,15 +47,6 @@ const IdentityProviders: React.FC<IdentityProvidersProps> = ({ identityProviders
  );
  };
  -// t('public~Basic Authentication')
  -// t('public~GitHub')
  -// t('public~GitLab')
  -// t('public~Google')
  -// t('public~HTPasswd')
  -// t('public~Keystone')
  -// t('public~LDAP')
  -// t('public~OpenID Connect')
  -// t('public~Request Header')
  export const addIDPItems = Object.freeze({
  basicauth: 'Basic Authentication',
  github: 'GitHub',
  @@ -73,17 +64,43 @@ const OAuthDetails: React.FC<OAuthDetailsProps> = ({ obj }: { obj: OAuthKind })
  const { identityProviders, tokenConfig } = obj.spec;
  const { t } = useTranslation();
  - const IDPDropdownItems = _.keys(addIDPItems).map((idp) => {
  - const label = t('public~{{label}}', { label: addIDPItems[idp] });
  + const getAddIDPItemLabels = (type: string) => {
  + switch (type) {
  + case 'Basic Authentication':
  + return t('public~Basic Authentication');
  + case 'GitHub':
  + return t('public~GitHub');
  + case 'GitLab':
  + return t('public~GitLab');
  + case 'Google':
  + return t('public~Google');
  + case 'HTPasswd':
  + return t('public~HTPasswd');
  + case 'Keystone':
  + return t('public~Keystone');
  + case 'LDAP':
  + return t('public~LDAP');
  + case 'OpenID Connect':
  + return t('public~OpenID Connect');
  + case 'Request Header':
  + return t('public~Request Header');
  + default:
  + return type;
  + }
  + };
  +
  + const IDPDropdownItems = Object.entries(addIDPItems).map((idp) => {
  + const [key, value] = idp;
  +
  return (
  <DropdownItem
  - key={`idp-${addIDPItems[idp]}`}
  + key={`idp-${key}`}
  component="button"
  - id={idp}
  - data-test-id={idp}
  + id={key}
  + data-test-id={key}
  onClick={(e) => history.push(`/settings/idp/${e.currentTarget.id}`)}
  >
  - {label}
  + {getAddIDPItemLabels(value)}
  </DropdownItem>
  );
  });
  