On Jun 11, 2019, at 12:57, Beuc <be...@beuc.net> wrote:This PR allows starting your WebAssembly program directly using the
user's preferred language (rather than shoving a language choice in
their face on start-up ;)).
Provided your program is i18n'd / multi-language, of course.
For nodejs no changes.
While this environment variable is pretty standard on desktop, Alon
expressed concerned that this may be risky to start doing this now.
Hence we moved the discussion to this list :)
What do you think?
Hi,
This PR's point is improving the "standard-ness" of the
Emscripten environment :)
(One could easily make yet another emscripten-specific change and
grab 'navigator.languages' using EM_JS.)
With this PR, for instance, my RenPyWeb port can use Python's
'locale' package without any changes.
Programs using gettext(3) would also work as-is.
LANG doesn't affect the C runtime until the program calls
setlocale(3) (cf. PR discussion).
This is about language preference detection; changing the language
in-app (sadly) cannot be solved at this level ;)
Cheers!
Beuc
--
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-disc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/acc93acd-b423-41f9-995b-b870d02c58dc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi,
FYI the PR was accepted :)
Cheers!
Beuc