]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/+videos/+video-edit/shared/i18n-primeng-calendar.service.ts
Merge branch 'constant-registry' into develop
[github/Chocobozzz/PeerTube.git] / client / src / app / +videos / +video-edit / shared / i18n-primeng-calendar.service.ts
index 2acbace48d30e7dd7c60c51c295e053ff6299b21..34848b0362c19a9e40822184670f966ec188c384 100644 (file)
@@ -1,12 +1,11 @@
 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,11 +69,7 @@ export class I18nPrimengCalendarService {
       today: $localize`Today`,
 
       clear: $localize`Clear`
-    }
-  }
-
-  getCalendarLocale () {
-    return this.calendarLocale
+    })
   }
 
   getTimezone () {