Rails i18n and routes in javascript

Posted by StefanS on Stack Overflow See other posts from Stack Overflow or by StefanS
Published on 2010-05-18T19:58:47Z Indexed on 2010/05/18 20:00 UTC
Read the original article Hit count: 327

Filed under:
|
|

Sometimes it would be really handy to have the Rails localization files available in JavaScript. Same is true for for the routes helpers.

I found these two plugins which are exactly doing this:

My questions:

  1. Are there any other plugins / gems doing similar things like the two above?
  2. What's the right approach in Rails? Meta tag? Additional data- attributes?

Thanks for any input!

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about JavaScript