Translations for labels not in the documentation

Hi,

I was wondering how to translate these labels: Autofit all columns, Autofit this column, etc.



They are not in the documentation (https://ej2.syncfusion.com/react/documentation/gantt/global-local/).

FIY zoomToFit is documented twice.

Are these labels translatable?

Thank you in advance,

Matteo Messmer


3 Replies

PS Premkumar Sudalaimuthu Syncfusion Team March 22, 2022 07:06 AM UTC

Hi Matteo , 
 
Query  
Solution 
I was wondering how to translate these labels: Autofit all columns, Autofit this column, etc. 
Yes, it is possible to change these labels. You can define the keywords under the  Grid object. We have prepared an example for how to define this keyword. We have shared GitHub location which included different cultre . By using this sample you can able to set keywords for your cultre. 
 
Code snippets: 
 
 
grid: { 
      autoFitAll: 'すべての列を自動調整', 
      autoFit: 'この列を自動調整', 
      SortAscending: 'ソート昇順', 
      SortDescending: '降順で並べ替え', 
    }, 
 
 
 
 
FIY zoomToFit is documented twice. 
We have logged a  UG report to update the localization and it will be refreshing in live soon. 
 
Regards, 
Premkumar S 



MA matteomessmer March 22, 2022 01:52 PM UTC

Hi,

Thank you for the reply.

It works but now when I open a dialog to create or edit a task I get this error: 

Uncaught TypeError: Cannot convert undefined or null to object
    at Function.keys (<anonymous>)
    at DatePicker.L50A.CalendarBase.getCultureValues (calendar.js:284:1)
    at DatePicker.L50A.CalendarBase.createContentHeader (calendar.js:320:1)
    at DatePicker.L50A.CalendarBase.createContent (calendar.js:268:1)
    at DatePicker.L50A.Calendar.createContent (calendar.js:2199:1)
    at DatePicker.L50A.CalendarBase.render (calendar.js:140:1)
    at DatePicker.L50A.Calendar.render (calendar.js:2055:1)
    at DatePicker.CgYD.DatePicker.disabledDates (datepicker.js:1641:1)
    at DatePicker.CgYD.DatePicker.updateInput (datepicker.js:216:1)
    at DatePicker.CgYD.DatePicker.initialize (datepicker.js:152:1)
I went back to my working code and found out that the reason for the problem is setCulture("it-IT"), with just this the menu is translated but the edit dialog is broken.
Do you have a solution for this? Do you need the source code?

Thank you in advance,
Matteo Messmer


PS Premkumar Sudalaimuthu Syncfusion Team March 23, 2022 07:34 AM UTC

Hi Matteo , 
 
We have not facing any issue while adding or editing via dialog in the shared sample. We would like to know that whether you have included all the Json files and code snippets for cultures in your sample. We need to include load calender code for editing the task. We have shared code snippets , Online documentation and updated sample for your reference. If you still facing the issue we request you to share your code snippets and folder structure screenshot . It will help us to provide you a better solution. 
 
Code snippets: 
 
 
loadCldr(cagregorian, numbers, timeZoneNames); 
setCulture('de-DE'); 
 
 
 
 
Regards, 
Premkumar S 


Loader.
Up arrow icon