From 66357162f8e1227495f09bd4f68446aad7071c6d Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 12 Aug 2020 10:40:04 +0200 Subject: Migrate to $localize * Remove i18n polyfill to translate things in components * Reduce bundle sizes * Improve runtime perf * Reduce a lot the time to make a full client build * Reduce client build complexity * We don't need a service to translate things anymore (so we will be able to translate title pages etc) Unfortunately we may loose some translations in the migration process. I'll put a message on weblate to notify translators --- .../video-channel-about/video-channel-about.component.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'client/src/app/+video-channels/video-channel-about/video-channel-about.component.ts') diff --git a/client/src/app/+video-channels/video-channel-about/video-channel-about.component.ts b/client/src/app/+video-channels/video-channel-about/video-channel-about.component.ts index 19e4bc1f4..537c7d08e 100644 --- a/client/src/app/+video-channels/video-channel-about/video-channel-about.component.ts +++ b/client/src/app/+video-channels/video-channel-about/video-channel-about.component.ts @@ -2,7 +2,6 @@ import { Subscription } from 'rxjs' import { Component, OnDestroy, OnInit } from '@angular/core' import { MarkdownService } from '@app/core' import { VideoChannel, VideoChannelService } from '@app/shared/shared-main' -import { I18n } from '@ngx-translate/i18n-polyfill' @Component({ selector: 'my-video-channel-about', @@ -17,7 +16,6 @@ export class VideoChannelAboutComponent implements OnInit, OnDestroy { private videoChannelSub: Subscription constructor ( - private i18n: I18n, private videoChannelService: VideoChannelService, private markdownService: MarkdownService ) { } @@ -40,6 +38,6 @@ export class VideoChannelAboutComponent implements OnInit, OnDestroy { getVideoChannelDescription () { if (this.descriptionHTML) return this.descriptionHTML - return this.i18n('No description') + return $localize`No description` } } -- cgit v1.2.3