aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/about/about.component.ts
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/about/about.component.ts
parent989e526abf0c0dd7958deb630df009608561bb67 (diff)
downloadPeerTube-b1d40cff89f7cff565a98cdbcea9a624196a169a.tar.gz
PeerTube-b1d40cff89f7cff565a98cdbcea9a624196a169a.tar.zst
PeerTube-b1d40cff89f7cff565a98cdbcea9a624196a169a.zip
Add i18n attributes
Diffstat (limited to 'client/src/app/about/about.component.ts')
-rw-r--r--client/src/app/about/about.component.ts6
1 files changed, 4 insertions, 2 deletions
diff --git a/client/src/app/about/about.component.ts b/client/src/app/about/about.component.ts
index 3948d5c46..c37b9318b 100644
--- a/client/src/app/about/about.component.ts
+++ b/client/src/app/about/about.component.ts
@@ -2,6 +2,7 @@ import { Component, OnInit } from '@angular/core'
2import { ServerService } from '@app/core' 2import { ServerService } from '@app/core'
3import { MarkdownService } from '@app/videos/shared' 3import { MarkdownService } from '@app/videos/shared'
4import { NotificationsService } from 'angular2-notifications' 4import { NotificationsService } from 'angular2-notifications'
5import { I18n } from '@ngx-translate/i18n-polyfill'
5 6
6@Component({ 7@Component({
7 selector: 'my-about', 8 selector: 'my-about',
@@ -17,7 +18,8 @@ export class AboutComponent implements OnInit {
17 constructor ( 18 constructor (
18 private notificationsService: NotificationsService, 19 private notificationsService: NotificationsService,
19 private serverService: ServerService, 20 private serverService: ServerService,
20 private markdownService: MarkdownService 21 private markdownService: MarkdownService,
22 private i18n: I18n
21 ) {} 23 ) {}
22 24
23 get instanceName () { 25 get instanceName () {
@@ -41,7 +43,7 @@ export class AboutComponent implements OnInit {
41 this.termsHTML = this.markdownService.textMarkdownToHTML(res.instance.terms) 43 this.termsHTML = this.markdownService.textMarkdownToHTML(res.instance.terms)
42 }, 44 },
43 45
44 err => this.notificationsService.error('Error getting about from server', err) 46 err => this.notificationsService.error(this.i18n('Error getting about from server'), err)
45 ) 47 )
46 } 48 }
47 49