Added "tt" Locale, but on Android accessing locale.identifier.cultrueInfo is null

Hi there,

So I added a new Locale from Project Settings which is Tatar, and everything works in Editor…
However when I deploy it to Android, then “tt” is locale.identifier.cultrueInfo is null.

Please advise
Thanks

9933525--1437735--upload_2024-7-10_21-45-51.png

The culture info should be coming from .Net. can you try doing new CultureInfo(“tt”) and see if that gives you a valid instance?

In that case I get following error on Android

CultureNotFoundException: Culture name tt is not supported.
Parameter name: name
System.Globalization.CultureInfo..ctor (System.String name, System.Boolean useUserOverride, System.Boolean read_only) (at <00000000000000000000000000000000>:0)
System.Globalization.CultureInfo..ctor (System.String name, System.Boolean useUserOverride) (at <00000000000000000000000000000000>:0)
System.Globalization.CultureInfo..ctor (System.String name) (at <00000000000000000000000000000000>:0)

This seems to be a limitation in the class library implementation for Android. Some languages are not supported by the CultureInfo.
So unfortunately you won’t have access to CultureInfo for Tatar on Android, the localization system can function without this information. If you need to use culture formatting you can work around the issue by adding a custom formatter code to the locale using one of the more common locales that are supported, for example, “ru” for Russian.
https://docs.unity3d.com/Packages/com.unity.localization@1.5/manual/Locale.html