Open TheAifam5 opened 5 years ago
This is also in ng-zorro-antd 10.1.2 and Angular 10.2.3:
I was testing it using the german locale: "de"/"de_DE".
Reproduction links:
With default settings: https://stackblitz.com/edit/angular-gtvszt?file=src/app/app.component.ts
With explicit setting the locales to DE: https://stackblitz.com/edit/angular-gtvszt-6n2quc?file=src/app/app.module.ts
This is also in ng-zorro-antd 10.1.2 and Angular 10.2.3:
I was testing it using the german locale: "de"/"de_DE".
Reproduction links:
* With default settings: https://stackblitz.com/edit/angular-gtvszt?file=src/app/app.component.ts * With explicit setting the locales to DE: https://stackblitz.com/edit/angular-gtvszt-6n2quc?file=src/app/app.module.ts
Yeah, same with "ru", "ru_RU"
Is there any update on this issue? I still encounter this problem on v12.0.1.
Custom formats which are parsed via nzFormat work, though the locale specific formats are ignored and the fallback yyyy-MM-dd always used.
The locales are not respected.
Is this seriously still an open issue???
Wow, I wasted 3 hours of my time trying to get this work in v12.x. What a shame!
At least add a note in the documentation about this!
Hello, are there any news about this issue?
Any news regarding this issue? Experiencing it on v12.1.1
Reproduction link
https://stackblitz.com/edit/ng-zorro-antd-start-6ssugj
Steps to reproduce
LOCALE_ID
tode-DE
:{ provide: LOCALE_ID, useValue: 'de-DE' }
NZ_I18N
tode-DE
:{ provide: NZ_I18N, useValue: de_DE }
NZ_DATE_LOCALE
tode-DE
:{ provide: NZ_DATE_LOCALE, useValue: deDateLocale }
All three points should be done in
app.module.ts
.Required imports:
What is expected?
What is actually happening?
DatePicker always falls back to default
nzFormat
value and ignoring the Angular's providers. Also after setting thenzFormat
to match the coresponding locale format, does not accept it via input, but only the defaultYYYY-MM-DD
.