X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Fshared-abuse-list%2Fabuse-details.component.ts;h=282a6fe1945c60af2dffd92a7d501ab298be4e19;hb=66357162f8e1227495f09bd4f68446aad7071c6d;hp=0e872079a58124e5fc83ee80514f3c093eda5488;hpb=8c360747995e17eb5520e22fc3d7bd4c3d26eeee;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/shared/shared-abuse-list/abuse-details.component.ts b/client/src/app/shared/shared-abuse-list/abuse-details.component.ts index 0e872079a..282a6fe19 100644 --- a/client/src/app/shared/shared-abuse-list/abuse-details.component.ts +++ b/client/src/app/shared/shared-abuse-list/abuse-details.component.ts @@ -1,7 +1,6 @@ import { Component, Input } from '@angular/core' import { durationToString } from '@app/helpers' import { Actor } from '@app/shared/shared-main' -import { I18n } from '@ngx-translate/i18n-polyfill' import { AbusePredefinedReasonsString } from '@shared/models' import { ProcessedAbuse } from './processed-abuse.model' @@ -17,18 +16,16 @@ export class AbuseDetailsComponent { private predefinedReasonsTranslations: { [key in AbusePredefinedReasonsString]: string } - constructor ( - private i18n: I18n - ) { + constructor () { this.predefinedReasonsTranslations = { - violentOrRepulsive: this.i18n('Violent or Repulsive'), - hatefulOrAbusive: this.i18n('Hateful or Abusive'), - spamOrMisleading: this.i18n('Spam or Misleading'), - privacy: this.i18n('Privacy'), - rights: this.i18n('Copyright'), - serverRules: this.i18n('Server rules'), - thumbnails: this.i18n('Thumbnails'), - captions: this.i18n('Captions') + violentOrRepulsive: $localize`Violent or Repulsive`, + hatefulOrAbusive: $localize`Hateful or Abusive`, + spamOrMisleading: $localize`Spam or Misleading`, + privacy: $localize`Privacy`, + rights: $localize`Copyright`, + serverRules: $localize`Server rules`, + thumbnails: $localize`Thumbnails`, + captions: $localize`Captions` } }