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.

Hi,

I use fullcalendar with “fr locale” and angular-cli

import { FullCalendarModule } from ‘ng-fullcalendar’; import `‘fullcalendar/dist/locale/fr.js’;

When I use ng serve : everything is ok But with “npm run build” I have this error when I try to access t omy website :

OR Error: Uncaught (in promise): TypeError: Cannot read property ‘datepickerLocale’ of undefined

TypeError: Cannot read property ‘datepickerLocale’ of undefined

If I remove “import `‘fullcalendar/dist/locale/fr.js’;” : everythink is OK…

thanks

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

6reactions
nicogaldocommented, Apr 6, 2018

@amineparis The List button does not appear in that code, but it works.

this.calendarOptions = {
  locale: 'es',
  buttonText: {
    today: 'Hoy',
    month: 'Mes',
    week: 'Semana',
    day: 'Día',
    list: 'Lista'
  },
  header: {
    left: 'prev,next today',
    center: 'title',
    right: 'month,agendaWeek,agendaDay,listMonth'
  },
0reactions
chaouiycommented, Mar 7, 2018

Found it here, use locale: ‘fr’ in options and change button texts using button text options

Read more comments on GitHub >

github_iconTop Results From Across the Web

FileLocal-wa.gov [a Portal to e-File and Pay Business Taxes ...
FileLocal offers businesses a one stop place to meet their license and tax filing needs. Simple, fast and time-saving. Sign in if you...
Read more >
Local files - Support - Spotify
Along with the millions of tracks we offer, the Local Files feature lets you use the Spotify app to play any other audio...
Read more >
localfile - Local configuration (ossec.conf)
<localfile> </localfile>. This configuration section is used to configure the collection of log data from files, Windows events, and from the output of ......
Read more >
Local File - Home Assistant
Local File. The local_file camera platform allows you to integrate an image file from disk into Home Assistant as a camera. If the...
Read more >
How do I create a local file? - OCLC Support
To make the new file your default file, select the new file path inside Local File Manager, and click Set as Default.
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