We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Additional localisation options

Hello,

Would it be possible to include some additional localisation options in the next build.

1. For currency, can you include the option for £
2. For dates, the standard format in the UK dd/mm/yy or dd/mm/yyyy - can these be added please
3. You have a  zip codes mask, can you include an option for UK postcodes 
4. You have a mask for US insurance numbers, can an option for UK national insurance numbers also be provided (http://www.hmrc.gov.uk/manuals/nimmanual/NIM39110.htm).

Thanks.

Saquib

1 Reply

SG Saravanan G Syncfusion Team July 29, 2013 10:37 AM UTC

Hi Saquib,


 Thank you for your interest in Syncfusion products.


 We will consider your requirement for addition localization options in next release. Also we have modified the  existing localization sample for Textboxes and  Datepicker controls to support UK cultures additionally and Mask edit control sample for UK (zip code & insurance number) .

 Sample can be downloaded in below link :

 

http://www.syncfusion.com/uploads/user/directTrac/111173/CustomSamples14537856.zip

 

 1.       For currency, can you include the option for £.

In the attached sample, £ support works for currency by just referring the en-GB localization JS file and using the localize property of currency textbox.

                <script src="scripts/globalize.culture.en-GB.js"></script>

                <script>

$("#localize").ejCurrencyTextbox({

                localize: "en-GB",

                   value: 55

            });

                </script>

2.       For dates, the standard format in the UK dd/mm/yy or dd/mm/yyyy - can these be added please

In datepicker, there is option to change the date format using an  API called “dateFormat”. By using this API we can achieve the above date format and also refer the

en-GB localization JS file in sample as below.

<script src="scripts/globalize.culture.en-GB.js"></script>

                <script>

 $("#datelocalization").ejDatePicker({

                localize: "en-GB",

                dateFormat: "dd/MM/yyyy"

            });

                </script>

3.       You have a  zip codes mask, can you include an option for UK postcodes 

Yes, we have added the UK postcodes option in the attached sample. This can be achieved by using the API called “mask” in mask edit control.

                                                <script>

                                                $("#maskeditZip").ejMaskEdit({

                                                mask: "AA-99"

                                                });

</script>

4.       You have a mask for US insurance numbers, can an option for UK national insurance numbers also be provided (http://www.hmrc.gov.uk/manuals/nimmanual/NIM39110.htm).

Yes, we have modified the attached mask edit sample to showcase UK insurance numbers option and this can be achieved by the same property “mask

                               

                                                <script>

$("#maskeditInc").ejMaskEdit({

                                                mask: "AA999999A"

                                                });

</script>

Regards,

Saravanan G


Loader.
Up arrow icon