aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+accounts/account-about
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-06-04 16:21:17 +0200
committerChocobozzz <me@florianbigard.com>2018-06-05 08:43:01 +0200
commitb1d40cff89f7cff565a98cdbcea9a624196a169a (patch)
treed24746c1cc69f50471a9eba0dfb1c1bae06a1870 /client/src/app/+accounts/account-about
parent989e526abf0c0dd7958deb630df009608561bb67 (diff)
downloadPeerTube-b1d40cff89f7cff565a98cdbcea9a624196a169a.tar.gz
PeerTube-b1d40cff89f7cff565a98cdbcea9a624196a169a.tar.zst
PeerTube-b1d40cff89f7cff565a98cdbcea9a624196a169a.zip
Add i18n attributes
Diffstat (limited to 'client/src/app/+accounts/account-about')
-rw-r--r--client/src/app/+accounts/account-about/account-about.component.html6
-rw-r--r--client/src/app/+accounts/account-about/account-about.component.ts6
2 files changed, 7 insertions, 5 deletions
diff --git a/client/src/app/+accounts/account-about/account-about.component.html b/client/src/app/+accounts/account-about/account-about.component.html
index eae1cb509..b178f5cc8 100644
--- a/client/src/app/+accounts/account-about/account-about.component.html
+++ b/client/src/app/+accounts/account-about/account-about.component.html
@@ -1,12 +1,12 @@
1<div *ngIf="account" class="row"> 1<div *ngIf="account" class="row">
2 <div class="block col-md-6 col-sm-12"> 2 <div class="block col-md-6 col-sm-12">
3 <div class="small-title">Description</div> 3 <div i18n class="small-title">Description</div>
4 <div class="content">{{ getAccountDescription() }}</div> 4 <div class="content">{{ getAccountDescription() }}</div>
5 </div> 5 </div>
6 6
7 <div class="block col-md-6 col-sm-12"> 7 <div class="block col-md-6 col-sm-12">
8 <div class="small-title">Stats</div> 8 <div i18n class="small-title">Stats</div>
9 9
10 <div class="content">Joined {{ account.createdAt | date }}</div> 10 <div i18n class="content">Joined {{ account.createdAt | date }}</div>
11 </div> 11 </div>
12</div> \ No newline at end of file 12</div> \ No newline at end of file
diff --git a/client/src/app/+accounts/account-about/account-about.component.ts b/client/src/app/+accounts/account-about/account-about.component.ts
index f063df392..4086510ba 100644
--- a/client/src/app/+accounts/account-about/account-about.component.ts
+++ b/client/src/app/+accounts/account-about/account-about.component.ts
@@ -2,6 +2,7 @@ import { Component, OnInit } from '@angular/core'
2import { ActivatedRoute } from '@angular/router' 2import { ActivatedRoute } from '@angular/router'
3import { Account } from '@app/shared/account/account.model' 3import { Account } from '@app/shared/account/account.model'
4import { AccountService } from '@app/shared/account/account.service' 4import { AccountService } from '@app/shared/account/account.service'
5import { I18n } from '@ngx-translate/i18n-polyfill'
5 6
6@Component({ 7@Component({
7 selector: 'my-account-about', 8 selector: 'my-account-about',
@@ -12,7 +13,8 @@ export class AccountAboutComponent implements OnInit {
12 account: Account 13 account: Account
13 14
14 constructor ( 15 constructor (
15 protected route: ActivatedRoute, 16 private route: ActivatedRoute,
17 private i18n: I18n,
16 private accountService: AccountService 18 private accountService: AccountService
17 ) { } 19 ) { }
18 20
@@ -25,6 +27,6 @@ export class AccountAboutComponent implements OnInit {
25 getAccountDescription () { 27 getAccountDescription () {
26 if (this.account.description) return this.account.description 28 if (this.account.description) return this.account.description
27 29
28 return 'No description' 30 return this.i18n('No description')
29 } 31 }
30} 32}