client/src/components/Session.js
changeset 171 03334a31130a
parent 168 ea92f4fe783d
child 172 4b780ebbedc6
--- a/client/src/components/Session.js	Tue Nov 06 16:19:26 2018 +0100
+++ b/client/src/components/Session.js	Thu Nov 08 16:03:28 2018 +0100
@@ -1,6 +1,7 @@
 import React, { Component } from 'react';
 import { connect } from 'react-redux';
 import { bindActionCreators } from 'redux';
+import { Trans } from 'react-i18next';
 import '../App.css';
 import './Session.css';
 import Navbar from './Navbar';
@@ -44,7 +45,7 @@
     if (this.state.screenSummary === 0) {
       return (
         <div>
-        <a onClick={this.toggleScreenSummary} className ="text-primary">Afficher le protocole d'annotation</a>
+        <a onClick={this.toggleScreenSummary} className ="text-primary"><Trans i18nKey="session.protocol_display">Afficher le protocole d'annotation</Trans></a>
        <SessionSummary notes={this.props.notes} />
        </div>
       );
@@ -53,7 +54,7 @@
     if (this.state.screenSummary === 1) {
       return (
       <div>
-      <a onClick={this.toggleScreenSummary} className ="text-primary">Afficher le résumé de la session</a>
+      <a onClick={this.toggleScreenSummary} className ="text-primary"><Trans i18nKey="session.summary_display">Afficher le résumé de la session</Trans></a>
       <ProtocolSummary />
       </div>
       );