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/+accounts/account-about/account-about.component.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'client/src/app/+accounts/account-about/account-about.component.ts') 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' import { ActivatedRoute } from '@angular/router' import { Account } from '@app/shared/account/account.model' import { AccountService } from '@app/shared/account/account.service' +import { I18n } from '@ngx-translate/i18n-polyfill' @Component({ selector: 'my-account-about', @@ -12,7 +13,8 @@ export class AccountAboutComponent implements OnInit { account: Account constructor ( - protected route: ActivatedRoute, + private route: ActivatedRoute, + private i18n: I18n, private accountService: AccountService ) { } @@ -25,6 +27,6 @@ export class AccountAboutComponent implements OnInit { getAccountDescription () { if (this.account.description) return this.account.description - return 'No description' + return this.i18n('No description') } } -- cgit v1.2.3