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