Skip to content

Month name is shown by computer region option not by computer language #14589

Closed

Description

Description

When I use DateTime.Now.ToString("MMMM yyyy"); and I display result on page, it shows me month in my domestic language despite I have computer in english. Whole application is working good and is showing text resources in english and only this is in my domestic language (slovak).

The language for this is taken probably from region and not from windows language. Which is not expected behavior. This makes inconsistency in application when some text is in windows language and this is by region. Date formats are not problem to be in slovak format but whole month names should be in computer language.

image

image

Steps to Reproduce

Start reproduction app, change region on your computer and let computer language in something else. Then you should be able to see it.

Link to public reproduction project repository

https://github.com/dzuris/BugMonthNameMaui.git

Version with bug

7.0 (current)

Last version that worked well

Unknown/Other

Affected platforms

Windows, I was not able test on other platforms

Affected platform versions

Windows 11

Did you find any workaround?

Change region in settings

Relevant log output

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions