Custom DetectDeviceLanguage behavior?

1 year 8 months ago - 1 year 8 months ago #3279 by bkane
Hi Frank,

I have a platform that returns its system language as a region/language code (e.g. "en" instead of "English"). It's similar to how Android is handled in LocalizationManager_SystemLanguage.cs, where the language code gets converted to a language name via "GoogleLanguages.GetLanguageName".

It's trivial enough to add the logic we need by modifying LocalizationManager.DetectDeviceLanguage directly, but I was curious if there was a better approach. The approaches used by things like the SpecializationManager and CustomPersistentStorage are great, and allow us to avoid losing modifications when we upgrade I2Loc versions.

- Ben

Edit: Currently using 2.8.9f1 from the Asset Store.
Last edit: 1 year 8 months ago by bkane.

Please Log in or Create an account to join the conversation.

Time to create page: 1.132 seconds
Template by JoomlaShine