Comments (7)
Please provide a stackblitz
from angular-datepicker.
i can confirm the issue.
i think it was broken here https://github.com/vlio20/angular-datepicker/pull/573/files
maybe we need a better documentation on how to set (or load) the locale in "dayjs way"
from angular-datepicker.
@FrancYescO can you provide a stackblitz?
from angular-datepicker.
not much to do, just add locale: 'it'
to the config, seems it was a breaking changes not cited while migrating to dayjs
https://stackblitz.com/edit/angular-s5bfkr?file=src%2Fapp%2Fapp.component.ts
(stackblitz was a clone and edit from one you posted in the past)
from angular-datepicker.
init dayjs: dayjs.locale(languageCode);
https://day.js.org/docs/en/i18n/changing-locale
from angular-datepicker.
Just started using this component and ran into this issue. Looking forward to a fix hopefully in the not too distant future.
from angular-datepicker.
At last I've managed to change the locale. Did not find an information anywhere!
In *.ts file I added
import 'dayjs/locale/ru';
import dayjs from "dayjs";
And in the same file in constructor:
dayjs.locale('ru')
Also I had to add to tsconfig.app.json:
"allowSyntheticDefaultImports": true
in "compilerOptions".
In package.json I have
"dayjs": "^1.11.7",
from angular-datepicker.
Related Issues (20)
- Unable no set minTime if it's 00:00 HOT 4
- Update broken url with active url for "learning to contribute" under "Your First Contribution" in CONTRIBUTING.md HOT 1
- Angular 14 and use of 'dayjs' library HOT 1
- upgrade to ng 15 HOT 6
- Lose dependency on @angular/common to "^15.0.1" HOT 1
- Bug: Unable to change month and first click isn't registered when directive uses formControlName for Angular 15 HOT 4
- Allow to set the default time by config/input HOT 2
- displayDate doesn't seem to work on the demo (or in the code) HOT 2
- ng-deep doesn't affect the calendar modal HOT 2
- Will version be updated through any script or there is no need? HOT 3
- How to change the style of the timepicker? HOT 1
- ng16 upgraade HOT 2
- Does angular-datepicker support Ivy view engine HOT 2
- minDate and maxDate inputs not greying dates out for directive implementation HOT 1
- IDatePickerDirectiveConfig property returnedValueType has no effect for [dpDayPicker] FormControl value HOT 4
- TailwindCSS support HOT 2
- dp-time-select` does not respect 24-hour format despite setting `hours24Format: 'HH' HOT 3
- Support Angular 17
- Min and Max date isn't respected by input HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-datepicker.