X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2F%2Bvideos%2F%2Bvideo-edit%2Fshared%2Fi18n-primeng-calendar.service.ts;h=34848b0362c19a9e40822184670f966ec188c384;hb=5f26f13b3c16ac5ae0a3b0a7142d84a9528cf565;hp=2acbace48d30e7dd7c60c51c295e053ff6299b21;hpb=66357162f8e1227495f09bd4f68446aad7071c6d;p=github%2FChocobozzz%2FPeerTube.git 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..34848b036 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,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 () {