diff options
Diffstat (limited to 'client/src/app/shared/shared-abuse-list/abuse-details.component.ts')
-rw-r--r-- | client/src/app/shared/shared-abuse-list/abuse-details.component.ts | 21 |
1 files changed, 9 insertions, 12 deletions
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 @@ | |||
1 | import { Component, Input } from '@angular/core' | 1 | import { Component, Input } from '@angular/core' |
2 | import { durationToString } from '@app/helpers' | 2 | import { durationToString } from '@app/helpers' |
3 | import { Actor } from '@app/shared/shared-main' | 3 | import { Actor } from '@app/shared/shared-main' |
4 | import { I18n } from '@ngx-translate/i18n-polyfill' | ||
5 | import { AbusePredefinedReasonsString } from '@shared/models' | 4 | import { AbusePredefinedReasonsString } from '@shared/models' |
6 | import { ProcessedAbuse } from './processed-abuse.model' | 5 | import { ProcessedAbuse } from './processed-abuse.model' |
7 | 6 | ||
@@ -17,18 +16,16 @@ export class AbuseDetailsComponent { | |||
17 | 16 | ||
18 | private predefinedReasonsTranslations: { [key in AbusePredefinedReasonsString]: string } | 17 | private predefinedReasonsTranslations: { [key in AbusePredefinedReasonsString]: string } |
19 | 18 | ||
20 | constructor ( | 19 | constructor () { |
21 | private i18n: I18n | ||
22 | ) { | ||
23 | this.predefinedReasonsTranslations = { | 20 | this.predefinedReasonsTranslations = { |
24 | violentOrRepulsive: this.i18n('Violent or Repulsive'), | 21 | violentOrRepulsive: $localize`Violent or Repulsive`, |
25 | hatefulOrAbusive: this.i18n('Hateful or Abusive'), | 22 | hatefulOrAbusive: $localize`Hateful or Abusive`, |
26 | spamOrMisleading: this.i18n('Spam or Misleading'), | 23 | spamOrMisleading: $localize`Spam or Misleading`, |
27 | privacy: this.i18n('Privacy'), | 24 | privacy: $localize`Privacy`, |
28 | rights: this.i18n('Copyright'), | 25 | rights: $localize`Copyright`, |
29 | serverRules: this.i18n('Server rules'), | 26 | serverRules: $localize`Server rules`, |
30 | thumbnails: this.i18n('Thumbnails'), | 27 | thumbnails: $localize`Thumbnails`, |
31 | captions: this.i18n('Captions') | 28 | captions: $localize`Captions` |
32 | } | 29 | } |
33 | } | 30 | } |
34 | 31 | ||