@@ -11,16 +11,18 @@ const AptDetails = ({apt, spaces_available, props}) => (
1111 < div className = "tcs-extra" >
1212 < div className = "tcs-price" >
1313 { props . config . format_money ( apt . price ) }
14- < div className = "tcs-label" > Price </ div >
14+ < div className = "tcs-label" > { props . config . get_text ( 'price' ) } </ div >
1515 </ div >
1616 </ div >
1717 < div className = "tcs-content" >
1818 < DetailGrid >
19- < Detail label = "Job" > { apt . service_name } </ Detail >
20- { apt . attendees_max && < Detail label = "Spaces Available" > { spaces_available } </ Detail > }
21- < Detail label = "Start" className = "tcs-new-line" > { props . config . format_datetime ( apt . start ) } </ Detail >
22- < Detail label = "Finish" > { props . config . format_datetime ( apt . finish ) } </ Detail >
23- { apt . location && < Detail label = "Location" > { apt . location } </ Detail > }
19+ < Detail label = "job" config = { props . config } > { apt . service_name } </ Detail >
20+ { apt . attendees_max && < Detail label = "spaces_available" config = { props . config } > { spaces_available } </ Detail > }
21+ < Detail label = "start" config = { props . config } className = "tcs-new-line" >
22+ { props . config . format_datetime ( apt . start ) }
23+ </ Detail >
24+ < Detail label = "finish" config = { props . config } > { props . config . format_datetime ( apt . finish ) } </ Detail >
25+ { apt . location && < Detail label = "location" config = { props . config } > { apt . location } </ Detail > }
2426 </ DetailGrid >
2527 </ div >
2628 </ div >
@@ -37,7 +39,7 @@ const AddExisting = ({students, book, booking_allowed, get_text}) => (
3739 </ div >
3840 { already_on_apt ? (
3941 < div className = "tcs-already-added" >
40- Added < Tick />
42+ { get_text ( 'added' ) } < Tick />
4143 </ div >
4244 ) : (
4345 < button className = "tcs-button tcs-add-button"
@@ -53,7 +55,7 @@ const AddExisting = ({students, book, booking_allowed, get_text}) => (
5355
5456const AddNew = ( { new_student, onChange, book, booking_allowed, get_text} ) => (
5557 < div className = "tcs-book-new" >
56- < div > Add a new Student to the lesson </ div >
58+ < div > { get_text ( 'add_new_student' ) } </ div >
5759 < div className = "tcs-book-item" >
5860 < input type = "text"
5961 className = "tcs-default-input"
@@ -161,8 +163,8 @@ class AptModal extends Component {
161163 const apt = this . state . apt
162164 if ( ! apt ) {
163165 return (
164- < Modal history = { this . props . history } title = "Appointment not Found" >
165- < p > No Appointment found with id { this . props . id } . </ p >
166+ < Modal history = { this . props . history } title = { this . props . config . get_text ( 'appointment_not_found' ) } >
167+ < p > { this . props . config . get_text ( 'appointment_not_found_id' , { apt_id : this . props . id } ) } </ p >
166168 </ Modal >
167169 )
168170 }
@@ -206,7 +208,7 @@ class AptModal extends Component {
206208 { this . state . display_data . nm }
207209 < br />
208210 < div className = "tcs-signout" onClick = { this . props . signout } >
209- Not you? sign out
211+ { this . props . config . get_text ( 'not_you_sign_out' ) }
210212 </ div >
211213 </ div >
212214 }
0 commit comments