Hello, my game will use NWjs and will have texts in English and Spanish.
Should I use the browser object to know the language of the user's operating system or can I do it directly from NWjs ?.
I do not see any way to find out the language using NWjs but I'd like to be sure.
Why not just allow the user to choose the first time they run your program? You can save the preference to localstorage so it doesn't ask again next time.
Develop games in your browser. Powerful, performant & highly capable.
Yes, that's another way to do it.
But can not find the language using NWjs?