- const msg = 'Your video quota is exceeded with this video ' +
- `(video size: ${bytePipes.transform(videofile.size, 0)}, ` +
- `used: ${bytePipes.transform(this.userVideoQuotaUsed, 0)}, ` +
- `quota: ${bytePipes.transform(videoQuota, 0)})`
- this.notificationsService.error('Error', msg)
+ const msg = this.i18n(
+ 'Your video quota is exceeded with this video (video size: {{ videoSize }}, used: {{ videoQuotaUsed }}, quota: {{ videoQuota }})',
+ {
+ videoSize: bytePipes.transform(videofile.size, 0),
+ videoQuotaUsed: bytePipes.transform(this.userVideoQuotaUsed, 0),
+ videoQuota: bytePipes.transform(videoQuota, 0)
+ }
+ )
+ this.notificationsService.error(this.i18n('Error'), msg)