Our pure JavaScript Scheduler component


Post by lgruszka »

Is there are polish translation? Can I get them from somewhere?
In trial package is only En, Nl, Ru and SvSE locale files.


Post by mats »

Sorry, not at the moment but it should be easily achieved by following this guide: https://bryntum.com/docs/scheduler/#Scheduler/guides/customization/localization.md

Later this year we will try to add support for many more new languages!


Post by striker »

Igruszka, I from Poland and my solution for Polish translation is following:

Before initializing Gantt, I used:

await import('../../../../../assets/lang/bryntum/' + lang + '.ts').then(language => {
        LocaleManager.registerLocale(language, {
            desc: `${language} locale`,
            locale: LocaleHelper.mergeLocales(language.default)
          });

      LocaleManager.applyLocale(language);
})
 

As you can see, translation need to be in .ts file, not .json, because there are some functions.

  ResourceInfoColumn: {
    name: 'Zasób',

eventCountText: function (tasksCount: number | null): string {
  if (tasksCount == null || tasksCount === 0) {
    return 'Brak zaplanowanych zadań';
  } else if (tasksCount === 1) {
    return '1 zaplanowane zadanie'
  }else if (tasksCount > 1 && tasksCount < 5) {
    return tasksCount + ' zaplanowane zadania';
  } else {
    return  tasksCount + ' zaplanowanych zadań';
  }
}
  },
 

]

I just copied translations from 'gantt.locale.En.js' file in @bryntum/gantt/locales and formatted it.
From this moment you can translate fields / add new if you need.

If you need more help you can write to me


Post by lgruszka »

i check https://bryntum.com/examples/scheduler/localization/ demo as recommended in documentation
there is a file custom.locale.De.js - is there anywhere the same file with english version of text, it would be much easier to translate for me :)


Post by mats »

Look in your downloaded licensed version, in file system you will find /lib/Scheduler/localization/En.js :)


Post by lgruszka »

I don't have licensed version yet, i only have trial :)


Post by mats »

Ok, trial is only for validating that our products have the features you need. To develop you should buy licensed version.


Post by lgruszka »

yes, i know, we are close to buying it, but for now it would be cool if I had this file in the en version, can i get it somehow?


Post by Maxim Gorkovsky »

You can find locales in trial version in build/locales directory. File format isn't very helpful, I'm afraid, but there is no other option for trial at the moment.


Post by lgruszka »

ok, thx


Post Reply