/* eslint-disable no-template-curly-in-string */ import Pagination from 'rc-pagination/lib/locale/en_US'; import DatePicker from '../date-picker/locale/en_US'; import TimePicker from '../time-picker/locale/en_US'; import Calendar from '../calendar/locale/en_US'; import { Locale } from '../locale-provider'; 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', 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', }, Modal: { okText: 'OK', cancelText: 'Cancel', justOkText: 'OK', }, Transfer: { titles: ['', ''], searchPlaceholder: 'Search here', itemUnit: 'item', itemsUnit: 'items', remove: 'Remove', selectCurrent: 'Select current page', removeCurrent: 'Remove current page', selectAll: 'Select 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', }, PageHeader: { back: 'Back', }, 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', }, Filters: { moreFilters: 'More filters', moreFiltersWithCount: 'More filters (${count})', filter: 'Filter', noFiltersApplied: 'No filters applied', done: 'Done', clearAllFilters: 'Clear all filters', clear: 'Clear', }, ApolloTable: { sortingLabel: 'Sort by', sortPlaceholder: 'Please select sort', sort: 'Sort', selected: 'Selected', selectAll: 'Select all', selectedAll: 'Selected all', item: 'Item', itemEnd: 'Item.', undo: 'Undo', moreActions: 'More actions', leftPin: 'Pin to left', rightPin: 'Pin to right', noPin: 'Unpinned', all: 'All', viewName: 'View name', viewError: 'Name has already been taken', viewSaveHelpText: 'Views are saved as a new tab at the top of this list.', cancelText: 'Cancel', saveViewText: 'Save view', editViewText: 'Edit view', deleteViewText: 'Delete view', deleteHelpText: 'This can’t be undone.', removeText: 'Remove', filterText: 'filter', reset: 'Reset', loading: 'Loading...', moreThan: 'More than', lessThan: 'Less than', }, ContextualSaveBar: { saveText: 'Save', cancelText: 'Cancel', discardText: 'Discard', title: 'Discard all unsaved changes', message: 'If you discard changes, you’ll delete any edits you made since you last saved.', primaryAction: 'Discard changes', secondaryAction: 'Continue editing', unsavedChanges: 'Unsaved changes', leavePageText: 'Leave page', leavePageMessage: 'If you leave this page, any unsaved changes will be lost.', }, TagInput: { errorText: "You've already used", }, PopoverRangePicker: { type: 'Types of', date: 'date', dateTime: 'Date time', range: 'range', custom: 'customize', currentHour: 'Current hour', lastHour: 'Last hour', lastThreeHours: 'Last three hours', Today: 'Nowadays', yesterday: 'yesterday', sevenDaysAgo: 'Last 7 days', thirtyDaysAgo: 'Last 30 days', ninetyDaysAgo: 'Last 90 days', lastMonth: 'Last month', lastYear: 'Last year', thisWeek: 'Week to date', thisMonth: 'Month to date', thisQuarter: 'Quarter to date', thisYear: 'Year to date', compare: 'Compare', lastTerm: 'last term', lastWeek: 'last week', comparePlaceholder: 'Please select a comparison type', cancel: 'Cancel', ok: 'Ok', }, Thumbnail: { title: 'Preview picture', }, Notification: { confirmText: 'Confirm', closeText: 'Close', }, }; export default localeValues;