当前位置: 代码迷 >> 综合 >> handsontable 日期汉化
  详细解决方案

handsontable 日期汉化

热度:44   发布时间:2024-03-06 12:31:52.0

在你的handsontable js中找到

i18n: {previousMonth: "Previous Month",nextMonth: "Next Month",months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],weekdays: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],weekdaysShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]},

然后替换成

 i18n: {previousMonth: 'Previous Month',nextMonth: 'Next Month',months: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],weekdays: ['日', '一', '二', '三', '四', '五', '六'],weekdaysShort: ['日', '一', '二', '三', '四', '五', '六']},

然后结果(改完之后 注意清理浏览器缓存 让他重新加载js)