Is there are polish translation? Can I get them from somewhere?
In trial package is only En, Nl, Ru and SvSE locale files.
Support Forum
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!
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
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