making the conditional translation more elegant

This commit is contained in:
Linda 2018-08-21 16:40:49 -04:00
parent 25234d7e27
commit 83553c3bc2

View file

@ -141,10 +141,10 @@ class EV3 extends ExtensionLanding {
<Step> <Step>
<div className="step-image"> <div className="step-image">
<img <img
alt={this.props.intl.formatMessage({id: `${ alt={this.props.intl.formatMessage({id: `ev3.imgAlt${
this.state.OS === OS_ENUM.WINDOWS ? this.state.OS === OS_ENUM.WINDOWS ?
'ev3.imgAltWaitForWindows' : 'WaitForWindows' :
'ev3.imgAltEnterPasscodeMac' 'EnterPasscodeMac'
}`})} }`})}
className="screenshot" className="screenshot"
src={`/images/ev3/${ src={`/images/ev3/${