probablykasper / date-picker-svelte

Date and time picker for Svelte
https://date-picker-svelte.kasper.space
MIT License
313 stars 65 forks source link

picker title format request... #81

Open Neptunium1129 opened 11 months ago

Neptunium1129 commented 11 months ago

image

need an option to change the location format title

now : mm - yyyy kor : yyyy - mm (2023 - 11)

In Korea, when reading the calendar, they often start with the year. For example, instead of saying "April 5th, 2023," they might say "2023 April 5th." This format prioritizes the year before the month and day.

Neptunium1129 commented 11 months ago

example : image lang : ko https://raw.githack.com/mymth/vanillajs-datepicker/v1.3.4/demo/index.html

probablykasper commented 11 months ago

Makes sense. From that datepicker, zh-TW, zh-CN, ja, ko and ar have the year first. Would be good to find a full list somewhere.

Implementation: Add a monthFirst property to InnerLocale. Add code property to DateFnsLocale object and use that to infer monthFirst in localeFromDateFnsLocale()

Neptunium1129 commented 11 months ago

Makes sense. From that datepicker, zh-TW, zh-CN, ja, ko and ar have the year first. Would be good to find a full list somewhere.

Implementation: Add a monthFirst property to InnerLocale. Add code property to DateFnsLocale object and use that to infer monthFirst in localeFromDateFnsLocale()

Can I see an example?

sinbino commented 10 months ago

I need this too.