Search Issue Tracker

Won't Fix

Votes

1

Found in

2018.4

2019.4

2020.2

2020.2.2f1

2021.1

2021.2

Issue ID

1312027

Regression

No

Globalization.CultureInfo.CurrentCulture does not map to system language on OSX

Scripting

-

How to reproduce:
1. In the System Preferences, change the system language to another one than English (for example, French)
2. Open the attached project's Scene labeled "SampleScene"
3. Enter the Play Mode
4. Inspect the Console Window

Expected result: CultureInfo.CurrentCulture/CultureInfo.CurrentUICulture returns the same language as Application.systemLanguage
Actual result: CultureInfo.CurrentCulture/CultureInfo.CurrentUICulture always return en-US

Reproducible with: 2018.4.32f1, 2019.4.21f1, 2020.2.5f1, 2021.1.0b7, 2021.2.0a6

  1. Resolution Note (2022.1.X):

    This is a bug in Mono which will likely be addressed in the future with .Net 6

Comments (2)

  1. FSpark

    May 11, 2021 17:29

    Note, appears to work on Windows but not on Mac OS

  2. FSpark

    May 11, 2021 17:24

    This is important especially for engineering or medical applications. Please fix this asap!

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.