Quantcast
Channel: Questions in topic: "localization"
Viewing all articles
Browse latest Browse all 210

How can I determine the current locale, or at least the currency symbol?

$
0
0
I have tried multiple approaches - but they all return the wrong, or inadequate results. My test system is set to en-GB out of the box but everything behaves as if it is en-US in Unity (I am testing in the editor). - `Application.systemLanguage.ToString()` returns "English" which is not very helpful at all - `String.Format( "{0:C}", 0.0f )` gives me a dollar formatted value instead of pounds - `System.Globalization.RegionInfo.CurrentRegion.CurrencySymbol` returns "USD"

Viewing all articles
Browse latest Browse all 210


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>