Skip to content

Commit

Permalink
MOSIP-16525 Calendar displayed in english -for list of holiday master…
Browse files Browse the repository at this point in the history
…data

Signed-off-by: Madhuravas <[email protected]>
  • Loading branch information
Madhuravas committed Jan 31, 2024
1 parent 3bda434 commit 1c35974
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import defaultJson from "../../../../../assets/i18n/default.json";
import { HeaderService } from 'src/app/core/services/header.service';
import { TranslateService } from '@ngx-translate/core';
import { AuditService } from 'src/app/core/services/audit.service';
import { DateAdapter } from '@angular/material/core';

@Component({
selector: 'app-mater-data-common-body',
Expand Down Expand Up @@ -100,6 +101,7 @@ export class MaterDataCommonBodyComponent implements OnInit {
private headerService: HeaderService,
private translateService: TranslateService,
private auditService: AuditService,
private dateAdapter: DateAdapter<Date>
) {
this.tomorrow.setDate(this.tomorrow.getDate() + 1);
}
Expand All @@ -109,6 +111,7 @@ export class MaterDataCommonBodyComponent implements OnInit {
this.url = this.router.url.split('/')[3];
this.fieldsCount = 0;
this.primaryLangCode = this.headerService.getUserPreferredLanguage();
this.dateAdapter.setLocale(defaultJson.keyboardMapping[this.primaryLangCode]);
console.log("this.primaryLangCode>>>"+this.primaryLangCode);
console.log("config>>>"+defaultJson.languages["ara"].name);
/*if(url === "blocklisted-words"){
Expand Down

0 comments on commit 1c35974

Please sign in to comment.