error in ej.localetexts.it-IT.min.js

Hi, 
in my base Layout I load this scripts  


    <script src="@Url.Content("~/Scripts/jquery-1.10.2.js")"></script>
    <script src="@Url.Content("~/Scripts/modernizr-2.6.2.js")"></script>   
    <script src="@Url.Content("~/Scripts/jsrender.min.js")"></script>
    <script src="@Url.Content("~/Scripts/ej/web/ej.web.all.min.js")"></script>
    <script src="@Url.Content("~/Scripts/ej/common/ej.unobtrusive.min.js")"></script>

    <script src="@Url.Content("~/Scripts/jquery.validate.js")"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.js")"></script>

    <script src="@Url.Content("~/Scripts/bootstrap.js")"></script>
    <script src="@Url.Content("~/Scripts/respond.js")"></script>

    <script src="@Url.Content("~/Scripts/planesUtils.js")"></script>
    <script src="@Url.Content("~/Scripts/syncfusionUtils.js")"></script>

    <script src="@Url.Content("~/Scripts/ej/i18n/ej.culture.it-IT.min.js")"></script>

    <!-- cldr scripts (needed for globalize) -->
    <script src="@Url.Content("~/Scripts/cldr.js")"></script>
    <script src="@Url.Content("~/Scripts/cldr/event.js")"></script>
    <script src="@Url.Content("~/Scripts/cldr/supplemental.js")"></script>

    <!-- globalize scripts -->
    <script src="@Url.Content("~/Scripts/globalize.js")"></script>
    <script src="@Url.Content("~/Scripts/globalize/number.js")"></script>
    <script src="@Url.Content("~/Scripts/globalize/plural.js")"></script>
    <script src="@Url.Content("~/Scripts/globalize/currency.js")"></script>
    <script src="@Url.Content("~/Scripts/globalize/date.js")"></script>
    <script src="@Url.Content("~/Scripts/globalize/message.js")"></script>
    <script src="@Url.Content("~/Scripts/globalize/messages_it.js")"></script>  

    <script src="@Url.Content("~/Scripts/ej/l10n/ej.localetexts.it-IT.min.js")"></script>
      
    <script src="@Url.Content("~/Scripts/jquery.validate.globalize.js")"></script>



but when loads ej.localetexts.it-IT.min.js this error appear

Uncaught TypeError: Cannot read property 'indexOf' of undefined  at ej.localetexts.it-IT.min.js:10
    
The undefined object in script is "locales"

(function(n,t){var i,r;t.locales.indexOf("itIT")

how can I avoid this ?



5 Replies

MK Mohan Kumar Ramasamy Syncfusion Team October 9, 2017 12:23 PM UTC

Hi Nicola, 
 
Thanks for using syncfusion products. 
 
We have checked your query and we suspect that you have referred latest version (15.3.0.26) of “ej.localetexts” file with older version(<15.3.0.26)  of “ej.web.all.min.js” file. Since, latest “ej.localetexts” file have dependency with latest “ej.core” file. So, we suggest you to use our latest version of “ej.web.all.min.js” and “ej.localetexts” file to resolve the issue.  
 
Regards, 
Mohankumar R 



NI Nicola October 9, 2017 12:54 PM UTC

I installed the version 15.3.0.33 of syncfusion by nuget , the ej.web.all.min.js version is 15.3.0.33 but no ej.localetexts.it-IT is installed.
I downloaded the file from https://github.com/syncfusion/ej-global/tree/master/l10n 


but in the script code I found this indication ;

filename: ej.localetexts.it-IT.min.js

*  version : 12.3

*  Copyright Syncfusion Inc. 2001 - 2014. All rights reserved.

where can I found the latest version ?



MK Mohan Kumar Ramasamy Syncfusion Team October 10, 2017 12:24 PM UTC

Hi Nicola, 
 
Thanks for your update. 
 
We are not able to reproduce the reported issue with the reported version. So, could you please ensure whether you are referring latest (15.3.0.33) ej.web.all.min.js. If it doesn’t resolve your issue, could you please share us the following details. 
1.       Share the video of the issue that you have faced.  
2.       If possible please reproduce the issue in the simple sample.  
 
The provided information will help us to analyze the issue and provide you the response as early as possible.  
 
Refer the below jsplayground sample is referred latest (15.3.0.33) ej.web.all.min.js and ej.localetexts.it-IT.min.js file. 
 
 
Regards, 
Mohankumar R 



NI Nicola October 13, 2017 12:44 PM UTC

I removed the globalize scripts and it seems works. Thanks


  <script src="@Url.Content("~/Scripts/jquery-3.1.1.min.js")"></script>
  <script src="@Url.Content("~/Scripts/modernizr-2.6.2.js")"></script>
  <script src="@Url.Content("~/Scripts/jsrender.min.js")"></script> 
 
  <script src="@Url.Content("~/Scripts/ej/web/ej.web.all.min.js")"></script>
  <script src="@Url.Content("~/Scripts/ej/common/ej.unobtrusive.min.js")"></script>
 
  <script src="@Url.Content("~/Scripts/jquery.validate.js")"></script>
  <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.js")"></script>
  
  <script src="@Url.Content("~/Scripts/ej/i18n/ej.culture.it-IT.min.js")"></script>
  <script src="@Url.Content("~/Scripts/ej/l10n/ej.localetexts.it-IT.min.js")"></script>
 
  <script src="@Url.Content("~/Scripts/planesUtils.js")"></script>
  <script src="@Url.Content("~/Scripts/syncfusionUtils.js")"></script>  
  <script src=@Url.Content("~/Scripts/bootstrap.js")></script>
  <script src=@Url.Content("~/Scripts/respond.js")></script>


MK Mohan Kumar Ramasamy Syncfusion Team October 16, 2017 11:21 AM UTC

Hi Nicola,  
 
Thanks for your update.   
 
We are happy to hear that your issue has been resolved. 
 
Regards, 
Mohankumar R 


Loader.
Up arrow icon