does scheduler consider browser local

2 posts, 0 answers
  1. Kumeri
    Kumeri avatar
    13 posts
    Member since:
    Jul 2018

    Posted 24 Jun Link to this post

    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. 

  2. Ivan Danchev
    Admin
    Ivan Danchev avatar
    2104 posts

    Posted 26 Jun Link to this post

    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.
Back to Top