Ionic react app & i18next: Detecting device native language

We have an ionic react app which uses i18next library for managing the apps languages. I18next has a native function (LanguageDetector) which detects language of users browser when running our app in web. But on mobile devices, LanguageDetector seems not to work properly or not at all.

Is there a way for an Ionic react app to detect device language setting on Android/ios? Or is this a functionality that ionic does not support, and has to be implemented separately, individually for Android and ios?

Thank you

Sorry for bumping this, but any advice would be greatly appreciated!