Problems with "locale"

Hi,
I'm trying to put its schedule component in Spanish, but when I put "locale = 'es'" it does not work for me:


The code is:
<ejs-schedule #schedule height='300px' [(selectedDate)]="selectedDate" [locale]="es" [(currentView)]="scheduleView" >
<e-views>
<e-view option="Week"></e-view>
</e-views>
</ejs-schedule>

loadCldr(
require("../../node_modules/cldr-data/main/es/currencies.json"),
require("../../node_modules/cldr-data/main/es/ca-gregorian.json"),
require("../../node_modules/cldr-data/main/es/numbers.json"),
require("../../node_modules/cldr-data/main/es/timeZoneNames.json"),
require("../../node_modules/cldr-data/supplemental/numberingSystems.json"),
require("../../node_modules/cldr-data/main/es/dateFields.json")
);

setCulture('es');
setCurrencyCode('EUR');

The strange thing is that I have an ejs-grid in the same app and if it works well "locale".

I have reviewed examples of their website and forum and it still does not work when I write locale = 'es'.

That I have to do?

Regards.








5 Replies

NR Nevitha Ravi Syncfusion Team September 13, 2018 03:56 PM UTC

Hi Juan, 
  
We suspect that the reported issue might be due to Spanish culture scripts required for schedule component are not loaded correctly in your application. So kindly ensure once, whether all locale scripts are referred and loaded correctly in your application and for the same we have prepared a working sample for your reference which can be downloaded from the following link. 
  
Please check the above sample and if the issue still persists, kindly try to reproduce the issue in the above sample and revert us back to proceed further on this. 
  
Regards, 
Nevitha. 



JU Juan September 14, 2018 07:50 AM UTC

Thanks for your quick response, but it still does not work.
I send my code where you can prove my problem.




<div>
<ejs-schedule #schedule height='650px' locale='es' [(selectedDate)]="selectedDate" [eventSettings]="eventSettings">
<e-views>
<e-view option="Week"></e-view>
</e-views>
</ejs-schedule>
</div>

I have put in the app.component.ts the code to load the culture (this works well for the grids).
Now when I put locale = 'es' no error occurs, but the schedule is not translated.

I hope they can reprocess the problem and give me a solution.

Regards.






Attachment: test_73f93a0b.zip


VS Velmurugan S Syncfusion Team September 18, 2018 04:19 AM UTC

Hi Juan,  
  
We have created a new support incident under your account, please follow the incident for further assistance . Kindly  log on to our support website to check further updates on it  
  
  
Regards,  
Velmurugan 



JR Jiri Richter December 11, 2019 10:46 PM UTC

I have the same problem with the Schedule component. 

When I set locale="cs" to the component, I get the abovementioned error.
I can confirm that cldr data are loaded correctly in the app when the component is being instantiated. But somehow the component doesn't see the globally loaded cldr or L10n data.


Could you please share the solution to this problem? I've encountered it on various version of the schedule package, on Angular 7 and 8.


VD Vinitha Devi Murugan Syncfusion Team December 12, 2019 10:55 AM UTC

Hi Juan, 
 
Thanks for your update. 
  
We tried to reproduce your reported scenario at our end, but without any script errors the ' cs ' culture loaded properly at our end. We have prepared a sample that can be downloaded from the following location for your reference. 
 

Output screenshot: 

 
 
Please try the sample and try to reproduce the error in a sample if the problem persists else share your example code / runnable sample (if possible ) to proceed further 
  
Regards,   
M.Vinitha devi 
 


Loader.
Up arrow icon