diff options
author | Chocobozzz <me@florianbigard.com> | 2018-06-04 16:21:17 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-06-05 08:43:01 +0200 |
commit | b1d40cff89f7cff565a98cdbcea9a624196a169a (patch) | |
tree | d24746c1cc69f50471a9eba0dfb1c1bae06a1870 /client/src/app/+video-channels/video-channel-about/video-channel-about.component.ts | |
parent | 989e526abf0c0dd7958deb630df009608561bb67 (diff) | |
download | PeerTube-b1d40cff89f7cff565a98cdbcea9a624196a169a.tar.gz PeerTube-b1d40cff89f7cff565a98cdbcea9a624196a169a.tar.zst PeerTube-b1d40cff89f7cff565a98cdbcea9a624196a169a.zip |
Add i18n attributes
Diffstat (limited to 'client/src/app/+video-channels/video-channel-about/video-channel-about.component.ts')
-rw-r--r-- | client/src/app/+video-channels/video-channel-about/video-channel-about.component.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/client/src/app/+video-channels/video-channel-about/video-channel-about.component.ts b/client/src/app/+video-channels/video-channel-about/video-channel-about.component.ts index 6f862718f..c5fd442c6 100644 --- a/client/src/app/+video-channels/video-channel-about/video-channel-about.component.ts +++ b/client/src/app/+video-channels/video-channel-about/video-channel-about.component.ts | |||
@@ -2,6 +2,7 @@ import { Component, OnInit } from '@angular/core' | |||
2 | import { ActivatedRoute } from '@angular/router' | 2 | import { ActivatedRoute } from '@angular/router' |
3 | import { VideoChannelService } from '@app/shared/video-channel/video-channel.service' | 3 | import { VideoChannelService } from '@app/shared/video-channel/video-channel.service' |
4 | import { VideoChannel } from '@app/shared/video-channel/video-channel.model' | 4 | import { VideoChannel } from '@app/shared/video-channel/video-channel.model' |
5 | import { I18n } from '@ngx-translate/i18n-polyfill' | ||
5 | 6 | ||
6 | @Component({ | 7 | @Component({ |
7 | selector: 'my-video-channel-about', | 8 | selector: 'my-video-channel-about', |
@@ -12,7 +13,8 @@ export class VideoChannelAboutComponent implements OnInit { | |||
12 | videoChannel: VideoChannel | 13 | videoChannel: VideoChannel |
13 | 14 | ||
14 | constructor ( | 15 | constructor ( |
15 | protected route: ActivatedRoute, | 16 | private route: ActivatedRoute, |
17 | private i18n: I18n, | ||
16 | private videoChannelService: VideoChannelService | 18 | private videoChannelService: VideoChannelService |
17 | ) { } | 19 | ) { } |
18 | 20 | ||
@@ -25,6 +27,6 @@ export class VideoChannelAboutComponent implements OnInit { | |||
25 | getVideoChannelDescription () { | 27 | getVideoChannelDescription () { |
26 | if (this.videoChannel.description) return this.videoChannel.description | 28 | if (this.videoChannel.description) return this.videoChannel.description |
27 | 29 | ||
28 | return 'No description' | 30 | return this.i18n('No description') |
29 | } | 31 | } |
30 | } | 32 | } |