To find user's OS language?

Get help using Construct 2

Post » Mon Apr 24, 2017 10:40 am

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.
B
31
S
13
G
21
Posts: 844
Reputation: 14,693

Post » Tue Apr 25, 2017 8:20 am

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.
Mistakes were made.
B
54
S
28
G
115
Posts: 1,705
Reputation: 65,083

Post » Tue Apr 25, 2017 9:14 am

Yes, that's another way to do it.
But can not find the language using NWjs?
B
31
S
13
G
21
Posts: 844
Reputation: 14,693


Return to How do I....?

Who is online

Users browsing this forum: warmty and 9 guests