Localization with some changes

2 posts, 0 answers
  1. Maurice
    Maurice avatar
    22 posts
    Member since:
    Jan 2016

    Posted 10 Nov Link to this post

    Hi,

    I'm using

    @{ var culture = System.Globalization.CultureInfo.CurrentCulture.ToString(); }
        <script src="@Url.Content("~/Scripts/cultures/kendo.culture." + culture + ".min.js")"></script>
        <script> kendo.culture("@culture")  </script>

    and the most of the clients are using nl-NL as their culture and this works like I would expect but:

    The official locale tells us the decimal separator is "," and thousand separator "." but everybody wants to use decimal separator "." and thousand separator ",".

    Is it possible to change the kendo.culture.nl-NL.min.js file (or do I need to change kendo.culture.nl.min.js) to make this change?

     

    Thanks,

    Maurice Lucas


  2. Neli
    Admin
    Neli avatar
    59 posts

    Posted 13 Nov Link to this post

    Hello Maurice,

    The enclosed article describes the Culture Definition and could be helpful in order to define a custom culture settings.

    Another approach, if applicable, is to use Kendo toString method in order to format numbers in the desired format. 

    You may find the Demo for the Globalization helpful.

    Regards,
    Neli
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top