lively icon indicating copy to clipboard operation
lively copied to clipboard

Retrieve user language from javascript

Open JulienMaille opened this issue 2 years ago • 2 comments

Is it possible to tell which language is in use from javascript? I'm trying to localize the weather widget "Ripples", unfortunately window.navigator.language doesn't work. Thanks

JulienMaille avatar May 26 '22 08:05 JulienMaille

I'm trying to localize the weather widget "Ripples", unfortunately window.navigator.language doesn't work.

What's the value its showing?

This is likely due to the program set to Invariantculture: https://github.com/rocksdanister/lively-cef/blob/91826cee732eda4358e338a99a586c822443c4c0/src/Lively.PlayerCefSharp/Program.cs#L30-L32

its time to fix that part.

rocksdanister avatar May 27 '22 06:05 rocksdanister

What's the value its showing?

en_US

JulienMaille avatar May 27 '22 08:05 JulienMaille