feat: refine Catalan ca_ES locale (#25583)

* Improve ca_ES locale

* feat: Refine ca_ES locale

* fix: Update locale-provider snapshot

* fix: Update locale-provider snapshot
This commit is contained in:
Albert Mañosa 2020-07-12 11:52:42 +02:00 committed by GitHub
parent b237bfde8a
commit 6e7e3dc6a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 102 additions and 18 deletions

View File

@ -20465,7 +20465,7 @@ exports[`Locale Provider should display the text as ca 1`] = `
type="button" type="button"
> >
<span> <span>
OK Dacord
</span> </span>
</button> </button>
</div> </div>
@ -20522,7 +20522,7 @@ exports[`Locale Provider should display the text as ca 1`] = `
<span <span
class="ant-transfer-list-header-selected" class="ant-transfer-list-header-selected"
> >
0 item 0 ítem
</span> </span>
<span <span
class="ant-transfer-list-header-title" class="ant-transfer-list-header-title"
@ -20537,7 +20537,7 @@ exports[`Locale Provider should display the text as ca 1`] = `
<div> <div>
<input <input
class="ant-input ant-transfer-list-search" class="ant-input ant-transfer-list-search"
placeholder="Cercar aquí" placeholder="Cercar"
type="text" type="text"
value="" value=""
/> />
@ -20720,7 +20720,7 @@ exports[`Locale Provider should display the text as ca 1`] = `
<span <span
class="ant-transfer-list-header-selected" class="ant-transfer-list-header-selected"
> >
0 item 0 ítem
</span> </span>
<span <span
class="ant-transfer-list-header-title" class="ant-transfer-list-header-title"
@ -20735,7 +20735,7 @@ exports[`Locale Provider should display the text as ca 1`] = `
<div> <div>
<input <input
class="ant-input ant-transfer-list-search" class="ant-input ant-transfer-list-search"
placeholder="Cercar aquí" placeholder="Cercar"
type="text" type="text"
value="" value=""
/> />
@ -21989,7 +21989,7 @@ exports[`Locale Provider should display the text as ca 1`] = `
type="button" type="button"
> >
<span> <span>
OK Dacord
</span> </span>
</button> </button>
</div> </div>

View File

@ -1,44 +1,128 @@
/* eslint-disable no-template-curly-in-string */
import Pagination from 'rc-pagination/lib/locale/ca_ES'; import Pagination from 'rc-pagination/lib/locale/ca_ES';
import DatePicker from '../date-picker/locale/ca_ES'; import DatePicker from '../date-picker/locale/ca_ES';
import TimePicker from '../time-picker/locale/ca_ES'; import TimePicker from '../time-picker/locale/ca_ES';
import Calendar from '../calendar/locale/ca_ES'; import Calendar from '../calendar/locale/ca_ES';
import { Locale } from '../locale-provider'; import { Locale } from '../locale-provider';
const typeTemplate = '${label} no és un ${type} vàlid';
const localeValues: Locale = { const localeValues: Locale = {
locale: 'ca', locale: 'ca',
Pagination, Pagination,
DatePicker, DatePicker,
TimePicker, TimePicker,
Calendar, Calendar,
global: {
placeholder: 'Seleccionar',
},
Table: { Table: {
filterTitle: 'Filtrar Menu', filterTitle: 'Filtrar el menú',
filterConfirm: 'OK', filterConfirm: 'Dacord',
filterReset: 'Restablir', filterReset: 'Reiniciar',
filterEmptyText: 'Sense filtres',
selectAll: 'Seleccionar la pàgina actual',
selectInvert: 'Invertir la selecció',
selectionAll: 'Seleccionar-ho tot',
sortTitle: 'Ordenar',
expand: 'Ampliar la fila',
collapse: 'Plegar la fila',
triggerDesc: 'Ordre descendent',
triggerAsc: 'Ordre ascendent',
cancelSort: 'Desactivar lordre',
}, },
Modal: { Modal: {
okText: 'OK', okText: 'Dacord',
cancelText: 'Cancel·lar', cancelText: 'Cancel·lar',
justOkText: 'OK', justOkText: 'Dacord',
}, },
Popconfirm: { Popconfirm: {
okText: 'OK', okText: 'Dacord',
cancelText: 'Cancel·lar', cancelText: 'Cancel·lar',
}, },
Transfer: { Transfer: {
searchPlaceholder: 'Cercar aquí', titles: ['', ''],
itemUnit: 'item', searchPlaceholder: 'Cercar',
itemsUnit: 'items', itemUnit: 'ítem',
itemsUnit: 'ítems',
remove: 'Eliminar',
selectCurrent: 'Seleccionar la pàgina actual',
removeCurrent: 'Eliminar la selecció',
selectAll: 'Seleccionar-ho tot',
removeAll: 'Eliminar-ho tot',
selectInvert: 'Invertir la selecció',
}, },
Upload: { Upload: {
uploading: 'Carregant...', uploading: 'Carregant',
removeFile: 'Elimina el fitxer', removeFile: 'Eliminar el fitxer',
uploadError: 'Error de càrrega', uploadError: 'Error de càrrega',
previewFile: 'Vista prèvia del fitxer', previewFile: 'Vista prèvia del fitxer',
downloadFile: "Descarrega l'arxiu", downloadFile: 'Baixar el fitxer',
}, },
Empty: { Empty: {
description: 'Sense dades', description: 'Sense dades',
}, },
Icon: {
icon: 'icona',
},
Text: {
edit: 'Editar',
copy: 'Copiar',
copied: 'Copiat',
expand: 'Ampliar',
},
PageHeader: {
back: 'Enrere',
},
Form: {
defaultValidateMessages: {
default: 'Error de validació del camp ${label}',
required: 'Introdueix ${label}',
enum: '${label} ha de ser un de [${enum}]',
whitespace: '${label} no pot ser un caràcter en blanc',
date: {
format: 'El format de la data de ${label} és invàlid',
parse: '${label} no es pot convertir a cap data',
invalid: '${label} és una data invàlida',
},
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} ha de ser de ${len} caràcters',
min: '${label} ha de tenir com a mínim ${min} caràcters',
max: '${label} ha de tenir com a màxim ${max} caràcters',
range: '${label} ha destar entre ${min} i ${max} caràcters',
},
number: {
len: '${label} ha de ser igual a ${len}',
min: '${label} ha de tenir un valor mínim de ${min}',
max: '${label} ha de tenir un valor màxim de ${max}',
range: '${label} ha de tenir un valor entre ${min} i ${max}',
},
array: {
len: 'La llargada de ${label} ha de ser de ${len}',
min: 'La llargada de ${label} ha de ser com a mínim de ${min}',
max: 'La llargada de ${label} ha de ser com a màxim de ${max}',
range: 'La llargada de ${label} ha destar entre ${min} i ${max}',
},
pattern: {
mismatch: '${label} no coincideix amb el patró ${pattern}',
},
},
},
}; };
export default localeValues; export default localeValues;