X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2F%2Bsearch%2Fsearch.component.ts;h=2be952e161b9306b9afafaa1ba651dc3e4123d85;hb=66357162f8e1227495f09bd4f68446aad7071c6d;hp=70116fab387bc890441e9f0adcdbe457257f55c0;hpb=8c360747995e17eb5520e22fc3d7bd4c3d26eeee;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/+search/search.component.ts b/client/src/app/+search/search.component.ts index 70116fab3..2be952e16 100644 --- a/client/src/app/+search/search.component.ts +++ b/client/src/app/+search/search.component.ts @@ -7,7 +7,6 @@ import { Video, VideoChannel } from '@app/shared/shared-main' import { AdvancedSearch, SearchService } from '@app/shared/shared-search' import { MiniatureDisplayOptions, VideoLinkType } from '@app/shared/shared-video-miniature' import { MetaService } from '@ngx-meta/core' -import { I18n } from '@ngx-translate/i18n-polyfill' import { SearchTargetType, ServerConfig } from '@shared/models' @Component({ @@ -52,7 +51,6 @@ export class SearchComponent implements OnInit, OnDestroy { private lastSearchTarget: SearchTargetType constructor ( - private i18n: I18n, private route: ActivatedRoute, private router: Router, private metaService: MetaService, @@ -170,8 +168,8 @@ export class SearchComponent implements OnInit, OnDestroy { } this.notifier.error( - this.i18n('Search index is unavailable. Retrying with instance results instead.'), - this.i18n('Search error') + $localize`Search index is unavailable. Retrying with instance results instead.`, + $localize`Search error` ) this.advancedSearch.searchTarget = 'local' this.search() @@ -229,7 +227,7 @@ export class SearchComponent implements OnInit, OnDestroy { private updateTitle () { const suffix = this.currentSearch ? ' ' + this.currentSearch : '' - this.metaService.setTitle(this.i18n('Search') + suffix) + this.metaService.setTitle($localize`Search` + suffix) } private updateUrlFromAdvancedSearch () {