From b1d40cff89f7cff565a98cdbcea9a624196a169a Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 4 Jun 2018 16:21:17 +0200 Subject: Add i18n attributes --- .../app/videos/+video-watch/comment/video-comment-add.component.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'client/src/app/videos/+video-watch/comment/video-comment-add.component.ts') diff --git a/client/src/app/videos/+video-watch/comment/video-comment-add.component.ts b/client/src/app/videos/+video-watch/comment/video-comment-add.component.ts index b1f446475..2ee5f5ef1 100644 --- a/client/src/app/videos/+video-watch/comment/video-comment-add.component.ts +++ b/client/src/app/videos/+video-watch/comment/video-comment-add.component.ts @@ -9,6 +9,7 @@ import { User } from '../../../shared/users' import { Video } from '../../../shared/video/video.model' import { VideoComment } from './video-comment.model' import { VideoCommentService } from './video-comment.service' +import { I18n } from '@ngx-translate/i18n-polyfill' @Component({ selector: 'my-video-comment-add', @@ -37,7 +38,8 @@ export class VideoCommentAddComponent extends FormReactive implements OnInit { constructor ( private formBuilder: FormBuilder, private notificationsService: NotificationsService, - private videoCommentService: VideoCommentService + private videoCommentService: VideoCommentService, + private i18n: I18n ) { super() } @@ -92,7 +94,7 @@ export class VideoCommentAddComponent extends FormReactive implements OnInit { this.form.reset() }, - err => this.notificationsService.error('Error', err.text) + err => this.notificationsService.error(this.i18n('Error'), err.text) ) } -- cgit v1.2.3