X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Fshared-moderation%2Fserver-blocklist.component.ts;h=546fd53c395eebf6ee913d2eb9e1491357fc5931;hb=746018f6b81b40e8858303662ac9ec5ce59ac6eb;hp=d904d0605412a6b88bcfe37b73661dab87dea603;hpb=67ed6552b831df66713bac9e672738796128d33f;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/shared/shared-moderation/server-blocklist.component.ts b/client/src/app/shared/shared-moderation/server-blocklist.component.ts index d904d0605..546fd53c3 100644 --- a/client/src/app/shared/shared-moderation/server-blocklist.component.ts +++ b/client/src/app/shared/shared-moderation/server-blocklist.component.ts @@ -1,11 +1,12 @@ import { SortMeta } from 'primeng/api' -import { OnInit, ViewChild } from '@angular/core' -import { BatchDomainsModalComponent } from '@app/shared/shared-moderation/batch-domains-modal.component' +import { Directive, OnInit, ViewChild } from '@angular/core' import { Notifier, RestPagination, RestTable } from '@app/core' -import { I18n } from '@ngx-translate/i18n-polyfill' +import { BatchDomainsModalComponent } from '@app/shared/shared-moderation/batch-domains-modal.component' import { ServerBlock } from '@shared/models' import { BlocklistComponentType, BlocklistService } from './blocklist.service' +@Directive() +// tslint:disable-next-line: directive-class-suffix export class GenericServerBlocklistComponent extends RestTable implements OnInit { @ViewChild('batchDomainsModal') batchDomainsModal: BatchDomainsModalComponent @@ -19,8 +20,7 @@ export class GenericServerBlocklistComponent extends RestTable implements OnInit constructor ( protected notifier: Notifier, - protected blocklistService: BlocklistService, - protected i18n: I18n + protected blocklistService: BlocklistService ) { super() } @@ -42,8 +42,8 @@ export class GenericServerBlocklistComponent extends RestTable implements OnInit () => { this.notifier.success( this.mode === BlocklistComponentType.Account - ? this.i18n('Instance {{host}} unmuted.', { host }) - : this.i18n('Instance {{host}} unmuted by your instance.', { host }) + ? $localize`Instance ${host} unmuted.` + : $localize`Instance ${host} unmuted by your instance.` ) this.loadData() @@ -65,8 +65,8 @@ export class GenericServerBlocklistComponent extends RestTable implements OnInit () => { this.notifier.success( this.mode === BlocklistComponentType.Account - ? this.i18n('Instance {{domain}} muted.', { domain }) - : this.i18n('Instance {{domain}} muted by your instance.', { domain }) + ? $localize`Instance ${domain} muted.` + : $localize`Instance ${domain} muted by your instance.` ) this.loadData()