X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Fshared-main%2Fbuttons%2Fedit-button.component.ts;h=4b76551ca93c84b73aeafdf9669b7713fcd1eb60;hb=66357162f8e1227495f09bd4f68446aad7071c6d;hp=d8ae39b84c58c290a206aa7a97bb54bd9a60c6bb;hpb=8c360747995e17eb5520e22fc3d7bd4c3d26eeee;p=github%2FChocobozzz%2FPeerTube.git
diff --git a/client/src/app/shared/shared-main/buttons/edit-button.component.ts b/client/src/app/shared/shared-main/buttons/edit-button.component.ts
index d8ae39b84..4b76551ca 100644
--- a/client/src/app/shared/shared-main/buttons/edit-button.component.ts
+++ b/client/src/app/shared/shared-main/buttons/edit-button.component.ts
@@ -1,5 +1,4 @@
import { Component, Input, OnInit } from '@angular/core'
-import { I18n } from '@ngx-translate/i18n-polyfill'
@Component({
selector: 'my-edit-button',
@@ -12,17 +11,15 @@ export class EditButtonComponent implements OnInit {
@Input() title: string
@Input() routerLink: string[] | string = []
- constructor (private i18n: I18n) { }
-
ngOnInit () {
// No label
if (this.label === undefined && !this.title) {
- this.title = this.i18n('Update')
+ this.title = $localize`Update`
}
// Use default label
if (this.label === '') {
- this.label = this.i18n('Update')
+ this.label = $localize`Update`
if (!this.title) {
this.title = this.label