Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any idea how to change "local" dynamically #213

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

Any idea how to change "local" dynamically #213

ghn opened this issue Mar 12, 2012 · 1 comment

Comments

@ghn
Copy link

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
Copy link
Member

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants