Fix non-translatable template string

This commit is contained in:
Jake McDermott
2021-04-08 19:09:10 -04:00
parent cb32f5b096
commit b75d0c1dad

View File

@@ -25,13 +25,15 @@ function About({ version, isOpen, onClose, i18n }) {
}; };
const speechBubble = createSpeechBubble(); const speechBubble = createSpeechBubble();
const copyright = i18n._(t`Copyright`);
const redHatInc = i18n._(t`Red Hat, Inc.`);
return ( return (
<AboutModal <AboutModal
isOpen={isOpen} isOpen={isOpen}
onClose={onClose} onClose={onClose}
productName={`Ansible ${BrandName}`} productName={`Ansible ${BrandName}`}
trademark={i18n._(t`Copyright ${new Date().getFullYear()} Red Hat, Inc.`)} trademark={`${copyright} ${new Date().getFullYear()} ${redHatInc}`}
brandImageSrc="/static/media/logo-header.svg" brandImageSrc="/static/media/logo-header.svg"
brandImageAlt={i18n._(t`Brand Image`)} brandImageAlt={i18n._(t`Brand Image`)}
> >