mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-03 12:38:58 +08:00
240210a281
* feat: qrcode * chore: code clean * feat: New Component Qr-Code (#38891) * feat: QrCode * fix * fix * fix: fix bug * fix: fix bug * fix * fix * fix * delete * delete * test case * fix lint * bundlesize * demo * fix: fix test * remove dep * update snap * en docs * refactor: rename tests dir * Update components/qr-code/demo/base.md Co-authored-by: MadCcc <1075746765@qq.com> * Update components/qr-code/demo/base.md Co-authored-by: MadCcc <1075746765@qq.com> * Update components/qr-code/demo/download.md Co-authored-by: MadCcc <1075746765@qq.com> * Update components/qr-code/demo/download.md Co-authored-by: MadCcc <1075746765@qq.com> * Update components/qr-code/demo/download.tsx Co-authored-by: MadCcc <1075746765@qq.com> * Update components/qr-code/demo/logo.md Co-authored-by: MadCcc <1075746765@qq.com> * Update components/qr-code/index.tsx Co-authored-by: MadCcc <1075746765@qq.com> * Update components/qr-code/style/index.ts Co-authored-by: MadCcc <1075746765@qq.com> * Update components/qr-code/style/index.ts Co-authored-by: MadCcc <1075746765@qq.com> * Update components/qr-code/demo/logo.md Co-authored-by: MadCcc <1075746765@qq.com> * rename * fix * adjust text * rename * fix title * rename * rename * fix: snap * fix * bundlesize * update demo * update docs * add demo * add docs * add docs * test: add warning * update demo * bundlesize * update test case * update demo * feat: add onRefresh、add status * fix: fix demo * fix: fix demo * add locale * add locale * add test case * update snap * fix demo * update demo * update demo * update demo * Update components/qrcode/style/index.ts Co-authored-by: MadCcc <1075746765@qq.com> * Update components/qrcode/style/index.ts Co-authored-by: MadCcc <1075746765@qq.com> * Update components/qrcode/style/index.ts Co-authored-by: MadCcc <1075746765@qq.com> * Update components/qrcode/style/index.ts Co-authored-by: MadCcc <1075746765@qq.com> * Update components/qrcode/style/index.ts Co-authored-by: MadCcc <1075746765@qq.com> * Update components/qrcode/interface.ts Co-authored-by: MadCcc <1075746765@qq.com> * Update components/qrcode/style/index.ts Co-authored-by: MadCcc <1075746765@qq.com> * fix * Update components/qrcode/index.tsx Co-authored-by: MadCcc <1075746765@qq.com> * fix * fix * fix * add decs * fix * fix * fix type * fix * fix demo * fix lint * fix lint * add test case for bordered * prettier-ignore Co-authored-by: MadCcc <1075746765@qq.com> Co-authored-by: 栗嘉男 <lijianan@lijianandeMacBook-Pro.local>
146 lines
3.7 KiB
TypeScript
146 lines
3.7 KiB
TypeScript
/* eslint-disable no-template-curly-in-string */
|
|
import Pagination from 'rc-pagination/lib/locale/zh_CN';
|
|
import Calendar from '../calendar/locale/zh_CN';
|
|
import DatePicker from '../date-picker/locale/zh_CN';
|
|
import type { Locale } from '../locale-provider';
|
|
import TimePicker from '../time-picker/locale/zh_CN';
|
|
|
|
const typeTemplate = '${label}不是一个有效的${type}';
|
|
|
|
const localeValues: Locale = {
|
|
locale: 'zh-cn',
|
|
Pagination,
|
|
DatePicker,
|
|
TimePicker,
|
|
Calendar,
|
|
// locales for all components
|
|
global: {
|
|
placeholder: '请选择',
|
|
},
|
|
Table: {
|
|
filterTitle: '筛选',
|
|
filterConfirm: '确定',
|
|
filterReset: '重置',
|
|
filterEmptyText: '无筛选项',
|
|
filterCheckall: '全选',
|
|
filterSearchPlaceholder: '在筛选项中搜索',
|
|
selectAll: '全选当页',
|
|
selectInvert: '反选当页',
|
|
selectNone: '清空所有',
|
|
selectionAll: '全选所有',
|
|
sortTitle: '排序',
|
|
expand: '展开行',
|
|
collapse: '关闭行',
|
|
triggerDesc: '点击降序',
|
|
triggerAsc: '点击升序',
|
|
cancelSort: '取消排序',
|
|
},
|
|
Modal: {
|
|
okText: '确定',
|
|
cancelText: '取消',
|
|
justOkText: '知道了',
|
|
},
|
|
Tour: {
|
|
Next: '下一步',
|
|
Previous: '上一步',
|
|
Finish: '结束导览',
|
|
},
|
|
Popconfirm: {
|
|
cancelText: '取消',
|
|
okText: '确定',
|
|
},
|
|
Transfer: {
|
|
titles: ['', ''],
|
|
searchPlaceholder: '请输入搜索内容',
|
|
itemUnit: '项',
|
|
itemsUnit: '项',
|
|
remove: '删除',
|
|
selectCurrent: '全选当页',
|
|
removeCurrent: '删除当页',
|
|
selectAll: '全选所有',
|
|
removeAll: '删除全部',
|
|
selectInvert: '反选当页',
|
|
},
|
|
Upload: {
|
|
uploading: '文件上传中',
|
|
removeFile: '删除文件',
|
|
uploadError: '上传错误',
|
|
previewFile: '预览文件',
|
|
downloadFile: '下载文件',
|
|
},
|
|
Empty: {
|
|
description: '暂无数据',
|
|
},
|
|
Icon: {
|
|
icon: '图标',
|
|
},
|
|
Text: {
|
|
edit: '编辑',
|
|
copy: '复制',
|
|
copied: '复制成功',
|
|
expand: '展开',
|
|
},
|
|
PageHeader: {
|
|
back: '返回',
|
|
},
|
|
Form: {
|
|
optional: '(可选)',
|
|
defaultValidateMessages: {
|
|
default: '字段验证错误${label}',
|
|
required: '请输入${label}',
|
|
enum: '${label}必须是其中一个[${enum}]',
|
|
whitespace: '${label}不能为空字符',
|
|
date: {
|
|
format: '${label}日期格式无效',
|
|
parse: '${label}不能转换为日期',
|
|
invalid: '${label}是一个无效日期',
|
|
},
|
|
types: {
|
|
string: typeTemplate,
|
|
method: typeTemplate,
|
|
array: typeTemplate,
|
|
object: typeTemplate,
|
|
number: typeTemplate,
|
|
date: typeTemplate,
|
|
boolean: typeTemplate,
|
|
integer: typeTemplate,
|
|
float: typeTemplate,
|
|
regexp: typeTemplate,
|
|
email: typeTemplate,
|
|
url: typeTemplate,
|
|
hex: typeTemplate,
|
|
},
|
|
string: {
|
|
len: '${label}须为${len}个字符',
|
|
min: '${label}最少${min}个字符',
|
|
max: '${label}最多${max}个字符',
|
|
range: '${label}须在${min}-${max}字符之间',
|
|
},
|
|
number: {
|
|
len: '${label}必须等于${len}',
|
|
min: '${label}最小值为${min}',
|
|
max: '${label}最大值为${max}',
|
|
range: '${label}须在${min}-${max}之间',
|
|
},
|
|
array: {
|
|
len: '须为${len}个${label}',
|
|
min: '最少${min}个${label}',
|
|
max: '最多${max}个${label}',
|
|
range: '${label}数量须在${min}-${max}之间',
|
|
},
|
|
pattern: {
|
|
mismatch: '${label}与模式不匹配${pattern}',
|
|
},
|
|
},
|
|
},
|
|
Image: {
|
|
preview: '预览',
|
|
},
|
|
QRCode: {
|
|
expired: '二维码过期',
|
|
refresh: '点击刷新',
|
|
},
|
|
};
|
|
|
|
export default localeValues;
|