Because in Unity/C# UnityApplication.systemLanguage doesn't support Hindi, you can use this C# code snippet to recognize a Hindi system language
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//NOTE: This only works for Android | |
using (AndroidJavaClass cls = new AndroidJavaClass("java.util.Locale")) | |
{ | |
using (AndroidJavaObject locale = cls.CallStatic<AndroidJavaObject>("getDefault")) | |
{ | |
if (locale.Call<string>("getDisplayLanguage") == "हिन्दी") | |
{ | |
//HINDI | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment