This is a migrated thread and some comments may be shown as answers.

does scheduler consider browser local

1 Answer 58 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Kumeri
Top achievements
Rank 1
Iron
Veteran
Kumeri asked on 24 Jun 2020, 02:34 PM

hi, 

i would like to know whether the kendo scheduler consider/changes according to the browser language. If we change language in the browser does the scheduler changes its date format patterns ( ex: "mon 6/10" in week view header), timeslot labels (ex: "8.00 A.M.") and texts(ex: monday, tuesday, wednesday... on month view) according to the new language. 

1 Answer, 1 is accepted

Sort by
0
Ivan Danchev
Telerik team
answered on 26 Jun 2020, 10:00 AM

Hi Kumeri,

Changing the browser language does not have this effect on the Scheduler. To display the messages (e.g., week days) in a different language, the respective messages file must be loaded. For example, to translate the messages in German the following file must be loaded on the page:

<script src="https://kendo.cdn.telerik.com/2020.2.617/js/messages/kendo.messages.de-DE.min.js"></script>

For more information refer to this documentation article: https://docs.telerik.com/kendo-ui/globalization/localization#setting-the-current-language

The list of the available messages files you can find here: https://github.com/telerik/kendo-ui-core/tree/master/src/messages

With regard to time slot formats, changing them requires setting the respective culture. See Defining the Current Culture section, which demonstrates how this can be done.

Finally, the header format is not dependent on the culture, so to change it you will have to use the dateHeaderTemplate option. The date formats you can use you can find here: https://docs.telerik.com/kendo-ui/globalization/intl/dateformatting#date-formatting

Regards,
Ivan Danchev
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
Scheduler
Asked by
Kumeri
Top achievements
Rank 1
Iron
Veteran
Answers by
Ivan Danchev
Telerik team
Share this question
or