aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+videos/+video-edit/shared/i18n-primeng-calendar.service.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/app/+videos/+video-edit/shared/i18n-primeng-calendar.service.ts')
-rw-r--r--client/src/app/+videos/+video-edit/shared/i18n-primeng-calendar.service.ts8
1 files changed, 4 insertions, 4 deletions
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 @@
1import { Injectable } from '@angular/core' 1import { Injectable } from '@angular/core'
2import { PrimeNGConfig } from 'primeng/api'
2 3
3@Injectable() 4@Injectable()
4export class I18nPrimengCalendarService { 5export class I18nPrimengCalendarService {
5 private readonly calendarLocale: any = {} 6 private readonly calendarLocale: any = {}
6 7
7 constructor () { 8 constructor (private config: PrimeNGConfig) {
8 this.calendarLocale = { 9 this.config.setTranslation({
9 firstDayOfWeek: 0,
10 dayNames: [ 10 dayNames: [
11 $localize`Sunday`, 11 $localize`Sunday`,
12 $localize`Monday`, 12 $localize`Monday`,
@@ -70,7 +70,7 @@ export class I18nPrimengCalendarService {
70 today: $localize`Today`, 70 today: $localize`Today`,
71 71
72 clear: $localize`Clear` 72 clear: $localize`Clear`
73 } 73 })
74 } 74 }
75 75
76 getCalendarLocale () { 76 getCalendarLocale () {