Node-Webkit Browser Language

Get help using Construct 2

Post » Sat Jun 01, 2013 1:25 am

Hi guys, I have a problem about Node-webkit browser language, I've tested with Browser Language expresion to compare "en" and "es" as english and spanish, It worked with Modern browsers and CocoonJS, but Node-webkit doesn't. The problem is node-webkit exporter the default language is en_US that it's broken, in that case you can't export a game with language detector.


Is a bug?
B
96
S
34
G
29
Posts: 3,139
Reputation: 28,236

Post » Sat Jun 01, 2013 5:16 pm

https://github.com/rogerwang/node-webkit/issues/24

I really don't understand why they implemented en_US as default browser language that can't expose to system locale.
B
96
S
34
G
29
Posts: 3,139
Reputation: 28,236

Post » Sat Jun 01, 2013 6:08 pm

I found something:

The window.navigator.language shows locale of current system, the default one is en-US if node-webkit cannot dig out locale information. You can use it to implement l10n functions.


l10n functions? isn't c++ or javascript?
B
96
S
34
G
29
Posts: 3,139
Reputation: 28,236


Return to How do I....?

Who is online

Users browsing this forum: SoldjahBoy and 8 guests