Git Product home page Git Product logo

Comments (5)

jkuri avatar jkuri commented on May 24, 2024

hi. did you checked the readme?

from ng-daterangepicker.

luispedrocosta avatar luispedrocosta commented on May 24, 2024

I did but I didn't found where to change the names of the months

from ng-daterangepicker.

jkuri avatar jkuri commented on May 24, 2024

oh yes, I switched with day names. you can make a PR for months if you have time and I will accept it.

from ng-daterangepicker.

brada1703 avatar brada1703 commented on May 24, 2024

Is there anyway that we could change the name dynamically?

In understand that we can change them statically under:

  ngOnInit() {
    this.options = {
      ...
      dayNames: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
      ...
    };

However, I am using ngx-translate, which allows me to change the text dynamically in the HTML.

For example,

<a [routerLink]="'/therooms' | localize" [routerLinkActive]="['router-link-active']">
{{'ROOMS' | translate}}
</a>

In other words, can I break down the daterangepicker to put more of the package into the HTML to allow me to make this type of dynamic change, or would there be a way to do this within the Typescript?

Thanks!

from ng-daterangepicker.

Marineau avatar Marineau commented on May 24, 2024

Hi. I'm also looking for a way to change the month names, solutions by dateFns doesnt seems to work on Angular 5, I'm out of ideas.

from ng-daterangepicker.

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.