A
A
Andryushkov Konstantin2016-06-29 17:23:08
Mobile development
Andryushkov Konstantin, 2016-06-29 17:23:08

How to determine the language of an IOS / Android device from a mobile application?

There is a task: to enter the mobile application for the first time, you need to determine the language of the Android / IOS device from which it is launched. The application itself is written using the Apache Cordova platform , using standard Js, HTML, CSS web technologies. Guys, can anyone come across such a problem?
Determining the language by geo location or window.navigator does not work =(

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Kirill Ushakov, 2016-06-29
@robston

JavaScript:

var lang = (navigator.language || navigator.systemLanguage || navigator.userLanguage);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question