Hi,
I've previously followed your localisation guide to configure my Gantt but a couple of issues have come up that I need to resolve.
My implementation looks like this:
import De from '../locales/De.js'; // E.g. locale implemented based on your examples
...
const locale = 'de-CH'; // For example - comes from user profile and varies (DE, FR, CH, UK etc)
const dateFormat = {
DateHelper: {
locale
},
};
De.locale.DateHelper.locale = locale; //
LocaleManager.extendLocale('En', dateFormat);
LocaleManager.registerLocale('De', De);
...
Some date columns are not formatted with the locale date format registered in the DateHelper & LocaleManager. Specifically all my standard columns are correct: Start, End and custom date columns. But Deadline, Early Start, etc (all those columns that can be added via "New Column") all show the wrong format.
Typing in dates into the date field are parsed in US format!
I have "fixed" the parsing for some dates by making the below change to the above code:
...
const dateFormat = {
DateHelper: {
locale,
parsers: {
L: 'DD.MM.YYYY'
}
},
};
...
But I haven't found any documentation on that parsers property, and also it doesn't fix the 2nd case mentioned in my issue above: ie the Deadline, Early Start, etc fields still parse in US.
What am I missing?
Thanks,
Martin