Open elibroftw opened 1 year ago
It's okay though, tbh, apps should open the settings app instead of doing it themselves. I'll remove the library. I was using it just for the language detector.
I would also appreciate this. Being able to set to "System default" would be extremely useful.
I'd love to! Actually, this library doesn’t behave that way. Unfortunately, the default behavior of i18next
is to call cacheUserLanguage
on the language detector (that this library exposes) both at startup and whenever the user selects a different language. There's no way to distinguish between these two events.
Unless explicitly specified, do not set the app language to the value of the system default, just leave it as "System default". It wastes time debugging why the app isn't recognizing the locale and it will mess up users who want to change their language to another one if the user never set a specific language through the app itself.