Add MMM format to allow short month names (e.g. Mar) (#91)
* Adds 'M' to allow short month names (e.g. 31-Mar-24')
* Changed to using 'MMM' instead of 'M'
* Run the code through format
* WIP on getting locales to work
* Correct processing of Locale
Previously, createFormat() created a FormatToken[]. Have introduced a new class FormatTokens which behaves exactly like FormatToken[] but also includes a reference to the InnerLocale. That way parse() knows which locale strings to use for months.
Changed the tests to reflect the new structure.
* Updated demo app to include dropdown for locale
* Update locale prop demo
* Format
* Fix lint errors
* Fix `createFormat` parsing locale
* Change parsing logic, make generic parseEnum
* Make parsing case insensitive
* Fix Prop
* Fix build error
* Add locale dropdown to DatePicker demo
* Update CHANGELOG.md
---------
Co-authored-by: Kasper <kasperkh.kh@gmail.com>
authored by