RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

RAILS I18N AND ELEGANT MESSAGE PASSING TO JAVASCRIPT

Internationalization is the process of abstracting all strings out of your application. Rails provides excellent support for Internationalization.

Rails’ internationalization works well when views are built the Rails way. But when we are looking to build SPAs and front-end heavy applications, we often end up hard-coding error messages, response status messages (etc) in our javascript fies. Or worse, polluting javascript with Rails helpers!

https://codebrahma.com/rails-i18n-and-elegant-message-passing-to-javascript/

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in