From b1d40cff89f7cff565a98cdbcea9a624196a169a Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 4 Jun 2018 16:21:17 +0200 Subject: Add i18n attributes --- client/src/app/about/about.component.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'client/src/app/about/about.component.ts') 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' import { ServerService } from '@app/core' import { MarkdownService } from '@app/videos/shared' import { NotificationsService } from 'angular2-notifications' +import { I18n } from '@ngx-translate/i18n-polyfill' @Component({ selector: 'my-about', @@ -17,7 +18,8 @@ export class AboutComponent implements OnInit { constructor ( private notificationsService: NotificationsService, private serverService: ServerService, - private markdownService: MarkdownService + private markdownService: MarkdownService, + private i18n: I18n ) {} get instanceName () { @@ -41,7 +43,7 @@ export class AboutComponent implements OnInit { this.termsHTML = this.markdownService.textMarkdownToHTML(res.instance.terms) }, - err => this.notificationsService.error('Error getting about from server', err) + err => this.notificationsService.error(this.i18n('Error getting about from server'), err) ) } -- cgit v1.2.3