Skip to content

Commit

Permalink
alerts-ui: Remove hard-coded texts on home page, use translations ins…
Browse files Browse the repository at this point in the history
…tead
  • Loading branch information
AlexITC committed Feb 9, 2018
1 parent 5de949e commit e2e9b0b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions alerts-ui/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,12 @@ If {{email}} is not your email address, please go back and enter the correct one
If you have not received our email in 15 minutes, please check your spam folder. <hr>
Still can not find it? Try searching Gmail for "in:all subject:(Confirm your account on Crypto Coin Alerts)" (without quotes).`,

'message.accountNeeded.question': 'What are you waiting? Create a',
'message.accountNeeded.new': 'new account',
'message.accountNeeded.or': 'or',
'message.accountNeeded.login': 'login',
'message.accountNeeded.last': 'to start receiving alerts',

'message.emailVerified': 'Thanks for verifying your email',
'message.resolveCaptcha': 'Resolve the reCAPTCHA',
'message.alertCreated': 'Your alert was created',
Expand Down
6 changes: 3 additions & 3 deletions alerts-ui/src/app/home/home.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@

<div [hidden]="authService.isAuthenticated()">
<p>
What are you waiting? Create a
<a routerLink="/new-account">new account</a> or
<a routerLink="/login">login</a> to start receiving alerts.
{{'message.accountNeeded.question' | translate}}
<a routerLink="/new-account">{{'message.accountNeeded.new' | translate}}</a> {{'message.accountNeeded.or' | translate}}
<a routerLink="/login">{{'message.accountNeeded.login' | translate}}</a> {{'message.accountNeeded.last' | translate}}.
</p>

<div>
Expand Down

0 comments on commit e2e9b0b

Please sign in to comment.