Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spanish Locale - dots is missing from month name for 'medium' (MMM) month format #51317

Closed
patwaswapnil opened this issue Aug 10, 2023 · 3 comments

Comments

@patwaswapnil
Copy link

patwaswapnil commented Aug 10, 2023

Which @angular/* package(s) are the source of the bug?

core

Is this a regression?

Yes

Description

I recently upgraded my application from angular 11 to angular 14.

It seems there's an issue with the medium format for Spanish language where the dot is missing from the month name.

This worked correctly in Angular 11.

Please provide a link to a minimal reproduction of the bug

https://stackblitz.com/edit/angular-14-demo-z2jd6t Angular 14

Please provide the exception or error you saw

Working correctly 
https://stackblitz.com/edit/angular-11-new-yrcbht Angular 11
Expression: {{ '2024-08-06T18:30:00.000Z' | date: 'medium':undefined:'es-ES' }} 
Output: Date - 7 ago. 2024 0:00:00

Issue with 
https://stackblitz.com/edit/angular-14-demo-z2jd6t Angular 14
Expression: {{ '2024-08-06T18:30:00.000Z' | date: 'medium':undefined:'es-ES' }} 
Output: Date - 7 ago 2024 0:00:00

Please provide the environment you discovered this bug in (run ng version)

Angular CLI: 14.2.8
Node: 14.21.3
Package Manager: npm 6.14.18
OS: win32 x64

Angular: 14.3.0
... core

Package                             Version
-------------------------------------------------------------
@angular-devkit/architect           0.1402.8
@angular-devkit/build-angular       14.2.8
@angular-devkit/core                14.2.8
@angular-devkit/schematics          14.2.8
@angular/animations                 14.2.9
@angular/cdk                        14.2.6
@angular/cli                        14.2.8
@angular/common                     14.2.12
@angular/compiler                   14.2.9
@angular/compiler-cli               14.2.9
@angular/flex-layout                14.0.0-beta.41
@angular/forms                      14.2.9
@angular/language-service           14.2.9
@angular/material                   14.2.6
@angular/material-moment-adapter    14.2.6
@angular/platform-browser           14.2.9
@angular/platform-browser-dynamic   14.2.9
@angular/router                     14.2.9
@schematics/angular                 14.2.8
rxjs                                7.5.7
typescript                          4.8.4

Anything else?

Working correctly in angular material datepicker:
image

@JeanMeche
Copy link
Member

FWIW, the native API new Date().toLocaleDateString('es-ES', {month: 'short'}) returns ago.

@JoostK
Copy link
Member

JoostK commented Aug 10, 2023

Angular sources its localization data from the CLDR repository, where version 38 has removed the trailing dot in Spanish month abbreviations. I can't find the original ticket on CLDRs side for the reasoning of these changes, but they are outside of Angular's control.

@JoostK JoostK closed this as not planned Won't fix, can't repro, duplicate, stale Aug 10, 2023
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants