microsoft / microsoft/microsoft-ui-xaml

CalendarView shows non-localized names for the weekdays and the months when using HijriCalendar or UmAlQuraCalendar

Open
#10,446 0 comments 0 reactions 0 assignees View on GitHub
area-DateTimePickers bug group-language
Dominant language
C++
Stars
8.4k
Forks
942
Avg merge
2d 7h
Merged PRs (30d)
105

Description

### Describe the bug

Using a `CalendarView` with `CalendarIdentifier` property set to either `HijriCalendar` or `UmAlQuraCalendar` make the weekdays and months displayed in Arabic only, regardless of the current app language.

### Steps to reproduce the bug

1. Add a `CalendarView` control.
2. Set the property `CalendarIdentifier` to `UmAlQuraCalendar` or `HijriCalendar`.
3. Run on a non-Arabic device and observe the non-localized labels.

### Expected behavior

I expect the `CalendarView` to show weekdays and months names according to the app language as long as there is a supported `DateTimeFormatInfo` for the combination of the calendar and the language.

### Screenshots

![Image](https://github.com/user-attachments/assets/7408e1d3-82ed-4a1f-b554-9fb9b2cab00f)

### NuGet package version

WinUI 3 - Windows App SDK 1.7.0: 1.7.250310001

### Windows version

Windows 11 (24H2): Build 26100

### Additional context

_No response_

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue by creating a CalendarView, setting CalendarIdentifier to UmAlQuraCalendar or HijriCalendar, and running on a non-Arabic device. Compare the weekday and month labels with the app language and verify that supported DateTimeFormatInfo combinations produce localized names.

Written by the indexing model from the issue text.

Assessment

Domain
desktop, localization
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.