From ac9a74b2e9b0c3d680af71ed385dad7bd88d578c Mon Sep 17 00:00:00 2001 From: Onuwa Nnachi Isaac Date: Mon, 8 Jul 2019 19:07:25 +0100 Subject: [PATCH] Add translation to App.js --- src/App.js | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/src/App.js b/src/App.js index 07147d381..835ad8ad2 100644 --- a/src/App.js +++ b/src/App.js @@ -62,7 +62,7 @@ let mainStyle = { mainColor:"white", } -let title = i18n.t('app_name') +// let title = t('app_name') let titleImage = ( ) @@ -102,7 +102,6 @@ export default class App extends Component { constructor(props) { - console.log("[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[["+title+"]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]") let view = 'main' let cachedView = getStoredValue("view") let cachedViewSetAge = Date.now() - getStoredValue("viewSetTime") @@ -122,7 +121,7 @@ export default class App extends Component { sendKey: "", alert: null, loadingTitle:'loading...', - title: title, + title: this.props.t, extraHeadroom:0, balance: 0.00, vendors: {}, @@ -875,7 +874,7 @@ export default class App extends Component {
{defaultBalanceDisplay} { this.changeView('advanced') }} @@ -999,7 +998,7 @@ export default class App extends Component {
{this.state.scannerOpen ? sendByScan : null} - +
@@ -1030,7 +1029,7 @@ export default class App extends Component {
{this.state.scannerOpen ? sendByScan : null} - +
@@ -1055,7 +1054,7 @@ export default class App extends Component {
{this.state.scannerOpen ? sendByScan : null} - + {defaultBalanceDisplay} {this.state.scannerOpen ? sendByScan : null} - + {defaultBalanceDisplay}
@@ -1118,7 +1117,7 @@ export default class App extends Component {
{this.state.scannerOpen ? sendByScan : null} - + {this.state.scannerOpen ? sendByScan : null} - + {defaultBalanceDisplay} {this.state.scannerOpen ? sendByScan : null} - + {defaultBalanceDisplay} {this.state.scannerOpen ? sendByScan : null} - +