Localization
If your locale is supported by the .toLocaleString()
method, you can simply pass it to the locale
parameter to localize the calendar.
If the locale is not supported or translated incorrectly, you can always set the locale manually. To do this, you need to provide arrays of month and weekday names instead of the language tag.