Ionic: Why the detected device language is 'zz-ZZ'

1.1k views Asked by At

In ionic navigator.language returns en-US on the browser and zz-ZZ on my Android device.

I've read that it is called Pseudolocalization.

Why does it happen? How can I get the real device language?

1

There are 1 answers

0
Erik Minarini On BEST ANSWER

You should inject the $locale service and retrieve the device language using $locale.id