mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 14:13:37 +08:00
feat: Add km_KH locale to component (#32853)
* Add km_KH locale to component * Add test and docs * Fix typo * Add test snapshot
This commit is contained in:
parent
bac876a14d
commit
f0c8402d65
3
components/calendar/locale/km_KH.tsx
Normal file
3
components/calendar/locale/km_KH.tsx
Normal file
@ -0,0 +1,3 @@
|
||||
import kmKH from '../../date-picker/locale/km_KH';
|
||||
|
||||
export default kmKH;
|
@ -16341,6 +16341,7 @@ exports[`ConfigProvider components Pagination configProvider 1`] = `
|
||||
class="config-pagination-options"
|
||||
>
|
||||
<div
|
||||
aria-label="Page Size"
|
||||
class="config-select config-pagination-options-size-changer config-select-single config-select-show-arrow"
|
||||
>
|
||||
<div
|
||||
@ -16353,7 +16354,9 @@ exports[`ConfigProvider components Pagination configProvider 1`] = `
|
||||
aria-activedescendant="undefined_list_0"
|
||||
aria-autocomplete="list"
|
||||
aria-controls="undefined_list"
|
||||
aria-expanded="false"
|
||||
aria-haspopup="listbox"
|
||||
aria-label="Page Size"
|
||||
aria-owns="undefined_list"
|
||||
autocomplete="off"
|
||||
class="config-select-selection-search-input"
|
||||
@ -16404,9 +16407,11 @@ exports[`ConfigProvider components Pagination configProvider 1`] = `
|
||||
>
|
||||
Go to
|
||||
<input
|
||||
aria-label="Page"
|
||||
type="text"
|
||||
value=""
|
||||
/>
|
||||
Page
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
@ -16493,6 +16498,7 @@ exports[`ConfigProvider components Pagination configProvider 1`] = `
|
||||
class="config-pagination-options"
|
||||
>
|
||||
<div
|
||||
aria-label="Page Size"
|
||||
class="config-select config-select-sm config-pagination-options-size-changer config-select-single config-select-show-arrow"
|
||||
>
|
||||
<div
|
||||
@ -16505,7 +16511,9 @@ exports[`ConfigProvider components Pagination configProvider 1`] = `
|
||||
aria-activedescendant="undefined_list_0"
|
||||
aria-autocomplete="list"
|
||||
aria-controls="undefined_list"
|
||||
aria-expanded="false"
|
||||
aria-haspopup="listbox"
|
||||
aria-label="Page Size"
|
||||
aria-owns="undefined_list"
|
||||
autocomplete="off"
|
||||
class="config-select-selection-search-input"
|
||||
@ -16556,9 +16564,11 @@ exports[`ConfigProvider components Pagination configProvider 1`] = `
|
||||
>
|
||||
Go to
|
||||
<input
|
||||
aria-label="Page"
|
||||
type="text"
|
||||
value=""
|
||||
/>
|
||||
Page
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
@ -16650,6 +16660,7 @@ exports[`ConfigProvider components Pagination configProvider componentSize large
|
||||
class="config-pagination-options"
|
||||
>
|
||||
<div
|
||||
aria-label="Page Size"
|
||||
class="config-select config-select-lg config-pagination-options-size-changer config-select-single config-select-show-arrow"
|
||||
>
|
||||
<div
|
||||
@ -16662,7 +16673,9 @@ exports[`ConfigProvider components Pagination configProvider componentSize large
|
||||
aria-activedescendant="undefined_list_0"
|
||||
aria-autocomplete="list"
|
||||
aria-controls="undefined_list"
|
||||
aria-expanded="false"
|
||||
aria-haspopup="listbox"
|
||||
aria-label="Page Size"
|
||||
aria-owns="undefined_list"
|
||||
autocomplete="off"
|
||||
class="config-select-selection-search-input"
|
||||
@ -16713,9 +16726,11 @@ exports[`ConfigProvider components Pagination configProvider componentSize large
|
||||
>
|
||||
Go to
|
||||
<input
|
||||
aria-label="Page"
|
||||
type="text"
|
||||
value=""
|
||||
/>
|
||||
Page
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
@ -16802,6 +16817,7 @@ exports[`ConfigProvider components Pagination configProvider componentSize large
|
||||
class="config-pagination-options"
|
||||
>
|
||||
<div
|
||||
aria-label="Page Size"
|
||||
class="config-select config-select-sm config-pagination-options-size-changer config-select-single config-select-show-arrow"
|
||||
>
|
||||
<div
|
||||
@ -16814,7 +16830,9 @@ exports[`ConfigProvider components Pagination configProvider componentSize large
|
||||
aria-activedescendant="undefined_list_0"
|
||||
aria-autocomplete="list"
|
||||
aria-controls="undefined_list"
|
||||
aria-expanded="false"
|
||||
aria-haspopup="listbox"
|
||||
aria-label="Page Size"
|
||||
aria-owns="undefined_list"
|
||||
autocomplete="off"
|
||||
class="config-select-selection-search-input"
|
||||
@ -16865,9 +16883,11 @@ exports[`ConfigProvider components Pagination configProvider componentSize large
|
||||
>
|
||||
Go to
|
||||
<input
|
||||
aria-label="Page"
|
||||
type="text"
|
||||
value=""
|
||||
/>
|
||||
Page
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
@ -16959,6 +16979,7 @@ exports[`ConfigProvider components Pagination configProvider componentSize middl
|
||||
class="config-pagination-options"
|
||||
>
|
||||
<div
|
||||
aria-label="Page Size"
|
||||
class="config-select config-pagination-options-size-changer config-select-single config-select-show-arrow"
|
||||
>
|
||||
<div
|
||||
@ -16971,7 +16992,9 @@ exports[`ConfigProvider components Pagination configProvider componentSize middl
|
||||
aria-activedescendant="undefined_list_0"
|
||||
aria-autocomplete="list"
|
||||
aria-controls="undefined_list"
|
||||
aria-expanded="false"
|
||||
aria-haspopup="listbox"
|
||||
aria-label="Page Size"
|
||||
aria-owns="undefined_list"
|
||||
autocomplete="off"
|
||||
class="config-select-selection-search-input"
|
||||
@ -17022,9 +17045,11 @@ exports[`ConfigProvider components Pagination configProvider componentSize middl
|
||||
>
|
||||
Go to
|
||||
<input
|
||||
aria-label="Page"
|
||||
type="text"
|
||||
value=""
|
||||
/>
|
||||
Page
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
@ -17111,6 +17136,7 @@ exports[`ConfigProvider components Pagination configProvider componentSize middl
|
||||
class="config-pagination-options"
|
||||
>
|
||||
<div
|
||||
aria-label="Page Size"
|
||||
class="config-select config-select-sm config-pagination-options-size-changer config-select-single config-select-show-arrow"
|
||||
>
|
||||
<div
|
||||
@ -17123,7 +17149,9 @@ exports[`ConfigProvider components Pagination configProvider componentSize middl
|
||||
aria-activedescendant="undefined_list_0"
|
||||
aria-autocomplete="list"
|
||||
aria-controls="undefined_list"
|
||||
aria-expanded="false"
|
||||
aria-haspopup="listbox"
|
||||
aria-label="Page Size"
|
||||
aria-owns="undefined_list"
|
||||
autocomplete="off"
|
||||
class="config-select-selection-search-input"
|
||||
@ -17174,9 +17202,11 @@ exports[`ConfigProvider components Pagination configProvider componentSize middl
|
||||
>
|
||||
Go to
|
||||
<input
|
||||
aria-label="Page"
|
||||
type="text"
|
||||
value=""
|
||||
/>
|
||||
Page
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
@ -17268,6 +17298,7 @@ exports[`ConfigProvider components Pagination configProvider virtual and dropdow
|
||||
class="ant-pagination-options"
|
||||
>
|
||||
<div
|
||||
aria-label="Page Size"
|
||||
class="ant-select ant-pagination-options-size-changer ant-select-single ant-select-show-arrow"
|
||||
>
|
||||
<div
|
||||
@ -17280,7 +17311,9 @@ exports[`ConfigProvider components Pagination configProvider virtual and dropdow
|
||||
aria-activedescendant="undefined_list_0"
|
||||
aria-autocomplete="list"
|
||||
aria-controls="undefined_list"
|
||||
aria-expanded="false"
|
||||
aria-haspopup="listbox"
|
||||
aria-label="Page Size"
|
||||
aria-owns="undefined_list"
|
||||
autocomplete="off"
|
||||
class="ant-select-selection-search-input"
|
||||
@ -17331,9 +17364,11 @@ exports[`ConfigProvider components Pagination configProvider virtual and dropdow
|
||||
>
|
||||
Go to
|
||||
<input
|
||||
aria-label="Page"
|
||||
type="text"
|
||||
value=""
|
||||
/>
|
||||
Page
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
@ -17420,6 +17455,7 @@ exports[`ConfigProvider components Pagination configProvider virtual and dropdow
|
||||
class="ant-pagination-options"
|
||||
>
|
||||
<div
|
||||
aria-label="Page Size"
|
||||
class="ant-select ant-select-sm ant-pagination-options-size-changer ant-select-single ant-select-show-arrow"
|
||||
>
|
||||
<div
|
||||
@ -17432,7 +17468,9 @@ exports[`ConfigProvider components Pagination configProvider virtual and dropdow
|
||||
aria-activedescendant="undefined_list_0"
|
||||
aria-autocomplete="list"
|
||||
aria-controls="undefined_list"
|
||||
aria-expanded="false"
|
||||
aria-haspopup="listbox"
|
||||
aria-label="Page Size"
|
||||
aria-owns="undefined_list"
|
||||
autocomplete="off"
|
||||
class="ant-select-selection-search-input"
|
||||
@ -17483,9 +17521,11 @@ exports[`ConfigProvider components Pagination configProvider virtual and dropdow
|
||||
>
|
||||
Go to
|
||||
<input
|
||||
aria-label="Page"
|
||||
type="text"
|
||||
value=""
|
||||
/>
|
||||
Page
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
@ -17577,6 +17617,7 @@ exports[`ConfigProvider components Pagination normal 1`] = `
|
||||
class="ant-pagination-options"
|
||||
>
|
||||
<div
|
||||
aria-label="Page Size"
|
||||
class="ant-select ant-pagination-options-size-changer ant-select-single ant-select-show-arrow"
|
||||
>
|
||||
<div
|
||||
@ -17589,7 +17630,9 @@ exports[`ConfigProvider components Pagination normal 1`] = `
|
||||
aria-activedescendant="undefined_list_0"
|
||||
aria-autocomplete="list"
|
||||
aria-controls="undefined_list"
|
||||
aria-expanded="false"
|
||||
aria-haspopup="listbox"
|
||||
aria-label="Page Size"
|
||||
aria-owns="undefined_list"
|
||||
autocomplete="off"
|
||||
class="ant-select-selection-search-input"
|
||||
@ -17640,9 +17683,11 @@ exports[`ConfigProvider components Pagination normal 1`] = `
|
||||
>
|
||||
Go to
|
||||
<input
|
||||
aria-label="Page"
|
||||
type="text"
|
||||
value=""
|
||||
/>
|
||||
Page
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
@ -17729,6 +17774,7 @@ exports[`ConfigProvider components Pagination normal 1`] = `
|
||||
class="ant-pagination-options"
|
||||
>
|
||||
<div
|
||||
aria-label="Page Size"
|
||||
class="ant-select ant-select-sm ant-pagination-options-size-changer ant-select-single ant-select-show-arrow"
|
||||
>
|
||||
<div
|
||||
@ -17741,7 +17787,9 @@ exports[`ConfigProvider components Pagination normal 1`] = `
|
||||
aria-activedescendant="undefined_list_0"
|
||||
aria-autocomplete="list"
|
||||
aria-controls="undefined_list"
|
||||
aria-expanded="false"
|
||||
aria-haspopup="listbox"
|
||||
aria-label="Page Size"
|
||||
aria-owns="undefined_list"
|
||||
autocomplete="off"
|
||||
class="ant-select-selection-search-input"
|
||||
@ -17792,9 +17840,11 @@ exports[`ConfigProvider components Pagination normal 1`] = `
|
||||
>
|
||||
Go to
|
||||
<input
|
||||
aria-label="Page"
|
||||
type="text"
|
||||
value=""
|
||||
/>
|
||||
Page
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
@ -17886,6 +17936,7 @@ exports[`ConfigProvider components Pagination prefixCls 1`] = `
|
||||
class="prefix-Pagination-options"
|
||||
>
|
||||
<div
|
||||
aria-label="Page Size"
|
||||
class="ant-select prefix-Pagination-options-size-changer ant-select-single ant-select-show-arrow"
|
||||
>
|
||||
<div
|
||||
@ -17898,7 +17949,9 @@ exports[`ConfigProvider components Pagination prefixCls 1`] = `
|
||||
aria-activedescendant="undefined_list_0"
|
||||
aria-autocomplete="list"
|
||||
aria-controls="undefined_list"
|
||||
aria-expanded="false"
|
||||
aria-haspopup="listbox"
|
||||
aria-label="Page Size"
|
||||
aria-owns="undefined_list"
|
||||
autocomplete="off"
|
||||
class="ant-select-selection-search-input"
|
||||
@ -17949,9 +18002,11 @@ exports[`ConfigProvider components Pagination prefixCls 1`] = `
|
||||
>
|
||||
Go to
|
||||
<input
|
||||
aria-label="Page"
|
||||
type="text"
|
||||
value=""
|
||||
/>
|
||||
Page
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
@ -18038,6 +18093,7 @@ exports[`ConfigProvider components Pagination prefixCls 1`] = `
|
||||
class="prefix-Pagination-options"
|
||||
>
|
||||
<div
|
||||
aria-label="Page Size"
|
||||
class="ant-select ant-select-sm prefix-Pagination-options-size-changer ant-select-single ant-select-show-arrow"
|
||||
>
|
||||
<div
|
||||
@ -18050,7 +18106,9 @@ exports[`ConfigProvider components Pagination prefixCls 1`] = `
|
||||
aria-activedescendant="undefined_list_0"
|
||||
aria-autocomplete="list"
|
||||
aria-controls="undefined_list"
|
||||
aria-expanded="false"
|
||||
aria-haspopup="listbox"
|
||||
aria-label="Page Size"
|
||||
aria-owns="undefined_list"
|
||||
autocomplete="off"
|
||||
class="ant-select-selection-search-input"
|
||||
@ -18101,9 +18159,11 @@ exports[`ConfigProvider components Pagination prefixCls 1`] = `
|
||||
>
|
||||
Go to
|
||||
<input
|
||||
aria-label="Page"
|
||||
type="text"
|
||||
value=""
|
||||
/>
|
||||
Page
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
|
27
components/date-picker/locale/km_KH.tsx
Normal file
27
components/date-picker/locale/km_KH.tsx
Normal file
@ -0,0 +1,27 @@
|
||||
import CalendarLocale from 'rc-picker/lib/locale/km_KH';
|
||||
import TimePickerLocale from '../../time-picker/locale/km_KH';
|
||||
import { PickerLocale } from '../generatePicker';
|
||||
|
||||
// Merge into a locale object
|
||||
const locale: PickerLocale = {
|
||||
lang: {
|
||||
placeholder: 'រើសថ្ងៃ',
|
||||
yearPlaceholder: 'រើសឆ្នាំ',
|
||||
quarterPlaceholder: 'រើសត្រីមាស',
|
||||
monthPlaceholder: 'រើសខែ',
|
||||
weekPlaceholder: 'រើសសប្តាហ៍',
|
||||
rangePlaceholder: ['ថ្ងៃចាប់ផ្ដើម', 'ថ្ងៃបញ្ចប់'],
|
||||
rangeYearPlaceholder: ['ឆ្នាំចាប់ផ្ដើម', 'ឆ្នាំបញ្ចប់'],
|
||||
rangeMonthPlaceholder: ['ខែចាប់ផ្ដើម', 'ខែបញ្ចប់'],
|
||||
rangeWeekPlaceholder: ['សប្ដាហ៍ចាប់ផ្ដើម', 'សប្ដាហ៍បញ្ចប់'],
|
||||
...CalendarLocale,
|
||||
},
|
||||
timePickerLocale: {
|
||||
...TimePickerLocale,
|
||||
},
|
||||
};
|
||||
|
||||
// All settings at:
|
||||
// https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json
|
||||
|
||||
export default locale;
|
@ -208,6 +208,7 @@ exports[`List.pagination should change page size work 1`] = `
|
||||
class="ant-pagination-options"
|
||||
>
|
||||
<div
|
||||
aria-label="Page Size"
|
||||
class="ant-select ant-pagination-options-size-changer ant-select-single ant-select-show-arrow"
|
||||
>
|
||||
<div
|
||||
@ -220,7 +221,9 @@ exports[`List.pagination should change page size work 1`] = `
|
||||
aria-activedescendant="rc_select_TEST_OR_SSR_list_0"
|
||||
aria-autocomplete="list"
|
||||
aria-controls="rc_select_TEST_OR_SSR_list"
|
||||
aria-expanded="false"
|
||||
aria-haspopup="listbox"
|
||||
aria-label="Page Size"
|
||||
aria-owns="rc_select_TEST_OR_SSR_list"
|
||||
autocomplete="off"
|
||||
class="ant-select-selection-search-input"
|
||||
@ -355,6 +358,7 @@ exports[`List.pagination should change page size work 2`] = `
|
||||
class="ant-pagination-options"
|
||||
>
|
||||
<div
|
||||
aria-label="Page Size"
|
||||
class="ant-select ant-pagination-options-size-changer ant-select-single ant-select-show-arrow ant-select-open"
|
||||
>
|
||||
<div
|
||||
@ -369,6 +373,7 @@ exports[`List.pagination should change page size work 2`] = `
|
||||
aria-controls="rc_select_TEST_OR_SSR_list"
|
||||
aria-expanded="true"
|
||||
aria-haspopup="listbox"
|
||||
aria-label="Page Size"
|
||||
aria-owns="rc_select_TEST_OR_SSR_list"
|
||||
autocomplete="off"
|
||||
class="ant-select-selection-search-input"
|
||||
@ -645,6 +650,7 @@ exports[`List.pagination should default work 1`] = `
|
||||
class="ant-pagination-options"
|
||||
>
|
||||
<div
|
||||
aria-label="Page Size"
|
||||
class="ant-select ant-pagination-options-size-changer ant-select-single ant-select-show-arrow"
|
||||
>
|
||||
<div
|
||||
@ -657,7 +663,9 @@ exports[`List.pagination should default work 1`] = `
|
||||
aria-activedescendant="rc_select_TEST_OR_SSR_list_0"
|
||||
aria-autocomplete="list"
|
||||
aria-controls="rc_select_TEST_OR_SSR_list"
|
||||
aria-expanded="false"
|
||||
aria-haspopup="listbox"
|
||||
aria-label="Page Size"
|
||||
aria-owns="rc_select_TEST_OR_SSR_list"
|
||||
autocomplete="off"
|
||||
class="ant-select-selection-search-input"
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -50,6 +50,7 @@ import kaGE from '../ka_GE';
|
||||
import kkKZ from '../kk_KZ';
|
||||
import knIN from '../kn_IN';
|
||||
import koKR from '../ko_KR';
|
||||
import kmKH from '../km_KH';
|
||||
import kmrIQ from '../kmr_IQ';
|
||||
import kuIQ from '../ku_IQ';
|
||||
import lvLV from '../lv_LV';
|
||||
@ -115,6 +116,7 @@ const locales = [
|
||||
kkKZ,
|
||||
knIN,
|
||||
koKR,
|
||||
kmKH,
|
||||
kmrIQ,
|
||||
kuIQ,
|
||||
ltLT,
|
||||
|
3
components/locale-provider/km_KH.tsx
Normal file
3
components/locale-provider/km_KH.tsx
Normal file
@ -0,0 +1,3 @@
|
||||
import locale from '../locale/km_KH';
|
||||
|
||||
export default locale;
|
108
components/locale/km_KH.tsx
Normal file
108
components/locale/km_KH.tsx
Normal file
@ -0,0 +1,108 @@
|
||||
/* eslint-disable no-template-curly-in-string */
|
||||
import Pagination from 'rc-pagination/lib/locale/km_KH';
|
||||
import DatePicker from '../date-picker/locale/km_KH';
|
||||
import TimePicker from '../time-picker/locale/km_KH';
|
||||
import Calendar from '../calendar/locale/km_KH';
|
||||
import { Locale } from '../locale-provider';
|
||||
|
||||
const typeTemplate = '${label} is not a valid ${type}';
|
||||
|
||||
const localeValues: Locale = {
|
||||
locale: 'km',
|
||||
Pagination,
|
||||
DatePicker,
|
||||
TimePicker,
|
||||
Calendar,
|
||||
Table: {
|
||||
filterTitle: 'បញ្ចីតម្រៀប',
|
||||
filterConfirm: 'យល់ព្រម',
|
||||
filterReset: 'ត្រឡប់ដើម',
|
||||
filterEmptyText: 'គ្មានបញ្ចីតម្រៀប',
|
||||
emptyText: 'គ្មានទិន្នន័យ',
|
||||
selectAll: 'រើសក្នុងទំព័រនេះ',
|
||||
selectInvert: 'បញ្ច្រាសក្នុងទំព័រនេះ',
|
||||
selectNone: 'លុបចេញទាំងអស់',
|
||||
selectionAll: 'រើសយកទាំងអស់',
|
||||
sortTitle: 'តម្រៀប',
|
||||
expand: 'ពន្លាត',
|
||||
collapse: 'បិតបាំង',
|
||||
triggerDesc: 'ចុចដើម្បីរៀបតាំលំដាប់ធំ',
|
||||
triggerAsc: 'ចុចដើម្បីរៀបតាំលំដាប់តូច',
|
||||
cancelSort: 'ចុចដើម្បីបោះបង់',
|
||||
},
|
||||
Modal: {
|
||||
okText: 'យល់ព្រម',
|
||||
cancelText: 'យល់ព្រម',
|
||||
justOkText: 'យល់ព្រម',
|
||||
},
|
||||
Popconfirm: {
|
||||
okText: 'យល់ព្រម',
|
||||
cancelText: 'យល់ព្រម',
|
||||
},
|
||||
Transfer: {
|
||||
searchPlaceholder: 'ស្វែងរកនៅទីនេះ',
|
||||
itemUnit: '',
|
||||
itemsUnit: 'items',
|
||||
},
|
||||
Upload: {
|
||||
uploading: 'កំពុងបញ្ចូលឡើង...',
|
||||
removeFile: 'លុបឯកសារ',
|
||||
uploadError: 'បញ្ចូលមិនជោកជ័យ',
|
||||
previewFile: 'មើលឯកសារ',
|
||||
downloadFile: 'ទាញយកឯកសារ',
|
||||
},
|
||||
Empty: {
|
||||
description: 'គ្មានទិន្នន័យ',
|
||||
},
|
||||
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}',
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export default localeValues;
|
@ -182,6 +182,7 @@ exports[`renders ./components/pagination/demo/all.md correctly 1`] = `
|
||||
class="ant-pagination-options"
|
||||
>
|
||||
<div
|
||||
aria-label="Page Size"
|
||||
class="ant-select ant-pagination-options-size-changer ant-select-single ant-select-show-arrow"
|
||||
>
|
||||
<div
|
||||
@ -194,7 +195,9 @@ exports[`renders ./components/pagination/demo/all.md correctly 1`] = `
|
||||
aria-activedescendant="undefined_list_0"
|
||||
aria-autocomplete="list"
|
||||
aria-controls="undefined_list"
|
||||
aria-expanded="false"
|
||||
aria-haspopup="listbox"
|
||||
aria-label="Page Size"
|
||||
aria-owns="undefined_list"
|
||||
autocomplete="off"
|
||||
class="ant-select-selection-search-input"
|
||||
@ -245,9 +248,11 @@ exports[`renders ./components/pagination/demo/all.md correctly 1`] = `
|
||||
>
|
||||
Go to
|
||||
<input
|
||||
aria-label="Page"
|
||||
type="text"
|
||||
value=""
|
||||
/>
|
||||
Page
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
@ -558,6 +563,7 @@ Array [
|
||||
class="ant-pagination-options"
|
||||
>
|
||||
<div
|
||||
aria-label="Page Size"
|
||||
class="ant-select ant-pagination-options-size-changer ant-select-single ant-select-show-arrow"
|
||||
>
|
||||
<div
|
||||
@ -570,7 +576,9 @@ Array [
|
||||
aria-activedescendant="undefined_list_0"
|
||||
aria-autocomplete="list"
|
||||
aria-controls="undefined_list"
|
||||
aria-expanded="false"
|
||||
aria-haspopup="listbox"
|
||||
aria-label="Page Size"
|
||||
aria-owns="undefined_list"
|
||||
autocomplete="off"
|
||||
class="ant-select-selection-search-input"
|
||||
@ -795,6 +803,7 @@ Array [
|
||||
class="ant-pagination-options"
|
||||
>
|
||||
<div
|
||||
aria-label="Page Size"
|
||||
class="ant-select ant-pagination-options-size-changer ant-select-single ant-select-show-arrow ant-select-disabled"
|
||||
>
|
||||
<div
|
||||
@ -809,6 +818,7 @@ Array [
|
||||
aria-controls="undefined_list"
|
||||
aria-expanded="false"
|
||||
aria-haspopup="listbox"
|
||||
aria-label="Page Size"
|
||||
aria-owns="undefined_list"
|
||||
autocomplete="off"
|
||||
class="ant-select-selection-search-input"
|
||||
@ -1121,6 +1131,7 @@ exports[`renders ./components/pagination/demo/itemRender.md correctly 1`] = `
|
||||
class="ant-pagination-options"
|
||||
>
|
||||
<div
|
||||
aria-label="Page Size"
|
||||
class="ant-select ant-pagination-options-size-changer ant-select-single ant-select-show-arrow"
|
||||
>
|
||||
<div
|
||||
@ -1133,7 +1144,9 @@ exports[`renders ./components/pagination/demo/itemRender.md correctly 1`] = `
|
||||
aria-activedescendant="undefined_list_0"
|
||||
aria-autocomplete="list"
|
||||
aria-controls="undefined_list"
|
||||
aria-expanded="false"
|
||||
aria-haspopup="listbox"
|
||||
aria-label="Page Size"
|
||||
aria-owns="undefined_list"
|
||||
autocomplete="off"
|
||||
class="ant-select-selection-search-input"
|
||||
@ -1361,6 +1374,7 @@ Array [
|
||||
class="ant-pagination-options"
|
||||
>
|
||||
<div
|
||||
aria-label="Page Size"
|
||||
class="ant-select ant-pagination-options-size-changer ant-select-single ant-select-show-arrow"
|
||||
>
|
||||
<div
|
||||
@ -1373,7 +1387,9 @@ Array [
|
||||
aria-activedescendant="undefined_list_0"
|
||||
aria-autocomplete="list"
|
||||
aria-controls="undefined_list"
|
||||
aria-expanded="false"
|
||||
aria-haspopup="listbox"
|
||||
aria-label="Page Size"
|
||||
aria-owns="undefined_list"
|
||||
autocomplete="off"
|
||||
class="ant-select-selection-search-input"
|
||||
@ -1424,9 +1440,11 @@ Array [
|
||||
>
|
||||
Go to
|
||||
<input
|
||||
aria-label="Page"
|
||||
type="text"
|
||||
value=""
|
||||
/>
|
||||
Page
|
||||
</div>
|
||||
</li>
|
||||
</ul>,
|
||||
@ -1607,6 +1625,7 @@ Array [
|
||||
class="ant-pagination-options"
|
||||
>
|
||||
<div
|
||||
aria-label="Page Size"
|
||||
class="ant-select ant-pagination-options-size-changer ant-select-single ant-select-show-arrow ant-select-disabled"
|
||||
>
|
||||
<div
|
||||
@ -1621,6 +1640,7 @@ Array [
|
||||
aria-controls="undefined_list"
|
||||
aria-expanded="false"
|
||||
aria-haspopup="listbox"
|
||||
aria-label="Page Size"
|
||||
aria-owns="undefined_list"
|
||||
autocomplete="off"
|
||||
class="ant-select-selection-search-input"
|
||||
@ -1672,10 +1692,12 @@ Array [
|
||||
>
|
||||
Go to
|
||||
<input
|
||||
aria-label="Page"
|
||||
disabled=""
|
||||
type="text"
|
||||
value=""
|
||||
/>
|
||||
Page
|
||||
</div>
|
||||
</li>
|
||||
</ul>,
|
||||
@ -1935,6 +1957,7 @@ Array [
|
||||
class="ant-pagination-options"
|
||||
>
|
||||
<div
|
||||
aria-label="Page Size"
|
||||
class="ant-select ant-select-sm ant-pagination-options-size-changer ant-select-single ant-select-show-arrow"
|
||||
>
|
||||
<div
|
||||
@ -1947,7 +1970,9 @@ Array [
|
||||
aria-activedescendant="undefined_list_0"
|
||||
aria-autocomplete="list"
|
||||
aria-controls="undefined_list"
|
||||
aria-expanded="false"
|
||||
aria-haspopup="listbox"
|
||||
aria-label="Page Size"
|
||||
aria-owns="undefined_list"
|
||||
autocomplete="off"
|
||||
class="ant-select-selection-search-input"
|
||||
@ -1998,9 +2023,11 @@ Array [
|
||||
>
|
||||
Go to
|
||||
<input
|
||||
aria-label="Page"
|
||||
type="text"
|
||||
value=""
|
||||
/>
|
||||
Page
|
||||
</div>
|
||||
</li>
|
||||
</ul>,
|
||||
@ -2265,6 +2292,7 @@ Array [
|
||||
class="ant-pagination-options"
|
||||
>
|
||||
<div
|
||||
aria-label="Page Size"
|
||||
class="ant-select ant-select-sm ant-pagination-options-size-changer ant-select-single ant-select-show-arrow ant-select-disabled"
|
||||
>
|
||||
<div
|
||||
@ -2279,6 +2307,7 @@ Array [
|
||||
aria-controls="undefined_list"
|
||||
aria-expanded="false"
|
||||
aria-haspopup="listbox"
|
||||
aria-label="Page Size"
|
||||
aria-owns="undefined_list"
|
||||
autocomplete="off"
|
||||
class="ant-select-selection-search-input"
|
||||
@ -2330,10 +2359,12 @@ Array [
|
||||
>
|
||||
Go to
|
||||
<input
|
||||
aria-label="Page"
|
||||
disabled=""
|
||||
type="text"
|
||||
value=""
|
||||
/>
|
||||
Page
|
||||
</div>
|
||||
</li>
|
||||
</ul>,
|
||||
@ -2566,6 +2597,7 @@ exports[`renders ./components/pagination/demo/more.md correctly 1`] = `
|
||||
class="ant-pagination-options"
|
||||
>
|
||||
<div
|
||||
aria-label="Page Size"
|
||||
class="ant-select ant-pagination-options-size-changer ant-select-single ant-select-show-arrow"
|
||||
>
|
||||
<div
|
||||
@ -2578,7 +2610,9 @@ exports[`renders ./components/pagination/demo/more.md correctly 1`] = `
|
||||
aria-activedescendant="undefined_list_0"
|
||||
aria-autocomplete="list"
|
||||
aria-controls="undefined_list"
|
||||
aria-expanded="false"
|
||||
aria-haspopup="listbox"
|
||||
aria-label="Page Size"
|
||||
aria-owns="undefined_list"
|
||||
autocomplete="off"
|
||||
class="ant-select-selection-search-input"
|
||||
@ -2937,6 +2971,7 @@ Array [
|
||||
class="ant-pagination-options"
|
||||
>
|
||||
<div
|
||||
aria-label="Page Size"
|
||||
class="ant-select ant-pagination-options-size-changer ant-select-single ant-select-show-arrow"
|
||||
>
|
||||
<div
|
||||
@ -2949,7 +2984,9 @@ Array [
|
||||
aria-activedescendant="undefined_list_0"
|
||||
aria-autocomplete="list"
|
||||
aria-controls="undefined_list"
|
||||
aria-expanded="false"
|
||||
aria-haspopup="listbox"
|
||||
aria-label="Page Size"
|
||||
aria-owns="undefined_list"
|
||||
autocomplete="off"
|
||||
class="ant-select-selection-search-input"
|
||||
@ -3130,6 +3167,7 @@ Array [
|
||||
class="ant-pagination-options"
|
||||
>
|
||||
<div
|
||||
aria-label="Page Size"
|
||||
class="ant-select ant-pagination-options-size-changer ant-select-single ant-select-show-arrow"
|
||||
>
|
||||
<div
|
||||
@ -3142,7 +3180,9 @@ Array [
|
||||
aria-activedescendant="undefined_list_0"
|
||||
aria-autocomplete="list"
|
||||
aria-controls="undefined_list"
|
||||
aria-expanded="false"
|
||||
aria-haspopup="listbox"
|
||||
aria-label="Page Size"
|
||||
aria-owns="undefined_list"
|
||||
autocomplete="off"
|
||||
class="ant-select-selection-search-input"
|
||||
|
@ -4643,6 +4643,7 @@ exports[`renders ./components/table/demo/edit-row.md correctly 1`] = `
|
||||
class="ant-pagination-options"
|
||||
>
|
||||
<div
|
||||
aria-label="Page Size"
|
||||
class="ant-select ant-pagination-options-size-changer ant-select-single ant-select-show-arrow"
|
||||
>
|
||||
<div
|
||||
@ -4655,7 +4656,9 @@ exports[`renders ./components/table/demo/edit-row.md correctly 1`] = `
|
||||
aria-activedescendant="undefined_list_0"
|
||||
aria-autocomplete="list"
|
||||
aria-controls="undefined_list"
|
||||
aria-expanded="false"
|
||||
aria-haspopup="listbox"
|
||||
aria-label="Page Size"
|
||||
aria-owns="undefined_list"
|
||||
autocomplete="off"
|
||||
class="ant-select-selection-search-input"
|
||||
@ -7433,6 +7436,7 @@ exports[`renders ./components/table/demo/fixed-columns-header.md correctly 1`] =
|
||||
class="ant-pagination-options"
|
||||
>
|
||||
<div
|
||||
aria-label="Page Size"
|
||||
class="ant-select ant-pagination-options-size-changer ant-select-single ant-select-show-arrow"
|
||||
>
|
||||
<div
|
||||
@ -7445,7 +7449,9 @@ exports[`renders ./components/table/demo/fixed-columns-header.md correctly 1`] =
|
||||
aria-activedescendant="undefined_list_0"
|
||||
aria-autocomplete="list"
|
||||
aria-controls="undefined_list"
|
||||
aria-expanded="false"
|
||||
aria-haspopup="listbox"
|
||||
aria-label="Page Size"
|
||||
aria-owns="undefined_list"
|
||||
autocomplete="off"
|
||||
class="ant-select-selection-search-input"
|
||||
@ -8695,6 +8701,7 @@ exports[`renders ./components/table/demo/fixed-header.md correctly 1`] = `
|
||||
class="ant-pagination-options"
|
||||
>
|
||||
<div
|
||||
aria-label="Page Size"
|
||||
class="ant-select ant-pagination-options-size-changer ant-select-single ant-select-show-arrow"
|
||||
>
|
||||
<div
|
||||
@ -8707,7 +8714,9 @@ exports[`renders ./components/table/demo/fixed-header.md correctly 1`] = `
|
||||
aria-activedescendant="undefined_list_0"
|
||||
aria-autocomplete="list"
|
||||
aria-controls="undefined_list"
|
||||
aria-expanded="false"
|
||||
aria-haspopup="listbox"
|
||||
aria-label="Page Size"
|
||||
aria-owns="undefined_list"
|
||||
autocomplete="off"
|
||||
class="ant-select-selection-search-input"
|
||||
@ -9720,6 +9729,7 @@ exports[`renders ./components/table/demo/grouping-columns.md correctly 1`] = `
|
||||
class="ant-pagination-options"
|
||||
>
|
||||
<div
|
||||
aria-label="Page Size"
|
||||
class="ant-select ant-select-sm ant-pagination-options-size-changer ant-select-single ant-select-show-arrow"
|
||||
>
|
||||
<div
|
||||
@ -9732,7 +9742,9 @@ exports[`renders ./components/table/demo/grouping-columns.md correctly 1`] = `
|
||||
aria-activedescendant="undefined_list_0"
|
||||
aria-autocomplete="list"
|
||||
aria-controls="undefined_list"
|
||||
aria-expanded="false"
|
||||
aria-haspopup="listbox"
|
||||
aria-label="Page Size"
|
||||
aria-owns="undefined_list"
|
||||
autocomplete="off"
|
||||
class="ant-select-selection-search-input"
|
||||
@ -11386,6 +11398,7 @@ exports[`renders ./components/table/demo/narrow.md correctly 1`] = `
|
||||
class="ant-pagination-options"
|
||||
>
|
||||
<div
|
||||
aria-label="Page Size"
|
||||
class="ant-select ant-select-sm ant-pagination-options-size-changer ant-select-single ant-select-show-arrow"
|
||||
>
|
||||
<div
|
||||
@ -11398,7 +11411,9 @@ exports[`renders ./components/table/demo/narrow.md correctly 1`] = `
|
||||
aria-activedescendant="undefined_list_0"
|
||||
aria-autocomplete="list"
|
||||
aria-controls="undefined_list"
|
||||
aria-expanded="false"
|
||||
aria-haspopup="listbox"
|
||||
aria-label="Page Size"
|
||||
aria-owns="undefined_list"
|
||||
autocomplete="off"
|
||||
class="ant-select-selection-search-input"
|
||||
@ -17260,6 +17275,7 @@ exports[`renders ./components/table/demo/sticky.md correctly 1`] = `
|
||||
class="ant-pagination-options"
|
||||
>
|
||||
<div
|
||||
aria-label="Page Size"
|
||||
class="ant-select ant-pagination-options-size-changer ant-select-single ant-select-show-arrow"
|
||||
>
|
||||
<div
|
||||
@ -17272,7 +17288,9 @@ exports[`renders ./components/table/demo/sticky.md correctly 1`] = `
|
||||
aria-activedescendant="undefined_list_0"
|
||||
aria-autocomplete="list"
|
||||
aria-controls="undefined_list"
|
||||
aria-expanded="false"
|
||||
aria-haspopup="listbox"
|
||||
aria-label="Page Size"
|
||||
aria-owns="undefined_list"
|
||||
autocomplete="off"
|
||||
class="ant-select-selection-search-input"
|
||||
|
8
components/time-picker/locale/km_KH.tsx
Normal file
8
components/time-picker/locale/km_KH.tsx
Normal file
@ -0,0 +1,8 @@
|
||||
import { TimePickerLocale } from '../index';
|
||||
|
||||
const locale: TimePickerLocale = {
|
||||
placeholder: 'រើសម៉ោង',
|
||||
rangePlaceholder: ['ម៉ោងចប់ផ្ដើម', 'ម៉ោងបញ្ចប់'],
|
||||
};
|
||||
|
||||
export default locale;
|
@ -64,6 +64,7 @@ The following languages are currently supported:
|
||||
| Kurdish (Kurmanji) | kmr_IQ |
|
||||
| Kannada | kn_IN |
|
||||
| Kazakh | kk_KZ |
|
||||
| Khmer | km_KH |
|
||||
| Korean | ko_KR |
|
||||
| Lithuanian | lt_LT |
|
||||
| Latvian | lv_LV |
|
||||
|
@ -57,7 +57,8 @@ return (
|
||||
| 意大利语 | it_IT |
|
||||
| 冰岛语 | is_IS |
|
||||
| 日语 | ja_JP |
|
||||
| 格鲁吉亚语 | ka_GE |
|
||||
| 格鲁吉亚语 | ka_GE |
|
||||
| 高棉语 | km_KH |
|
||||
| 北库尔德语 | kmr_IQ |
|
||||
| 卡纳达语 | kn_IN |
|
||||
| 哈萨克语 | kk_KZ |
|
||||
|
Loading…
Reference in New Issue
Block a user