From 25acef90a85c1584880dec96aa402f896af8364a Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 5 Jun 2018 09:13:26 +0200 Subject: Fix i18n in components --- .../src/app/+admin/follows/following-add/following-add.component.ts | 2 +- .../src/app/+admin/follows/following-list/following-list.component.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'client/src/app/+admin/follows') diff --git a/client/src/app/+admin/follows/following-add/following-add.component.ts b/client/src/app/+admin/follows/following-add/following-add.component.ts index f197c1fe9..bd9cc022b 100644 --- a/client/src/app/+admin/follows/following-add/following-add.component.ts +++ b/client/src/app/+admin/follows/following-add/following-add.component.ts @@ -36,7 +36,7 @@ export class FollowingAddComponent { for (const host of hosts) { if (validateHost(host) === false) { - newHostsErrors.push(this.i18n('{{ host }} is not valid', { host })) + newHostsErrors.push(this.i18n('{{host}} is not valid', { host })) } } diff --git a/client/src/app/+admin/follows/following-list/following-list.component.ts b/client/src/app/+admin/follows/following-list/following-list.component.ts index 2fb818c90..06e341e68 100644 --- a/client/src/app/+admin/follows/following-list/following-list.component.ts +++ b/client/src/app/+admin/follows/following-list/following-list.component.ts @@ -33,7 +33,7 @@ export class FollowingListComponent extends RestTable implements OnInit { async removeFollowing (follow: AccountFollow) { const res = await this.confirmService.confirm( - this.i18n('Do you really want to unfollow {{ host }}?', { host: follow.following.host }), + this.i18n('Do you really want to unfollow {{host}}?', { host: follow.following.host }), this.i18n('Unfollow') ) if (res === false) return @@ -42,7 +42,7 @@ export class FollowingListComponent extends RestTable implements OnInit { () => { this.notificationsService.success( this.i18n('Success'), - this.i18n('You are not following {{ host }} anymore.', { host: follow.following.host }) + this.i18n('You are not following {{host}} anymore.', { host: follow.following.host }) ) this.loadData() }, -- cgit v1.2.3