From 8e0a2f2a05df23c30abb21cfbd540fc289c33b91 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 7 Dec 2020 15:05:16 +0100 Subject: Use new primeng i18n api --- .../+videos/+video-edit/shared/i18n-primeng-calendar.service.ts | 8 ++++---- .../src/app/+videos/+video-edit/shared/video-edit.component.html | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'client') diff --git a/client/src/app/+videos/+video-edit/shared/i18n-primeng-calendar.service.ts b/client/src/app/+videos/+video-edit/shared/i18n-primeng-calendar.service.ts index 2acbace48..6ef4dbc68 100644 --- a/client/src/app/+videos/+video-edit/shared/i18n-primeng-calendar.service.ts +++ b/client/src/app/+videos/+video-edit/shared/i18n-primeng-calendar.service.ts @@ -1,12 +1,12 @@ import { Injectable } from '@angular/core' +import { PrimeNGConfig } from 'primeng/api' @Injectable() export class I18nPrimengCalendarService { private readonly calendarLocale: any = {} - constructor () { - this.calendarLocale = { - firstDayOfWeek: 0, + constructor (private config: PrimeNGConfig) { + this.config.setTranslation({ dayNames: [ $localize`Sunday`, $localize`Monday`, @@ -70,7 +70,7 @@ export class I18nPrimengCalendarService { today: $localize`Today`, clear: $localize`Clear` - } + }) } getCalendarLocale () { diff --git a/client/src/app/+videos/+video-edit/shared/video-edit.component.html b/client/src/app/+videos/+video-edit/shared/video-edit.component.html index 4747cec27..0c60ec4ec 100644 --- a/client/src/app/+videos/+video-edit/shared/video-edit.component.html +++ b/client/src/app/+videos/+video-edit/shared/video-edit.component.html @@ -117,7 +117,7 @@ @@ -299,8 +299,8 @@ -- cgit v1.2.3