akveo / akveo/nebular

NbDatepicker and NbRangepicker doesn't work properly with 'es' locale

Ouverte
#2,748 6 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
TypeScript
Étoiles
8.1k
Forks
1.5k
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

### Issue type

**I'm submitting a ...** (check one with "x")

* [x] bug report
* [ ] feature request

### Issue description

**Current behavior:**
`NbDatepicker` and `NbRangepicker` doesn't work properly with `es` locale. Once the Angular `LOCALE_ID` has been set the component doesn't render some selected dates, specifically the **April** ones. If I remove the `LOCALE_ID` from the `AppModule` providers it works well.

**Expected behavior:**
The component must work correctly with 'es' locale.

**Steps to reproduce:**
Set up the `LOCALE_ID` with `es` locale and select a date in **April**.
It's happening something similar with `es-CO` locale.

**Related code:**
I built a small project with the minimum needed to reproduce the Bug:
[nb-datepicker-es-locale-issue](https://github.com/alobaton/nb-datepicker-es-locale-issue)

### Other information:

**npm, node, OS, Browser**
```
Node, npm: `node --version` and `npm --version` 7.14.0
OS: Windows Linux (Ubuntu 18)
Browser: Chrome/
```

**Angular, Nebular**
```
Angular: 11.2.1
Nebular: 7.0.0
```

Thanks for the help!

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.