You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
108 lines
3.0 KiB
108 lines
3.0 KiB
3 years ago
|
/* eslint-disable no-template-curly-in-string */
|
||
|
import Pagination from '../vc-pagination/locale/en_GB';
|
||
|
import DatePicker from '../date-picker/locale/en_GB';
|
||
|
import TimePicker from '../time-picker/locale/en_GB';
|
||
|
import Calendar from '../calendar/locale/en_GB';
|
||
|
import type { Locale } from '../locale-provider';
|
||
|
|
||
4 years ago
|
const typeTemplate = '${label} is not a valid ${type}';
|
||
3 years ago
|
|
||
|
const localeValues: Locale = {
|
||
|
locale: 'en-gb',
|
||
5 years ago
|
Pagination,
|
||
|
DatePicker,
|
||
|
TimePicker,
|
||
|
Calendar,
|
||
|
Table: {
|
||
|
filterTitle: 'Filter menu',
|
||
|
filterConfirm: 'OK',
|
||
|
filterReset: 'Reset',
|
||
4 years ago
|
filterEmptyText: 'No filters',
|
||
|
emptyText: 'No data',
|
||
5 years ago
|
selectAll: 'Select current page',
|
||
|
selectInvert: 'Invert current page',
|
||
4 years ago
|
selectionAll: 'Select all data',
|
||
5 years ago
|
sortTitle: 'Sort',
|
||
|
expand: 'Expand row',
|
||
|
collapse: 'Collapse row',
|
||
4 years ago
|
triggerDesc: 'Click to sort descending',
|
||
|
triggerAsc: 'Click to sort ascending',
|
||
|
cancelSort: 'Click to cancel sorting',
|
||
5 years ago
|
},
|
||
|
Modal: {
|
||
|
okText: 'OK',
|
||
|
cancelText: 'Cancel',
|
||
|
justOkText: 'OK',
|
||
|
},
|
||
|
Popconfirm: {
|
||
|
okText: 'OK',
|
||
|
cancelText: 'Cancel',
|
||
|
},
|
||
|
Transfer: {
|
||
|
searchPlaceholder: 'Search here',
|
||
|
itemUnit: 'item',
|
||
|
itemsUnit: 'items',
|
||
|
},
|
||
|
Upload: {
|
||
|
uploading: 'Uploading...',
|
||
|
removeFile: 'Remove file',
|
||
|
uploadError: 'Upload error',
|
||
|
previewFile: 'Preview file',
|
||
|
downloadFile: 'Download file',
|
||
|
},
|
||
|
Empty: {
|
||
3 years ago
|
description: 'No data',
|
||
5 years ago
|
},
|
||
4 years ago
|
Form: {
|
||
|
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}',
|
||
|
},
|
||
|
},
|
||
|
},
|
||
5 years ago
|
};
|
||
3 years ago
|
|
||
|
export default localeValues;
|