Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Commit

Permalink
Fix i18n of second passphrase registration authenticate step
Browse files Browse the repository at this point in the history
  • Loading branch information
slaweet committed Nov 20, 2017
1 parent acd7b83 commit ed0178d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions i18n/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@
"Word \"{{invalidWord}}\" is not on the passphrase Word List.": "Word \"{{invalidWord}}\" is not on the passphrase Word List.",
"Word \"{{invalidWord}}\" is not on the passphrase Word List. Most similar word on the list is \"{{similarWord}}\"": "Word \"{{invalidWord}}\" is not on the passphrase Word List. Most similar word on the list is \"{{similarWord}}\"",
"Yes! It's safe": "Yes! It's safe",
"You are looking into a saved account. In order to {{nextAction}} you need to enter your passphrase.": "You are looking into a saved account. In order to {{nextAction}} you need to enter your passphrase.",
"You can select up to {{count}} delegates in one voting turn.": "You can select up to {{count}} delegates in one voting turn.",
"You can select up to {{count}} delegates in one voting turn._plural": "You can select up to {{count}} delegates in one voting turn.",
"You can vote for up to {{count}} delegates in total.": "You can vote for up to {{count}} delegates in total.",
Expand All @@ -209,6 +210,7 @@
"logout": "logout",
"my votes": "my votes",
"send": "send",
"set second passphrase": "set second passphrase",
"your passphrase will be required for logging in to your account.": "your passphrase will be required for logging in to your account.",
"your second passphrase will be required for all transactions sent from this account": "your second passphrase will be required for all transactions sent from this account",
"{{count}} delegate names were successfully resolved for unvoting.": "{{count}} delegate name successfully resolved to remove vote from.",
Expand Down
2 changes: 1 addition & 1 deletion src/components/authenticate/authenticate.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Authenticate extends React.Component {

componentWillUpdate(props) {
const { nextAction, t } = props;
this.message = `${t('You are looking into a saved account. In order to')} ${t(nextAction)} ${t('you need to enter your passphrase.')}`;
this.message = `${t('You are looking into a saved account. In order to {{nextAction}} you need to enter your passphrase.', { nextAction })}`;
}

update(e) {
Expand Down
2 changes: 1 addition & 1 deletion src/components/secondPassphrase/secondPassphrase.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const SecondPassphrase = ({
useCaseNote={t('your second passphrase will be required for all transactions sent from this account')}
securityNote={t('Losing access to this passphrase will mean no funds can be sent from this account.')}/>
:
<Authenticate nextAction='set second passphrase'/>);
<Authenticate nextAction={t('set second passphrase')} />);
};

export default SecondPassphrase;

0 comments on commit ed0178d

Please sign in to comment.