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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:





133081 Oct 6,2017 04:14 PM UTC Oct 16,2017 11:21 AM UTC JavaScript 5
Tags: General
Asked On October 6, 2017 04:14 PM UTC

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 ?

Mohan Kumar Ramasamy [Syncfusion]
Replied On 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 ( of “ej.localetexts” file with older version(<  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.  
Mohankumar R 

Replied On October 9, 2017 12:54 PM UTC

I installed the version of syncfusion by nuget , the ej.web.all.min.js version is 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 ?

Mohan Kumar Ramasamy [Syncfusion]
Replied On 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 ( 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 ( ej.web.all.min.js and ej.localetexts.it-IT.min.js file. 
Mohankumar R 

Replied On 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>

Mohan Kumar Ramasamy [Syncfusion]
Replied On October 16, 2017 11:21 AM UTC

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


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon