There is a task: to first enter the mobile application, you need to determine the language of the Android / IOS device from which it is running. The application itself is written using the Apache Cordova platform, using standard web technologies Js, HTML, CSS. Guys, can anyone come across such a problem? Language definition by geolocation does not roll = (

1 answer 1

For iOS, you can take this plugin (or any other for working with NSUserDefaults) and get an array of strings using the "AppleLanguages" key. The first element is the current language + locale.

https://github.com/protonet/cordova-plugin-nsuserdefaults-for-app-groups