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

[Enhancement][Calendar] Add option for overriding the "Today" button or to use the string from the locale data #591

Open
kdikov82 opened this issue Jul 2, 2024 · 0 comments
Labels
Enhancement Item which represents a new feature or an improvement Kendo UI for Vue

Comments

@kdikov82
Copy link

kdikov82 commented Jul 2, 2024

Currently, if you set different language and locale, the Calendar displays all date related messages in the selected locale, but the "Today" string is set through the messages. The "cldr" packages contain the "Today" string, so we might consider either taking it from the locale data or add an option for custom rendering for the "Today" button.

Example:
https://stackblitz.com/edit/241hm5?file=src%2Fmain.vue,src%2Fes.json

In the example, the locale and the language differ and within the Calendar, only the "Today" string is taken from the messages.
If we decide, we can take the "Today" string from the locale data:

import dateFields from 'cldr-dates-full/main/es/dateFields.json';
console.log(dateFields.main.es.dates.fields.day['relative-type-0']);
@kdikov82 kdikov82 added Enhancement Item which represents a new feature or an improvement Kendo UI for Vue labels Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Item which represents a new feature or an improvement Kendo UI for Vue
Projects
None yet
Development

No branches or pull requests

1 participant