X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Fshared-forms%2Finput-readonly-copy.component.ts;h=a67b0c6910f9ccd330b6768c85c3589038b2d7a7;hb=66357162f8e1227495f09bd4f68446aad7071c6d;hp=7528fb7a1cd46ba657bfd2beec6d10ad73a72128;hpb=8c360747995e17eb5520e22fc3d7bd4c3d26eeee;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/shared/shared-forms/input-readonly-copy.component.ts b/client/src/app/shared/shared-forms/input-readonly-copy.component.ts index 7528fb7a1..a67b0c691 100644 --- a/client/src/app/shared/shared-forms/input-readonly-copy.component.ts +++ b/client/src/app/shared/shared-forms/input-readonly-copy.component.ts @@ -1,6 +1,5 @@ import { Component, Input } from '@angular/core' import { Notifier } from '@app/core' -import { I18n } from '@ngx-translate/i18n-polyfill' @Component({ selector: 'my-input-readonly-copy', @@ -10,12 +9,9 @@ import { I18n } from '@ngx-translate/i18n-polyfill' export class InputReadonlyCopyComponent { @Input() value = '' - constructor ( - private notifier: Notifier, - private i18n: I18n - ) { } + constructor (private notifier: Notifier) { } activateCopiedMessage () { - this.notifier.success(this.i18n('Copied')) + this.notifier.success($localize`Copied`) } }