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

[SR-9605] Date formatter grammar mistake #3563

Open
swift-ci opened this issue Jan 6, 2019 · 1 comment
Open

[SR-9605] Date formatter grammar mistake #3563

swift-ci opened this issue Jan 6, 2019 · 1 comment

Comments

@swift-ci
Copy link
Contributor

swift-ci commented Jan 6, 2019

Previous ID SR-9605
Radar None
Original Reporter royalaaaaa (JIRA User)
Type Bug
Environment

Swift 4.2

macOS, iOS (haven't tested it on tvOS but i'm pretty sure that it's also qualifying)

Additional Detail from JIRA
Votes 0
Component/s Foundation
Labels Bug
Assignee None
Priority Medium

md5: d80bfb31bbcc9308f8b2835bdac5537e

Issue Description:

In Polish language this example have one minor grammar mistake:

let dateFormatter = DateFormatter()
dateFormatter.setLocalizedDateFormatFromTemplate("MMMMy")
let date = dateFormatter.string(from: Date())
 
print(date)

date variable outputs "styczeń 2019" (on 6th of January 2019) when it should capitalize first letter of month (as in "Styczeń 2019"). I couldn't find any format template that capitalizes it and i had to do it manually (by creating an extension to String). It is not critical or anything, but it's definitely not correct.

@spevans
Copy link
Collaborator

spevans commented Jan 20, 2019

The month names that Foundation uses come from libICU and ultimately the CLDR (
Unicode Common Locale Data Repository) so cant easily be fixed in Foundation. This ICU bug (https://unicode-org.atlassian.net/browse/ICU-8893) may give further insight, especially the last comment.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants