I've recently learned that JS supports multiple complex calendars: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/calendar
How is this implemented? Are all the calendars rules coded? Are there any pitfalls that I should watch out for when using this?