Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: improvement about prompts::DateSelect for user friendly purpose #251

Open
polarove opened this issue May 6, 2024 · 0 comments

Comments

@polarove
Copy link

polarove commented May 6, 2024

Is your feature request related to a problem? Please describe.

No. It's about localization and visual improvements

Describe the solution you'd like

Localization

Can we have localized title and days?
eg: from (English)

## prompt
? pick a date
>     august 2021
> mo tu we th fr sa su

## output
> pick a date August 15, 2021

to: (French)

? Choisissez une date
>                   Août 2021
> Lundi Mardi Mercredi Jeudi Vendredi Samedi Dimanche

## output
> Choisissez une date 15 août 2021

Or any other languages.

Visual improvements

Though we are able to set the range for dates to pick, those unselectable dates are too visually clear to be distinguished with selectable date.

Describe alternatives you've considered

For localize days, pass days as parameters into a date enum with a default value accroding to itself

enum Days {
        Sunday(String),
        Monday(String),
        Tuesday(String),
        Wednesday(String),
        Thursday(String),
        Friday(String),
        Saturday(String),
}

For title, I don't know either, perhaps this relates to the crate chrono.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant