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 --- .../src/app/+videos/+video-watch/comment/video-comment.component.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'client/src/app/+videos/+video-watch/comment/video-comment.component.ts') diff --git a/client/src/app/+videos/+video-watch/comment/video-comment.component.ts b/client/src/app/+videos/+video-watch/comment/video-comment.component.ts index 36ec6e9f9..a84e91fd3 100644 --- a/client/src/app/+videos/+video-watch/comment/video-comment.component.ts +++ b/client/src/app/+videos/+video-watch/comment/video-comment.component.ts @@ -5,7 +5,6 @@ import { AuthService } from '@app/core/auth' import { Account, Actor, DropdownAction, Video } from '@app/shared/shared-main' import { CommentReportComponent } from '@app/shared/shared-moderation/report-modals/comment-report.component' import { VideoComment, VideoCommentThreadTree } from '@app/shared/shared-video-comment' -import { I18n } from '@ngx-translate/i18n-polyfill' import { User, UserRight } from '@shared/models' @Component({ @@ -39,7 +38,6 @@ export class VideoCommentComponent implements OnInit, OnChanges { commentUser: User constructor ( - private i18n: I18n, private markdownService: MarkdownService, private authService: AuthService, private userService: UserService, @@ -138,7 +136,7 @@ export class VideoCommentComponent implements OnInit, OnChanges { if (this.isUserLoggedIn() && this.comment.isDeleted === false && this.authService.getUser().account.id !== this.comment.account.id) { this.prependModerationActions = [ { - label: this.i18n('Report comment'), + label: $localize`Report comment`, handler: () => this.showReportModal() } ] -- cgit v1.2.3