Skip to content
This repository has been archived by the owner on Jun 7, 2023. It is now read-only.

Fixed some hardcoded strings #864

Merged

Conversation

mgeier63
Copy link
Contributor

Description

Found and fixed some hardcoded strings

Type of change

  • Bug fix (a non-breaking change which fixes an issue)

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Ran the app and made sure the correct texts were shown.

Checklist:

Please delete items that are not relevant.

  • My code follows the style guidelines for this project
  • I have performed a self-review of my own code
  • New and existing unit tests pass locally with my changes
  • For changes to mobile that include native code (including React Native modules): I have verified that both iOS and Android successfully build in both Debug and Release modes

@rajivshah3 rajivshah3 self-assigned this Dec 28, 2018
@rajivshah3 rajivshah3 added C - Mobile E - UI/UX Epic - Improving user interface/user experience labels Dec 28, 2018
Copy link
Member

@rajivshah3 rajivshah3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR @mgeier63 ! One small note: Since this is a React component wrapped with withNamespaces, the t function is already passed as a prop and can simply be called with this.props.t. I've suggested changes accordingly. I apologize for the localization docs not being up to date; I'll make sure to update them in a future PR.

src/mobile/src/ui/views/wallet/Disable2FA.js Outdated Show resolved Hide resolved
src/mobile/src/ui/views/wallet/Disable2FA.js Outdated Show resolved Hide resolved
src/mobile/src/ui/views/wallet/Disable2FA.js Outdated Show resolved Hide resolved
src/mobile/src/ui/views/wallet/Disable2FA.js Outdated Show resolved Hide resolved
src/mobile/src/ui/views/wallet/Disable2FA.js Outdated Show resolved Hide resolved
@@ -133,7 +138,7 @@ class Disable2FA extends Component {
animationOutType={['slideOutLeft', 'fadeOut']}
delay={266}
>
<Text style={[styles.generalText, textColor]}>Enter your token to disable 2FA</Text>
<Text style={[styles.generalText, textColor]}>{t('twoFA:enterCode')}</Text>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one looks good 👍

Co-Authored-By: mgeier63 <mgeier63@gmail.com>
@rajivshah3
Copy link
Member

Thanks @mgeier63 ! Looks good 👍

@rajivshah3 rajivshah3 merged commit 6f1a12b into iotaledger:develop Dec 29, 2018
rajivshah3 pushed a commit that referenced this pull request Dec 31, 2018
* using dynamic i18n texts instead of hardcoded english

* Apply suggestions from code review / i18n t  passed as a prop

Co-Authored-By: mgeier63 <mgeier63@gmail.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
C - Mobile E - UI/UX Epic - Improving user interface/user experience
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants