richardtop / CalendarKit

📅 Calendar for Apple platforms in Swift
https://www.youtube.com/watch?v=cJ63-_z1qg8
MIT License
2.52k stars 340 forks source link

Localization issue: English is used always, regardless of the preferred language #299

Closed richardtop closed 2 years ago

richardtop commented 3 years ago

Reproducible in Swift Package Manager only

richardtop commented 3 years ago

Fixed in 1.0.2

niklasgrewe commented 3 years ago

@richardtop i think i found another bug... when i changed the language to german and the region to germany in the Simulator, the date labels (M for Monday etc.) will not be updated, i always see the english labels. I am using SPM and iOS 14.5

have I forgotten anything?

Bildschirmfoto 2021-08-12 um 16 25 20
richardtop commented 3 years ago

It's a bug. Please, take a look on how it's solved in the SwipeLabelView: https://github.com/richardtop/CalendarKit/blob/master/Source/Header/SwipeLabelView.swift#L125 Anf feel free to replicate that solution and submit the pull request.

richardtop commented 2 years ago

Checked, CalendarKit works correctly. Most likely you haven't added the language to your project Simulator Screen Shot - iPad Pro (11-inch) (3rd generation) - 2021-10-22 at 01 30 28 image .