question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Missing locale data for the locale

See original GitHub issue
  • Bug report
  • Feature request
  • Support request

Bug description

When I use latest version ^0.23.1 and using different locale then en then I get error, but with version ^0.22.2 it is working fine

  • Missing locale data for the locale fr
  • Monthly view is not working

Minimal reproduction of the problem with instructions

<mwl-calendar-month-view *ngSwitchCase="'month'" [locale]="fr" [viewDate]="viewDate" [events]="events" [refresh]="refresh"
        [activeDayIsOpen]="activeDayIsOpen" (dayClicked)="dayClicked($event.day)" (eventClicked)="handleEvent('Clicked', $event.event)"
        [weekStartsOn]="weekStartsOn" [weekendDays]="weekendDays" [cellTemplate]="customCellTemplate">

    </mwl-calendar-month-view>
    <mwl-calendar-week-view *ngSwitchCase="'week'" [locale]="fr" [viewDate]="viewDate" [events]="events" [refresh]="refresh"
        (eventClicked)="handleEvent('Clicked', $event.event)" [weekStartsOn]="weekStartsOn"
        [weekendDays]="weekendDays">
    </mwl-calendar-week-view>

Versions

Angular: 5.1.3

Calendar library: 0.23.1

Browser name and version: chrome 63.0.3239.84

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

11reactions
mattlewis92commented, Apr 30, 2019

You need to register the hebrew locale data in module.ts (like for the other languages):

import localeHe from '@angular/common/locales/he';
registerLocaleData(localeHe);

https://stackblitz.com/edit/angular-6su8pq-uxnpeg?file=demo/module.ts

3reactions
cyrineghcommented, Mar 23, 2018

capture

Read more comments on GitHub >

github_iconTop Results From Across the Web

Missing locale data for the locale "XXX" with angular
I had the same issue with this error message: Missing locale data for the locale "hu".' for pipe 'DatePipe'. This solved. Thanks! –...
Read more >
DatePipe: Missing locale data for the locale "de" · Issue #20286
Current behavior. When I use DatePipe in my component it throws an error: Missing locale data for the locale "de". new DatePipe('de') ...
Read more >
LOCALE_ID - Angular
Provide this token to set the locale of your application. It is used for i18n extraction, by i18n pipes (DatePipe, I18nPluralPipe, CurrencyPipe, ...
Read more >
Error: InvalidPipeArgument: 'Missing locale data for the locale ...
enter directly this address, and route dashboard from login you will see the error, and also the start and end date datepickers are...
Read more >
Dynamic Import of Locales in Angular | by Michael Karén
Missing locale data for the locale "nb-NO". This is because your module did not import before the pipe tried to use it. Since...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found