Detected device language is 'zz-ZZ'

I’m trying to retrieve the device language in Ionic1, but

navigator.language || navigator.userLanguage

gives me ‘zz-ZZ’.

Can someone explain me why this happens and how to solve it?

See on StackOverflow

does $ retrieve the same output?

1 Like

That works, thanks! Do you know why navigator.language returns zz-ZZ?

No idea at all! I’ve used locale in tandem with angular-translate and works a treat!

Never came across zz-ZZ before