- Home /
How to detect Brazilian Portuguese language setting in device
Good day. I use the Application.systemLanguage to detect the language that the device is using. However, I'm having a problem detecting Brazilian Portuguese because it's not included in the list in SystemLanguage class, only the Portuguese. Is there a workaround to detect the said language? We're releasing in iOS and Android if that helps. Thank you very much.
I would have use for such a feature as well... Anyone?!
Answer by Chris_Payne_QS · Nov 18, 2019 at 04:14 PM
It's ridiculous that Unity uses an internal enum for this when we already had a perfectly good universal ISO standard. IDK about mobile but this works on PC:
using System.Globalization;
...
CultureInfo ci = CultureInfo.InstalledUICulture;
string isoLanguageID = ci.Name;
Your answer
Follow this Question
Related Questions
Develop for two platforms simultaneously? (or at least reducing the conversion time) 0 Answers
Does receipt verification require an internet connection? 0 Answers
Admob on iOS and Android. Interstitial ads are showing but events are not firing. 1 Answer
Changing view based on device 0 Answers
Handheld.PlayFullScreenMovie() works on Android but not iOS? 2 Answers