import { zhCN } from 'date-fns/locale'; import { Locale } from '../interface'; const local: Locale = { code: 'zh-CN', dateFnsLocale: zhCN, // locale code to dateFns locale Pagination: { item: '条', page: '页', pageSize: '条/页', total: '共', jumpTo: '跳至' }, Modal: { confirm: '确定', cancel: '取消', }, TimePicker: { placeholder: { time: '请选择时间', timeRange: '请选择时间范围', }, begin: '开始时间', end: '结束时间', hour: '时', minute: '分', second: '秒', AM: '上午', PM: '下午', }, DatePicker: { placeholder: { date: '请选择日期', dateTime: '请选择日期及时间', dateRange: ['开始日期', '结束日期'], dateTimeRange: ['开始日期', '结束日期'], }, footer: { confirm: '确定', cancel: '取消', }, selectDate: '返回选择日期', selectTime: '选择时间', year: '年', month: '月', day: '日', monthText: '${year}年 ${month}', // 此处不使用标准token是因为需要做replace,月份M这个Token可能会被误伤,例如May months: { 1: '1月', 2: '2月', 3: '3月', 4: '4月', 5: '5月', 6: '6月', 7: '7月', 8: '8月', 9: '9月', 10: '10月', 11: '11月', 12: '12月', }, // timepicker scrollwheel里只需要展示[1、2……],所以这里的fullMonths根据UI定制了 fullMonths: { 1: '1', 2: '2', 3: '3', 4: '4', 5: '5', 6: '6', 7: '7', 8: '8', 9: '9', 10: '10', 11: '11', 12: '12', }, weeks: { Mon: '一', Tue: '二', Wed: '三', Thu: '四', Fri: '五', Sat: '六', Sun: '日', }, localeFormatToken: { FORMAT_SWITCH_DATE: 'yyyy-MM-dd', }, }, Navigation: { collapseText: '收起侧边栏', expandText: '展开侧边栏', }, Popconfirm: { confirm: '确定', cancel: '取消', }, Table: { emptyText: '暂无数据', pageText: '显示第 ${currentStart} 条-第 ${currentEnd} 条,共 ${total} 条', }, Select: { emptyText: '暂无数据', createText: '创建', }, Cascader: { emptyText: '暂无数据', }, Tree: { emptyText: '暂无数据', searchPlaceholder: '搜索', }, List: { emptyText: '暂无数据', }, Calendar: { allDay: '全天', AM: '上午${time}时', PM: '下午${time}时', datestring: '日', remaining: '还有${remained}项', }, Upload: { mainText: '点击上传文件或拖拽文件到这里', illegalTips: '不支持此类型文件', legalTips: '松手开始上传', retry: '重试', replace: '替换文件', clear: '清空', selectedFiles: '已选择文件', illegalSize: '文件尺寸不合法', fail: '上传失败', }, TreeSelect: { searchPlaceholder: '搜索', }, Typography: { copy: '复制', copied: '复制成功', expand: '展开', collapse: '收起', }, Transfer: { emptyLeft: '暂无数据', emptySearch: '无搜索结果', emptyRight: '暂无内容,可从左侧勾选', placeholder: '搜索', clear: '清空', selectAll: '全选', clearSelectAll: '取消全选', total: '共 ${total} 项', selected: '已选 ${total} 项', }, Form: { optional: '(可选)', }, Image: { preview: '预览', loading: '加载中', loadError: '加载失败', prevTip: '上一张', nextTip: '下一张', zoomInTip: '放大', zoomOutTip: '缩小', rotateTip: '旋转', downloadTip: '下载', adaptiveTip: '适应页面', originTip: '原始尺寸', }, }; // 中文 export default local;