Custom widget development

Hello,

for our internal IOT platform, we add custom widgets to the initial catalog. We created some for Cockpit 1021 version but with latest release 1023, we have some issues. After authentication, widget is not loaded as expected and page remains blank

Even if we use the latest source code from your example “sample plugin”, we have same issue.

C8Y webSDK version : 1023.14.146

error log

TypeError: Cannot read properties of undefined (reading 'match')
at TranslateService.parseLocaleCode (c8y-ngx-components.mjs:4705:36)
at c8y-ngx-components.mjs:4595:90

Thanks for the support.

Franck.

Can you try using the latest web sdk version 1023.14.181 ?

1023.14.146 might contain a bug that is causing this.

Hi @franck.arrestier,

There is an issue within the Web SDK, as a temporary workaround, you could add:

    languages: {
      en: {
        name: 'English',
        nativeName: 'English',
      },
    }

to the runTime options of the cumulocity.config.ts.

Regards,
Tristan

Hi all,

thanks for your support, I will apply your solution.

In any case, I will inform you on the results.

Best regards,

Franck.

thanks @Tristan_Bastian , it works by adding your code in cumulocity.config.ts.