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. Image for the cookie policy date

Localization not working - Cannot convert undefined or null to object

Hello,

I've tried localization on the Schedule-Control. I set the locale-Attribute to 'de' but I get the following errors:

  1. Object
    1. info: "mounted hook"
    2. message: "Cannot convert undefined or null to object"
    3. name: "TypeError"
    4. stack: Array(9)
      1. 0: StackFrame
        1. columnNumber: 0
        2. fileName: "[...some path to my project...]/node_modules/@syncfusion/ej2-schedule/src/schedule/base/schedule.js"
        3. functionName: "Object.keys"
        4. lineNumber: 404
      2. 1: StackFrame
        1. columnNumber: 0
        2. fileName: "[...some path to my project...]/node_modules/@syncfusion/ej2-schedule/src/schedule/renderer/view-base.js"
        3. functionName: "getDayName"
        4. lineNumber: 10
      3. 2: StackFrame
        1. columnNumber: 67
        2. fileName: "[...some path to my project...]/node_modules/@syncfusion/ej2-schedule/src/schedule/renderer/vertical-view.js"
        3. functionName: "createElement"
        4. lineNumber: 310
      4. 3: StackFrame
        1. columnNumber: 0
        2. fileName: "[...some path to my project...]/node_modules/@syncfusion/ej2-schedule/src/schedule/renderer/vertical-view.js"
        3. functionName: "this.addAttributes"
        4. lineNumber: 493
      5. 4: StackFrame
        1. columnNumber: 0
        2. fileName: "[...some path to my project...]/node_modules/@syncfusion/ej2-schedule/src/schedule/renderer/vertical-view.js"
        3. functionName: "addClass"
        4. lineNumber: 461
      6. 5: StackFrame
        1. columnNumber: 0
        2. fileName: "[...some path to my project...]/node_modules/@syncfusion/ej2-schedule/src/schedule/renderer/vertical-view.js"
        3. functionName: "renderHeader"
        4. lineNumber: 379
      7. 6: StackFrame
        1. columnNumber: 0
        2. fileName: "[...some path to my project...]/node_modules/@syncfusion/ej2-schedule/src/schedule/renderer/vertical-view.js"
        3. functionName: "addClass"
        4. lineNumber: 368
      8. 7: StackFrame
        1. columnNumber: 0
        2. fileName: "[...some path to my project...]/node_modules/@syncfusion/ej2-schedule/src/schedule/renderer/renderer.js"
        3. functionName: "this.parent.element.classList.contains"
        4. lineNumber: 101
      9. 8: StackFrame
        1. columnNumber: 0
        2. fileName: "[...some path to my project...]/node_modules/@syncfusion/ej2-schedule/src/schedule/renderer/renderer.js"
        3. functionName: "render"
        4. lineNumber: 18

  2. And in the browser it looks like this:


If I change the locale-Attribute back to 'en' everything works fine.

Best regards,
Oliver

3 Replies

HB Hareesh Balasubramanian Syncfusion Team October 2, 2019 11:21 AM UTC

Hi Oliver, 

Greetings from Syncfusion Support. 

We have prepared a locale sample with de culture and the sample can be downloaded from the following link, 

Kindly try the above sample, if you have any concerns please revert us back for further assistance. 

Regards, 
Hareesh 



PO Politzki Oliver October 8, 2019 06:39 AM UTC

Hi there,

I don't know why, but with the newest version 17.3.14 it works.

Best regards,
Oliver




KK Karthigeyan Krishnamurthi Syncfusion Team October 9, 2019 04:44 AM UTC

 
We are happy to hear that everything is fine in latest version 😊 
 
Regards, 
Karthi 
 
 


Loader.
Live Chat Icon For mobile
Up arrow icon