Any idea how to change "local" dynamically #213

Closed
ghn opened this Issue Mar 12, 2012 · 1 comment

Comments

Projects
None yet
2 participants
@ghn

ghn commented Mar 12, 2012

The plugin i18n works just fine, however I can figure out how to change the local in my script. For instance, I'd like to let the user to choose his language at any time. How could I do that?
Googling that question returns that it's not yet supported, is that right?

@jrburke

This comment has been minimized.

Show comment Hide comment
@jrburke

jrburke Mar 13, 2012

Owner

Locale cannot be dynamically set due to how module bindings work. More discussion here, along with the suggestion to use location.reload() to get the updated locale modules:

http://groups.google.com/group/requirejs/browse_thread/thread/a0ac7a3505ad1116

Owner

jrburke commented Mar 13, 2012

Locale cannot be dynamically set due to how module bindings work. More discussion here, along with the suggestion to use location.reload() to get the updated locale modules:

http://groups.google.com/group/requirejs/browse_thread/thread/a0ac7a3505ad1116

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment