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