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!

Beyond translations in Stimulus: formatting dates, time and currency

Exploring JavaScript’s Intl object that provides language-sensitive string comparison, number formatting etc. And creating a custom class for a better DX: https://railsdesigner.com/beyond-translations-in-stimulus/

Also taken (but adapted for the web) from the book JavaScript for Rails Developers.

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