Closed seeker5084 closed 6 years ago
Oops... Now i figured it out. datepicker.js#L53
$('.datepicker').datepicker({
i18n: {
months: ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"],
monthsShort: ["1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"],
weekdays: ["日曜日", "月曜日", "火曜日", "水曜日", "木曜日", "金曜日", "土曜日"],
weekdaysShort: ["日曜日", "月", "火", "水", "木", "金", "土"],
weekdaysAbbrev: ["日", "月", "火", "水", "木", "金", "土"]
}
});
I'm sorry for confusing you guys.
Not your fault, the internationalization isn't documented well yet
what is the best way to change the Date picker to use calendar other than Gregorian ,for example using moment-jalali: https://github.com/jalaali/moment-jalaali
Added i18n section in docs in 8aebdff8782f43417281c20cdb45a73a15b7a4fb
I've implemented jalali calendar version of materialize date picker
Now i'm using Materialize 1.0.0-alpha.2 and tried to translate the datepicker modal texts like this (ref. wiki - Translating the date picker).
But the code didn't work. Is there any way to localize datepicker in 1.0.0 i'm missing? or... this feature no longer exist?
Any help would be appreciated.