Git Product home page Git Product logo

Comments (9)

mattlewis92 avatar mattlewis92 commented on May 22, 2024

Are you calling moment.locale correctly, like so:

moment.locale('en', {
    week : {
        dow : 1 // Monday is the first day of the week
    }
});

from angular-bootstrap-calendar.

edgar0011 avatar edgar0011 commented on May 22, 2024

Sorry my bad, yes now it works, but only after re-rendering, like going from week to month an back, can I enforce the re rendering somehow?

from angular-bootstrap-calendar.

mattlewis92 avatar mattlewis92 commented on May 22, 2024

Try setting the calendar-use-iso-week attribute to true as per the docs.

from angular-bootstrap-calendar.

edgar0011 avatar edgar0011 commented on May 22, 2024

well, that works ok, but I expected that after changing momet locale (fow dow) and $locale it would be reflected in the calendar, but one has force it to redraw, by changing calendar-view for example

from angular-bootstrap-calendar.

mattlewis92 avatar mattlewis92 commented on May 22, 2024

Where are you setting the moment.locale? If you're doing it in the controller maybe try doing it in the run() section of your app instead so it is set before the calendar page is loaded.

from angular-bootstrap-calendar.

edgar0011 avatar edgar0011 commented on May 22, 2024

thats is the point, i want to be able change locale on the run, it works with angular-translate, and angular-dynamic-locale

from angular-bootstrap-calendar.

mattlewis92 avatar mattlewis92 commented on May 22, 2024

OK, I get what you mean now. I'll try and sort something this weekend.

from angular-bootstrap-calendar.

edgar0011 avatar edgar0011 commented on May 22, 2024

great, the calendar works great, and is much better then angular ui calendar....thanks a lot

from angular-bootstrap-calendar.

mattlewis92 avatar mattlewis92 commented on May 22, 2024

Sorry about the delay with this, fixed in 0dbd3dc :)

from angular-bootstrap-calendar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.