Hello, is it possible to know the value of a session variable within a javascript file?
I have session[:language] that contains the selected language and I would like to show some error messages on a javascript file according to the current language so, if I could know the value of session[:language] within the js file the translation was easier.
Bookmarks