import { ModalDirective } from 'ngx-bootstrap/modal'
import { VideoDetails } from '../../../shared/video/video-details.model'
import { buildVideoEmbed } from '../../../../assets/player/utils'
+import { I18n } from '@ngx-translate/i18n-polyfill'
@Component({
selector: 'my-video-share',
@ViewChild('modal') modal: ModalDirective
- constructor (private notificationsService: NotificationsService) {
+ constructor (
+ private notificationsService: NotificationsService,
+ private i18n: I18n
+ ) {
// empty
}
}
activateCopiedMessage () {
- this.notificationsService.success('Success', 'Copied')
+ this.notificationsService.success(this.i18n('Success'), this.i18n('Copied'))
}
}