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
29
S
12
G
21
Posts: 789
Reputation: 14,429

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
51
S
25
G
107
Posts: 1,581
Reputation: 60,458

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
29
S
12
G
21
Posts: 789
Reputation: 14,429


Return to How do I....?

Who is online

Users browsing this forum: David181 and 14 guests