diff --git a/components/locale/ko_KR.tsx b/components/locale/ko_KR.tsx index 7542b8026293..cdc5879d5c6e 100644 --- a/components/locale/ko_KR.tsx +++ b/components/locale/ko_KR.tsx @@ -1,9 +1,12 @@ +/* eslint-disable no-template-curly-in-string */ import Pagination from 'rc-pagination/lib/locale/ko_KR'; import DatePicker from '../date-picker/locale/ko_KR'; import TimePicker from '../time-picker/locale/ko_KR'; import Calendar from '../calendar/locale/ko_KR'; import { Locale } from '../locale-provider'; +const typeTemplate = '${label} 유효하지 않은 ${type}'; + const localeValues: Locale = { locale: 'ko', Pagination, @@ -41,6 +44,55 @@ const localeValues: Locale = { Empty: { description: '데이터 없음', }, + Form: { + 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} 패턴과 일치하지 않습니다', + }, + }, + }, }; export default localeValues;