Browse Source

WIP: lnd llocalizations

localNotifications
Overtorment 6 years ago
parent
commit
d9f887e2ac
  1. 7
      loc/en.js
  2. 7
      loc/es.js
  3. 7
      loc/pt_BR.js
  4. 7
      loc/pt_PT.js
  5. 7
      loc/ru.js
  6. 7
      loc/ua.js
  7. 11
      screen/lnd/manageFunds.js

7
loc/en.js

@ -167,4 +167,11 @@ module.exports = {
passwords_do_not_match: 'Passwords do not match, try again',
success: 'Success',
},
lnd: {
title: 'manage funds',
choose_source_wallet: 'Choose a source wallet',
refill_lnd_balance: 'Refill Lightning wallet balance',
refill: 'Refill',
withdraw: 'Withdraw',
},
};

7
loc/es.js

@ -167,4 +167,11 @@ module.exports = {
passwords_do_not_match: 'Passwords do not match, try again',
success: 'Success',
},
lnd: {
title: 'manage funds',
choose_source_wallet: 'Choose a source wallet',
refill_lnd_balance: 'Refill Lightning wallet balance',
refill: 'Refill',
withdraw: 'Withdraw',
},
};

7
loc/pt_BR.js

@ -167,4 +167,11 @@ module.exports = {
passwords_do_not_match: 'Passwords não coincidem, tente novamente',
success: 'Sucesso',
},
lnd: {
title: 'manage funds',
choose_source_wallet: 'Choose a source wallet',
refill_lnd_balance: 'Refill Lightning wallet balance',
refill: 'Refill',
withdraw: 'Withdraw',
},
};

7
loc/pt_PT.js

@ -167,4 +167,11 @@ module.exports = {
passwords_do_not_match: 'Passwords não coincidem, tente novamente',
success: 'Sucesso',
},
lnd: {
title: 'manage funds',
choose_source_wallet: 'Choose a source wallet',
refill_lnd_balance: 'Refill Lightning wallet balance',
refill: 'Refill',
withdraw: 'Withdraw',
},
};

7
loc/ru.js

@ -168,4 +168,11 @@ module.exports = {
passwords_do_not_match: 'Пароли не совпадают, попробуйте еще раз',
success: 'Операция успешна',
},
lnd: {
title: 'manage funds',
choose_source_wallet: 'Choose a source wallet',
refill_lnd_balance: 'Refill Lightning wallet balance',
refill: 'Refill',
withdraw: 'Withdraw',
},
};

7
loc/ua.js

@ -169,4 +169,11 @@ module.exports = {
passwords_do_not_match: 'Паролі не збігаються, спробуйте ще раз',
success: 'Операція успішна',
},
lnd: {
title: 'manage funds',
choose_source_wallet: 'Choose a source wallet',
refill_lnd_balance: 'Refill Lightning wallet balance',
refill: 'Refill',
withdraw: 'Withdraw',
},
};

11
screen/lnd/manageFunds.js

@ -8,6 +8,7 @@ import PropTypes from 'prop-types';
import { LightningCustodianWallet } from '../../class/lightning-custodian-wallet';
/** @type {AppStorage} */
let BlueApp = require('../../BlueApp');
let loc = require('../../loc');
let data = [];
@ -65,7 +66,7 @@ export default class ManageFunds extends Component {
return (
<SafeBlueArea forceInset={{ horizontal: 'always' }} style={{ flex: 1 }}>
<BlueSpacingVariable />
<BlueHeaderDefaultSub leftText={'manage funds'} onClose={() => this.props.navigation.goBack()} />
<BlueHeaderDefaultSub leftText={loc.lnd.title} onClose={() => this.props.navigation.goBack()} />
<BlueCard>
{(() => {
@ -73,7 +74,7 @@ export default class ManageFunds extends Component {
return (
<View>
<Dropdown
label="Choose a source wallet"
label={loc.lnd.choose_source_wallet}
data={data}
onChangeText={async value => {
/** @type {LightningCustodianWallet} */
@ -96,7 +97,7 @@ export default class ManageFunds extends Component {
setTimeout(() => {
console.log({ toAddress });
this.props.navigation.navigate('SendDetails', {
memo: 'Refill Lightning wallet balance',
memo: loc.lnd.refill_lnd_balance,
fromSecret: wallet.getSecret(),
address: toAddress,
});
@ -117,7 +118,7 @@ export default class ManageFunds extends Component {
onPress={a => {
this.setState({ isRefill: true });
}}
title={'Refill'}
title={loc.lnd.refill}
/>
<ListItem
titleStyle={{ color: BlueApp.settings.foregroundColor }}
@ -125,7 +126,7 @@ export default class ManageFunds extends Component {
onPress={a => {
alert('Coming soon');
}}
title={'Withdraw'}
title={loc.lnd.withdraw}
/>
</View>
);

Loading…
Cancel
Save