Couldn't you pass that back in your page's view template?

On Feb 23, 1:31 pm, Erwin <yves_duf...@mac.com> wrote:
> I am not very fluent in JS, so I don't see how to transfer the rails
> app current locale ..
>
> I have a JS script able to detect the default browser language ..
> running fine
>
> I can also modify the JS language, passing a global var ..
>
>          // Create a JSON Object
>         var myJSON = {
>                 "lang": "fr"
>         };
>         // Pass it to the script immediately...
>         datePickerController.setGlobalVars(myJSON);
>
> and it runs ... but I would like this script to use the  language
> selected by the rails app user :
> the I18n.default_locale  being modified in the rails app
>
> any clue ?
>
> thanks a lot ..
>
> erwin

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to