Premium support for our pure JavaScript UI components


Post by vbureanu »

Hello,

We see error after creating and connecting all localization files.

All files we have translated and connected (including references en-En to it-It etc...)

How can we resolve this error?

Sincerely,
Vitalie

error.png
error.png (261.41 KiB) Viewed 966 times

Post by vbureanu »

I attached localized file. Can you try to connect it on you side?

Attachments
schedulerpro.locale.It.js
(33.06 KiB) Downloaded 70 times

Post by vbureanu »

Do we need to do something else to get rid of such error?


Post by alex.l »

Hi Vitalie,

Do you have a version that we can read and debug? Perfectly to have a runnable app code.
It also might be great to see how did you connect your files.

All the best,
Alex


Post by vbureanu »

Hi Alex,
I have sent to you a message with source code.

Sincerely,
Vitalie


Post by alex.l »

Hi vbureanu,

I've built and ran your app and see no errors in console. How to reproduce the issue you described?

All the best,
Alex


Post by vbureanu »

Hello Alex,

We have tried 2 different ways (from Bryntum help) to connect localization, but none of them works for us with Angular.
Alternatively... can I translate the english locale to italian (I`m very good italian speaker) and you will include it to SchedulerPro as IT locale?
I think it can be the quicker solution.

Sincerely,
Vitalie


Post by alex.l »

I've edited your app.module.ts with the next code:


// import internal locale
import BryntumRu from '@bryntum/schedulerpro/locales/schedulerpro.locale.Ru';
// import your extra locale?
import RuLocaleExamples from '../assets/locales/examples.locale.Ru.umd';

import { LocaleManager, LocaleHelper } from '@bryntum/schedulerpro/schedulerpro.lite.umd.js';

// merge 2 locales into one
const ruLocale = LocaleHelper.mergeLocales(BryntumRu, RuLocaleExamples);

// register russian locale
LocaleManager.registerLocale('Ru', { locale : ruLocale });

// set current locale to Ru
LocaleManager.locale = "Ru";

And it works now.

All the best,
Alex


Post Reply