formkit / tempo

📆 Parse, format, manipulate, and internationalize dates and times in JavaScript and TypeScript.
https://tempo.formkit.com
MIT License
2.37k stars 33 forks source link

Issue : format function throw error when locale passed including numbering system ( ar-u-nu-arab ) #68

Open peter-emad99 opened 3 months ago

peter-emad99 commented 3 months ago

i didn't find way to pass {numberingSystem:'arab'} , it's a valid option to intl.DateTimeFormatOptions

but i can include it in locale string like this ar-u-nu-arab

this throw invalid locale tag ar-u-nu-arab-u-hc-h12 error as format function already append hour cycle to the locale

possible solutions