Get the device lang?


#1

Hello,

I am using Capacitor since a short time, and I have implemented it into my Vue.js project.
I want to make my application available in multiple languages and auto define the language.
For that, I would like to detect the device language.
I tried default javascript Navigator function to catch the browser lang, it works on the web but not into my iOS application.
Does Capacitor allows us to get the device lang ?

Thank you !


#2

navigator.language works fine for me on a Capacitor iOS app