Skip to content

Commit

Permalink
Migrate i18n to localize
Browse files Browse the repository at this point in the history
  • Loading branch information
kimsible authored and Chocobozzz committed Aug 14, 2020
1 parent 230c3ba commit da188b9
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { Video } from '@app/shared/shared-main'
import { VideoComment, VideoCommentService } from '@app/shared/shared-video-comment'
import { NgbModal } from '@ng-bootstrap/ng-bootstrap'
import { VideoCommentCreate } from '@shared/models'
import { I18n } from '@ngx-translate/i18n-polyfill'

@Component({
selector: 'my-video-comment-add',
Expand Down Expand Up @@ -39,7 +38,6 @@ export class VideoCommentAddComponent extends FormReactive implements OnChanges,
private videoCommentService: VideoCommentService,
private modalService: NgbModal,
private router: Router,
private i18n: I18n
) {
super()
}
Expand All @@ -57,9 +55,9 @@ export class VideoCommentAddComponent extends FormReactive implements OnChanges,

if (this.user) {
if (!this.parentComment) {
this.addingCommentButtonValue = this.i18n('Comment')
this.addingCommentButtonValue = $localize`Comment`
} else {
this.addingCommentButtonValue = this.i18n('Reply')
this.addingCommentButtonValue = $localize`Reply`
}

this.initTextValue()
Expand Down

0 comments on commit da188b9

Please sign in to comment.