mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-11 11:32:52 +08:00
Added Irish(ga_IE) locale (#24609)
🆙 upgrade rc-pagination and rc-picker 🇮🇪 docs and test case of Irish locale Co-authored-by: AbhijeetGaware <56472463+AbhijeetGaware@users.noreply.github.com>
This commit is contained in:
parent
162b6979af
commit
9d4d6f5402
3
components/calendar/locale/ga_IE.tsx
Normal file
3
components/calendar/locale/ga_IE.tsx
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
import ga_IE from '../../date-picker/locale/ga_IE';
|
||||||
|
|
||||||
|
export default ga_IE;
|
27
components/date-picker/locale/ga_IE.tsx
Normal file
27
components/date-picker/locale/ga_IE.tsx
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
import CalendarLocale from 'rc-picker/lib/locale/ga_IE';
|
||||||
|
import TimePickerLocale from '../../time-picker/locale/ga_IE';
|
||||||
|
import { PickerLocale } from '../generatePicker';
|
||||||
|
|
||||||
|
// Merge into a locale object
|
||||||
|
const locale: PickerLocale = {
|
||||||
|
lang: {
|
||||||
|
placeholder: 'Roghnaigh dáta',
|
||||||
|
yearPlaceholder: 'Roghnaigh bliain',
|
||||||
|
quarterPlaceholder: 'Roghnaigh ráithe',
|
||||||
|
monthPlaceholder: 'Roghnaigh mí',
|
||||||
|
weekPlaceholder: 'Roghnaigh seachtain',
|
||||||
|
rangePlaceholder: ['Dáta tosaigh', 'Dáta deiridh'],
|
||||||
|
rangeYearPlaceholder: ['Tús na bliana', 'Deireadh na bliana'],
|
||||||
|
rangeMonthPlaceholder: ['Tosaigh mhí', 'Deireadh mhí'],
|
||||||
|
rangeWeekPlaceholder: ['Tosaigh an tseachtain', 'Deireadh na seachtaine'],
|
||||||
|
...CalendarLocale,
|
||||||
|
},
|
||||||
|
timePickerLocale: {
|
||||||
|
...TimePickerLocale,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
// All settings at:
|
||||||
|
// https://github.com/ant-design/ant-design/blob/master/components/date-picker/locale/example.json
|
||||||
|
|
||||||
|
export default locale;
|
File diff suppressed because it is too large
Load Diff
@ -32,6 +32,7 @@ import faIR from '../fa_IR';
|
|||||||
import fiFI from '../fi_FI';
|
import fiFI from '../fi_FI';
|
||||||
import frBE from '../fr_BE';
|
import frBE from '../fr_BE';
|
||||||
import frFR from '../fr_FR';
|
import frFR from '../fr_FR';
|
||||||
|
import gaIE from '../ga_IE';
|
||||||
import heIL from '../he_IL';
|
import heIL from '../he_IL';
|
||||||
import hiIN from '../hi_IN';
|
import hiIN from '../hi_IN';
|
||||||
import hrHR from '../hr_HR';
|
import hrHR from '../hr_HR';
|
||||||
@ -86,6 +87,7 @@ const locales = [
|
|||||||
fiFI,
|
fiFI,
|
||||||
frBE,
|
frBE,
|
||||||
frFR,
|
frFR,
|
||||||
|
gaIE,
|
||||||
heIL,
|
heIL,
|
||||||
hiIN,
|
hiIN,
|
||||||
hrHR,
|
hrHR,
|
||||||
|
3
components/locale-provider/ga_IE.tsx
Normal file
3
components/locale-provider/ga_IE.tsx
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
import locale from '../locale/ga_IE';
|
||||||
|
|
||||||
|
export default locale;
|
127
components/locale/ga_IE.tsx
Normal file
127
components/locale/ga_IE.tsx
Normal file
@ -0,0 +1,127 @@
|
|||||||
|
/* eslint-disable no-template-curly-in-string */
|
||||||
|
import Pagination from 'rc-pagination/lib/locale/ga_IE';
|
||||||
|
import DatePicker from '../date-picker/locale/ga_IE';
|
||||||
|
import TimePicker from '../time-picker/locale/ga_IE';
|
||||||
|
import Calendar from '../calendar/locale/ga_IE';
|
||||||
|
import { Locale } from '../locale-provider';
|
||||||
|
|
||||||
|
const typeTemplate = '${label} is not a valid ${type}';
|
||||||
|
|
||||||
|
const localeValues: Locale = {
|
||||||
|
locale: 'ga',
|
||||||
|
Pagination,
|
||||||
|
DatePicker,
|
||||||
|
TimePicker,
|
||||||
|
Calendar,
|
||||||
|
global: {
|
||||||
|
placeholder: 'Please select',
|
||||||
|
},
|
||||||
|
Table: {
|
||||||
|
filterTitle: 'Filter menu',
|
||||||
|
filterConfirm: 'OK',
|
||||||
|
filterReset: 'Reset',
|
||||||
|
selectAll: 'Select current page',
|
||||||
|
selectInvert: 'Invert current page',
|
||||||
|
selectionAll: 'Select all data',
|
||||||
|
sortTitle: 'Sort',
|
||||||
|
expand: 'Expand row',
|
||||||
|
collapse: 'Collapse row',
|
||||||
|
triggerDesc: 'Click sort by descend',
|
||||||
|
triggerAsc: 'Click sort by ascend',
|
||||||
|
cancelSort: 'Click to cancel sort',
|
||||||
|
},
|
||||||
|
Modal: {
|
||||||
|
okText: 'OK',
|
||||||
|
cancelText: 'Cancel',
|
||||||
|
justOkText: 'OK',
|
||||||
|
},
|
||||||
|
Popconfirm: {
|
||||||
|
okText: 'OK',
|
||||||
|
cancelText: 'Cancel',
|
||||||
|
},
|
||||||
|
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: {
|
||||||
|
defaultValidateMessages: {
|
||||||
|
default: 'Field validation error ${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} at least ${min} characters',
|
||||||
|
max: '${label} up to ${max} characters',
|
||||||
|
range: '${label} must be between ${min}-${max} characters',
|
||||||
|
},
|
||||||
|
number: {
|
||||||
|
len: '${label} must be equal to ${len}',
|
||||||
|
min: '${label} minimum value is ${min}',
|
||||||
|
max: '${label} maximum value is ${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;
|
8
components/time-picker/locale/ga_IE.tsx
Normal file
8
components/time-picker/locale/ga_IE.tsx
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
import { TimePickerLocale } from '../index';
|
||||||
|
|
||||||
|
const locale: TimePickerLocale = {
|
||||||
|
placeholder: 'Roghnaigh am',
|
||||||
|
rangePlaceholder: ['Am tosaigh', 'Am deiridh'],
|
||||||
|
};
|
||||||
|
|
||||||
|
export default locale;
|
@ -44,6 +44,7 @@ Supported languages:
|
|||||||
| Finnish | fi_FI |
|
| Finnish | fi_FI |
|
||||||
| French (Belgium) | fr_BE |
|
| French (Belgium) | fr_BE |
|
||||||
| French (France) | fr_FR |
|
| French (France) | fr_FR |
|
||||||
|
| Irish (Ireland) | ga_IE |
|
||||||
| Hebrew | he_IL |
|
| Hebrew | he_IL |
|
||||||
| Hindi | hi_IN |
|
| Hindi | hi_IN |
|
||||||
| Croatian | hr_HR |
|
| Croatian | hr_HR |
|
||||||
|
@ -43,6 +43,7 @@ return (
|
|||||||
| 芬兰语 | fi_FI |
|
| 芬兰语 | fi_FI |
|
||||||
| 法语(比利时) | fr_BE |
|
| 法语(比利时) | fr_BE |
|
||||||
| 法语(法国) | fr_FR |
|
| 法语(法国) | fr_FR |
|
||||||
|
| 爱尔兰语 | ga_IE |
|
||||||
| 希伯来语 | he_IL |
|
| 希伯来语 | he_IL |
|
||||||
| 印地语 | hi_IN |
|
| 印地语 | hi_IN |
|
||||||
| 克罗地亚语 | hr_HR |
|
| 克罗地亚语 | hr_HR |
|
||||||
|
@ -126,8 +126,8 @@
|
|||||||
"rc-mentions": "~1.2.0",
|
"rc-mentions": "~1.2.0",
|
||||||
"rc-menu": "~8.3.0",
|
"rc-menu": "~8.3.0",
|
||||||
"rc-notification": "~4.4.0",
|
"rc-notification": "~4.4.0",
|
||||||
"rc-pagination": "~2.2.0",
|
"rc-pagination": "~2.2.5",
|
||||||
"rc-picker": "~1.6.0",
|
"rc-picker": "~1.6.1",
|
||||||
"rc-progress": "~3.0.0",
|
"rc-progress": "~3.0.0",
|
||||||
"rc-rate": "~2.7.0",
|
"rc-rate": "~2.7.0",
|
||||||
"rc-resize-observer": "^0.2.3",
|
"rc-resize-observer": "^0.2.3",
|
||||||
|
Loading…
Reference in New Issue
Block a user