Component not localized

Hi,

I am working with the NumericTextBox module and I want to change the locale of a currency field, according to the version of my application that the user is visiting.
.
I followed this example: https://ej2.syncfusion.com/angular/documentation/numerictextbox/globalization/#internationalization. I imported the CLDR JSON on the app.component.ts but I always see the default format.

For give more information, I'm using on the same project the DateTimePicker and it works well with the same CLDR import.

My Angular version is 9.1.3 and I updated the ej2-angular-inputs package to the 18.1.53 version.

I would appreciate any help with this problem

Best regards.



6 Replies

BC Berly Christopher Syncfusion Team May 25, 2020 07:57 AM UTC

Hi Gonzalo, 
  
Greetings from Syncfusion support.  
  
We have checked the reported issue and we would like to inform you that if you want to get the localized NumericTextBox component means, we need to load the below CLDR-data files in your application. 
·       numbers.json 
·       currencies.json 
·       numberingSystems.json 
·       currencyData.json 
  
For your reference, we have prepared the sample and attached it below. 
  
Still issue persists, please revert us with issue reproducing sample that will help us to check and proceed further at our end. 
  
Regards, 
Berly B.C 



GO Gonzalo May 25, 2020 09:08 AM UTC

Hi Berly Christopher,

Thank you for answering.

I checked your example and works well. The only difference with my code is apparently the Angular version. My version is 9.1.3 and in the example is the 9.0.2.

Could be any problem with this version?

Thank you again.


GO Gonzalo May 25, 2020 03:10 PM UTC

It is really strange for me.

I have created a new blank project with the same dependencies and versions of my original project.

I set the same numeric textbox, and on this new application it works.

It seems that on my original project the numeric textbox not take the locale. However the datetime component on the same project works well.

I can't find the issue. Some idea? 

Thanks again.


BC Berly Christopher Syncfusion Team May 26, 2020 08:39 AM UTC

Hi Gonzalo, 
  
We would like to inform you that if the entry for the Syncfusion package with different version then it will lead to install the duplicate of ej2-angular-base packages in your application. For example, if the “ej2-angular-inputs” package having the version with “18.*.*” and other Syncfusion package having the version with “17.*.*” or different version against input package version. This is the reason for NumericTextBox component does not localized in your application. So, we suggest you to install all the syncfusion package version to the same version to get rid of the reported issue.  
  
Also, while creating the new project, then all the Syncfusion packages are installed with latest version. So, the reported issue is not occurred in the new project. 
  
Regards, 
Berly B.C 



GO Gonzalo May 26, 2020 10:10 AM UTC

It works!

I didn't know that differents versions would trigger this error.

Thanks a lot for your help and your quickly response Berly Christopher.

Regards


BC Berly Christopher Syncfusion Team May 26, 2020 10:16 AM UTC

Hi Gonzalo, 
  
Most welcome. Please let us know If you need further assistance on this. 
  
Regards, 
Berly B.C 



Loader.
Up arrow icon