mirror of
https://github.com/ant-design/ant-design.git
synced 2025-07-30 19:36:29 +08:00
🌐 adds Hebrew localisations for Form (#24716)
This commit is contained in:
parent
3d62c44325
commit
6cea99be9d
@ -1,9 +1,12 @@
|
|||||||
|
/* eslint-disable no-template-curly-in-string */
|
||||||
import Pagination from 'rc-pagination/lib/locale/he_IL';
|
import Pagination from 'rc-pagination/lib/locale/he_IL';
|
||||||
import DatePicker from '../date-picker/locale/he_IL';
|
import DatePicker from '../date-picker/locale/he_IL';
|
||||||
import TimePicker from '../time-picker/locale/he_IL';
|
import TimePicker from '../time-picker/locale/he_IL';
|
||||||
import Calendar from '../calendar/locale/he_IL';
|
import Calendar from '../calendar/locale/he_IL';
|
||||||
import { Locale } from '../locale-provider';
|
import { Locale } from '../locale-provider';
|
||||||
|
|
||||||
|
const typeTemplate = '${label} הוא לא ${type} תקין';
|
||||||
|
|
||||||
const localeValues: Locale = {
|
const localeValues: Locale = {
|
||||||
locale: 'he',
|
locale: 'he',
|
||||||
Pagination,
|
Pagination,
|
||||||
@ -63,6 +66,55 @@ const localeValues: Locale = {
|
|||||||
PageHeader: {
|
PageHeader: {
|
||||||
back: 'חזרה',
|
back: 'חזרה',
|
||||||
},
|
},
|
||||||
|
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;
|
export default localeValues;
|
||||||
|
Loading…
Reference in New Issue
Block a user