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 --- .../my-account-video-channel-create.component.ts | 2 +- .../my-account-video-channel-update.component.ts | 2 +- .../my-account-video-channels/my-account-video-channels.component.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'client/src/app/+my-account') diff --git a/client/src/app/+my-account/my-account-video-channels/my-account-video-channel-create.component.ts b/client/src/app/+my-account/my-account-video-channels/my-account-video-channel-create.component.ts index 9b5a12d18..a4073728b 100644 --- a/client/src/app/+my-account/my-account-video-channels/my-account-video-channel-create.component.ts +++ b/client/src/app/+my-account/my-account-video-channels/my-account-video-channel-create.component.ts @@ -73,7 +73,7 @@ export class MyAccountVideoChannelCreateComponent extends MyAccountVideoChannelE this.authService.refreshUserInformation() this.notificationsService.success( this.i18n('Success'), - this.i18n('Video channel {{ videoChannelName }} created.', { videoChannelName: videoChannelCreate.displayName }) + this.i18n('Video channel {{videoChannelName}} created.', { videoChannelName: videoChannelCreate.displayName }) ) this.router.navigate([ '/my-account', 'video-channels' ]) }, diff --git a/client/src/app/+my-account/my-account-video-channels/my-account-video-channel-update.component.ts b/client/src/app/+my-account/my-account-video-channels/my-account-video-channel-update.component.ts index 78c578764..db38c7da9 100644 --- a/client/src/app/+my-account/my-account-video-channels/my-account-video-channel-update.component.ts +++ b/client/src/app/+my-account/my-account-video-channels/my-account-video-channel-update.component.ts @@ -101,7 +101,7 @@ export class MyAccountVideoChannelUpdateComponent extends MyAccountVideoChannelE this.authService.refreshUserInformation() this.notificationsService.success( this.i18n('Success'), - this.i18n('Video channel {{ videoChannelName }} updated.', { videoChannelName: videoChannelUpdate.displayName }) + this.i18n('Video channel {{videoChannelName}} updated.', { videoChannelName: videoChannelUpdate.displayName }) ) this.router.navigate([ '/my-account', 'video-channels' ]) }, diff --git a/client/src/app/+my-account/my-account-video-channels/my-account-video-channels.component.ts b/client/src/app/+my-account/my-account-video-channels/my-account-video-channels.component.ts index cff1041f6..6d1098865 100644 --- a/client/src/app/+my-account/my-account-video-channels/my-account-video-channels.component.ts +++ b/client/src/app/+my-account/my-account-video-channels/my-account-video-channels.component.ts @@ -35,7 +35,7 @@ export class MyAccountVideoChannelsComponent implements OnInit { async deleteVideoChannel (videoChannel: VideoChannel) { const res = await this.confirmService.confirmWithInput( this.i18n( - 'Do you really want to delete {{ videoChannelName }}? It will delete all videos uploaded in this channel too.', + 'Do you really want to delete {{videoChannelName}}? It will delete all videos uploaded in this channel too.', { videoChannelName: videoChannel.displayName } ), this.i18n('Please type the name of the video channel to confirm'), @@ -50,7 +50,7 @@ export class MyAccountVideoChannelsComponent implements OnInit { this.loadVideoChannels() this.notificationsService.success( this.i18n('Success'), - this.i18n('Video channel {{ videoChannelName } deleted.', { videoChannelName: videoChannel.displayName }) + this.i18n('Video channel {{videoChannelName}} deleted.', { videoChannelName: videoChannel.displayName }) ) }, -- cgit v1.2.3