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

View File

@ -1,44 +1,128 @@
/* eslint-disable no-template-curly-in-string */
import Pagination from 'rc-pagination/lib/locale/ca_ES';
import DatePicker from '../date-picker/locale/ca_ES';
import TimePicker from '../time-picker/locale/ca_ES';
import Calendar from '../calendar/locale/ca_ES';
import { Locale } from '../locale-provider';
const typeTemplate = '${label} no és un ${type} vàlid';
const localeValues: Locale = {
locale: 'ca',
Pagination,
DatePicker,
TimePicker,
Calendar,
global: {
placeholder: 'Seleccionar',
},
Table: {
filterTitle: 'Filtrar Menu',
filterConfirm: 'OK',
filterReset: 'Restablir',
filterTitle: 'Filtrar el menú',
filterConfirm: 'Dacord',
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: {
okText: 'OK',
okText: 'Dacord',
cancelText: 'Cancel·lar',
justOkText: 'OK',
justOkText: 'Dacord',
},
Popconfirm: {
okText: 'OK',
okText: 'Dacord',
cancelText: 'Cancel·lar',
},
Transfer: {
searchPlaceholder: 'Cercar aquí',
itemUnit: 'item',
itemsUnit: 'items',
titles: ['', ''],
searchPlaceholder: 'Cercar',
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: {
uploading: 'Carregant...',
removeFile: 'Elimina el fitxer',
uploading: 'Carregant',
removeFile: 'Eliminar el fitxer',
uploadError: 'Error de càrrega',
previewFile: 'Vista prèvia del fitxer',
downloadFile: "Descarrega l'arxiu",
downloadFile: 'Baixar el fitxer',
},
Empty: {
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;