mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 20:49:53 +08:00
832cffcdf9
* refactor: support type update * chore: update clear style * chore: bump color picker * chore: use slider * chore: bump color picker * chore: range slider * chore: layout * chore: useModeColor * chore: simplify * chore: bump color picker * refactor: event * chore: tmp lock check * chore: of it * chore: update ts def * chore: update ts def * chore: remove useless ts * chore: linear * chore: adjust style * chore: rm useless code * chore: fill color * chore: basic linear * chore: support toStr * chore: limit minCount * chore: use cache * chore: drag support: * chore: yes * chore: update demo * chore: useLayoutEffect instead * chore: fix click to add point * chore: add smmoth * chore: support of locale * chore: add locale * chore: fix lint * chore: adjust style * chore: fix lint * chore: fix style * test: fix test case * chore: fix popover * test: fix test case * chore: fix test * test: clean up * chore: fix lint * chore: fix lint * chore: fix lint * test: coverage * test: coverage * test: coverage * test: coverage * test: coverage * test: coverage * chore: fix docs * docs: update demo desc * chore: enhance hover range * fix: delete not working * chore: fix lint * test: coverage * test: coverage * chore: clean up * chore: adjust * chore: highlight * chore: adjust style * chore: fix lint * chore: update demo * chore: memo perf * refactor: up to down colors * test: update snapshot
153 lines
4.0 KiB
TypeScript
153 lines
4.0 KiB
TypeScript
/* eslint-disable no-template-curly-in-string */
|
|
import Pagination from 'rc-pagination/lib/locale/en_US';
|
|
|
|
import type { Locale } from '.';
|
|
import Calendar from '../calendar/locale/en_US';
|
|
import DatePicker from '../date-picker/locale/en_US';
|
|
import TimePicker from '../time-picker/locale/en_US';
|
|
|
|
const typeTemplate = '${label} is not a valid ${type}';
|
|
|
|
const localeValues: Locale = {
|
|
locale: 'en',
|
|
Pagination,
|
|
DatePicker,
|
|
TimePicker,
|
|
Calendar,
|
|
global: {
|
|
placeholder: 'Please select',
|
|
},
|
|
Table: {
|
|
filterTitle: 'Filter menu',
|
|
filterConfirm: 'OK',
|
|
filterReset: 'Reset',
|
|
filterEmptyText: 'No filters',
|
|
filterCheckall: 'Select all items',
|
|
filterSearchPlaceholder: 'Search in filters',
|
|
emptyText: 'No data',
|
|
selectAll: 'Select current page',
|
|
selectInvert: 'Invert current page',
|
|
selectNone: 'Clear all data',
|
|
selectionAll: 'Select all data',
|
|
sortTitle: 'Sort',
|
|
expand: 'Expand row',
|
|
collapse: 'Collapse row',
|
|
triggerDesc: 'Click to sort descending',
|
|
triggerAsc: 'Click to sort ascending',
|
|
cancelSort: 'Click to cancel sorting',
|
|
},
|
|
Tour: {
|
|
Next: 'Next',
|
|
Previous: 'Previous',
|
|
Finish: 'Finish',
|
|
},
|
|
Modal: {
|
|
okText: 'OK',
|
|
cancelText: 'Cancel',
|
|
justOkText: 'OK',
|
|
},
|
|
Popconfirm: {
|
|
okText: 'OK',
|
|
cancelText: 'Cancel',
|
|
},
|
|
Transfer: {
|
|
titles: ['', ''],
|
|
searchPlaceholder: 'Search here',
|
|
itemUnit: 'item',
|
|
itemsUnit: 'items',
|
|
remove: 'Remove',
|
|
selectCurrent: 'Select current page',
|
|
removeCurrent: 'Remove current page',
|
|
selectAll: 'Select all data',
|
|
deselectAll: 'Deselect all data',
|
|
removeAll: 'Remove all data',
|
|
selectInvert: 'Invert current page',
|
|
},
|
|
Upload: {
|
|
uploading: 'Uploading...',
|
|
removeFile: 'Remove file',
|
|
uploadError: 'Upload error',
|
|
previewFile: 'Preview file',
|
|
downloadFile: 'Download file',
|
|
},
|
|
Empty: {
|
|
description: 'No data',
|
|
},
|
|
Icon: {
|
|
icon: 'icon',
|
|
},
|
|
Text: {
|
|
edit: 'Edit',
|
|
copy: 'Copy',
|
|
copied: 'Copied',
|
|
expand: 'Expand',
|
|
collapse: 'Collapse',
|
|
},
|
|
Form: {
|
|
optional: '(optional)',
|
|
defaultValidateMessages: {
|
|
default: 'Field validation error for ${label}',
|
|
required: 'Please enter ${label}',
|
|
enum: '${label} must be one of [${enum}]',
|
|
whitespace: '${label} cannot be a blank character',
|
|
date: {
|
|
format: '${label} date format is invalid',
|
|
parse: '${label} cannot be converted to a date',
|
|
invalid: '${label} is an invalid date',
|
|
},
|
|
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} must be ${len} characters',
|
|
min: '${label} must be at least ${min} characters',
|
|
max: '${label} must be up to ${max} characters',
|
|
range: '${label} must be between ${min}-${max} characters',
|
|
},
|
|
number: {
|
|
len: '${label} must be equal to ${len}',
|
|
min: '${label} must be minimum ${min}',
|
|
max: '${label} must be maximum ${max}',
|
|
range: '${label} must be between ${min}-${max}',
|
|
},
|
|
array: {
|
|
len: 'Must be ${len} ${label}',
|
|
min: 'At least ${min} ${label}',
|
|
max: 'At most ${max} ${label}',
|
|
range: 'The amount of ${label} must be between ${min}-${max}',
|
|
},
|
|
pattern: {
|
|
mismatch: '${label} does not match the pattern ${pattern}',
|
|
},
|
|
},
|
|
},
|
|
Image: {
|
|
preview: 'Preview',
|
|
},
|
|
QRCode: {
|
|
expired: 'QR code expired',
|
|
refresh: 'Refresh',
|
|
scanned: 'Scanned',
|
|
},
|
|
ColorPicker: {
|
|
presetEmpty: 'Empty',
|
|
transparent: 'Transparent',
|
|
singleColor: 'Single',
|
|
gradientColor: 'Gradient',
|
|
},
|
|
};
|
|
|
|
export default localeValues;
|