@rockshin/tao-ui 0.0.45 → 0.0.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/component-manifest.json +32 -3
- package/dist/components/alert/alert.js +20 -17
- package/dist/components/avatar/avatar.js +2 -1
- package/dist/components/breadcrumb/breadcrumb.js +81 -77
- package/dist/components/calendar/calendar.d.ts +0 -1
- package/dist/components/calendar/calendar.js +41 -30
- package/dist/components/color-picker/color-picker.js +273 -269
- package/dist/components/date-picker/calendar/calendar-grid.js +10 -4
- package/dist/components/date-picker/calendar/use-calendar.d.ts +2 -2
- package/dist/components/date-picker/calendar/use-calendar.js +2 -3
- package/dist/components/date-picker/date-localization.d.ts +3 -0
- package/dist/components/date-picker/date-localization.js +76 -0
- package/dist/components/date-picker/date-picker.js +35 -27
- package/dist/components/date-picker/range-picker.js +28 -20
- package/dist/components/dropdown/dropdown.js +21 -20
- package/dist/components/float-button/float-button.js +3 -2
- package/dist/components/form/form.js +88 -103
- package/dist/components/image/image.js +202 -137
- package/dist/components/list/list-pagination.js +148 -147
- package/dist/components/modal/confirm-dialog.js +4 -2
- package/dist/components/modal/modal.js +385 -383
- package/dist/components/pagination/pagination.js +115 -110
- package/dist/components/popconfirm/popconfirm.js +109 -107
- package/dist/components/qr-code/qr-code.js +22 -21
- package/dist/components/scroll-area/scroll-area.js +41 -38
- package/dist/components/select/mobile-select.d.ts +1 -1
- package/dist/components/select/mobile-select.js +2 -1
- package/dist/components/sonner/sonner.js +10 -10
- package/dist/components/spinner/spinner.js +1 -1
- package/dist/components/splitter/splitter.js +24 -21
- package/dist/components/statistic/statistic.d.ts +2 -0
- package/dist/components/statistic/statistic.js +203 -187
- package/dist/components/table/table-filter.js +61 -52
- package/dist/components/table/table-icons.js +3 -1
- package/dist/components/table/table.d.ts +1 -1
- package/dist/components/table/table.js +5 -4
- package/dist/components/tag/tag.js +22 -19
- package/dist/components/time-picker/time-picker.d.ts +0 -1
- package/dist/components/time-picker/time-picker.js +139 -96
- package/dist/components/transfer/transfer-list.js +224 -488
- package/dist/components/transfer/transfer-parts.js +2 -2
- package/dist/components/transfer/transfer-types.d.ts +1 -0
- package/dist/components/transfer/transfer.js +13 -16
- package/dist/components/upload/upload.js +30 -26
- package/dist/docs/component-docs.d.ts +13 -2
- package/dist/docs/components/headless-input-number.doc.d.ts +5 -0
- package/dist/docs/components/headless-input-number.doc.js +7 -0
- package/dist/docs/components/input-number.doc.d.ts +5 -0
- package/dist/docs/components/input-number.doc.js +7 -0
- package/dist/docs/components/statistic.doc.d.ts +5 -0
- package/dist/docs/components/statistic.doc.js +7 -0
- package/dist/docs/components/tao-provider.doc.d.ts +8 -2
- package/dist/docs/components/tao-provider.doc.js +10 -2
- package/dist/docs/components/tooltip.doc.d.ts +2 -2
- package/dist/entries/provider.d.ts +1 -0
- package/dist/entries/provider.js +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/locales/ar-EG.d.ts +3 -0
- package/dist/locales/ar-EG.js +199 -0
- package/dist/locales/create-locale.d.ts +41 -0
- package/dist/locales/create-locale.js +88 -0
- package/dist/locales/de-DE.d.ts +3 -0
- package/dist/locales/de-DE.js +195 -0
- package/dist/locales/en-US.d.ts +2 -0
- package/dist/locales/en-US.js +194 -0
- package/dist/locales/es-ES.d.ts +3 -0
- package/dist/locales/es-ES.js +195 -0
- package/dist/locales/fr-FR.d.ts +3 -0
- package/dist/locales/fr-FR.js +195 -0
- package/dist/locales/hi-IN.d.ts +3 -0
- package/dist/locales/hi-IN.js +194 -0
- package/dist/locales/id-ID.d.ts +3 -0
- package/dist/locales/id-ID.js +194 -0
- package/dist/locales/index.d.ts +18 -0
- package/dist/locales/index.js +17 -0
- package/dist/locales/it-IT.d.ts +3 -0
- package/dist/locales/it-IT.js +195 -0
- package/dist/locales/ja-JP.d.ts +3 -0
- package/dist/locales/ja-JP.js +194 -0
- package/dist/locales/ko-KR.d.ts +3 -0
- package/dist/locales/ko-KR.js +194 -0
- package/dist/locales/pt-BR.d.ts +3 -0
- package/dist/locales/pt-BR.js +195 -0
- package/dist/locales/ru-RU.d.ts +3 -0
- package/dist/locales/ru-RU.js +197 -0
- package/dist/locales/th-TH.d.ts +3 -0
- package/dist/locales/th-TH.js +194 -0
- package/dist/locales/tr-TR.d.ts +3 -0
- package/dist/locales/tr-TR.js +194 -0
- package/dist/locales/types.d.ts +176 -0
- package/dist/locales/types.js +0 -0
- package/dist/locales/vi-VN.d.ts +3 -0
- package/dist/locales/vi-VN.js +194 -0
- package/dist/locales/zh-CN.d.ts +3 -0
- package/dist/locales/zh-CN.js +194 -0
- package/dist/locales/zh-TW.d.ts +3 -0
- package/dist/locales/zh-TW.js +194 -0
- package/dist/number-input/format.d.ts +4 -3
- package/dist/number-input/format.js +9 -7
- package/dist/number-input/locale.d.ts +19 -0
- package/dist/number-input/locale.js +44 -0
- package/dist/number-input/number-input.js +1 -0
- package/dist/number-input/use-number-input.d.ts +2 -0
- package/dist/number-input/use-number-input.js +180 -176
- package/dist/provider/locale.d.ts +3 -65
- package/dist/provider/locale.js +2 -146
- package/dist/provider/merge-locale.d.ts +8 -0
- package/dist/provider/merge-locale.js +53 -0
- package/dist/provider/tao-provider.d.ts +6 -2
- package/dist/provider/tao-provider.js +2 -4
- package/llms.txt +1 -1
- package/package.json +5 -1
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import dayjs from "dayjs";
|
|
2
|
+
function createItemCount(locale, forms) {
|
|
3
|
+
const rules = new Intl.PluralRules(locale);
|
|
4
|
+
const number = new Intl.NumberFormat(locale, {
|
|
5
|
+
useGrouping: false
|
|
6
|
+
});
|
|
7
|
+
return (count)=>(forms[rules.select(count)] ?? forms.other).replace('#', number.format(count));
|
|
8
|
+
}
|
|
9
|
+
function createLocale(definition) {
|
|
10
|
+
const weekday = (index)=>dayjs('2020-01-06').add(index, 'day').locale(definition.dayjsLocale).format('dd');
|
|
11
|
+
const month = (index)=>dayjs('2020-01-01').month(index).locale(definition.dayjsLocale).format('MMM');
|
|
12
|
+
const weekdays = [
|
|
13
|
+
weekday(0),
|
|
14
|
+
weekday(1),
|
|
15
|
+
weekday(2),
|
|
16
|
+
weekday(3),
|
|
17
|
+
weekday(4),
|
|
18
|
+
weekday(5),
|
|
19
|
+
weekday(6)
|
|
20
|
+
];
|
|
21
|
+
const months = [
|
|
22
|
+
month(0),
|
|
23
|
+
month(1),
|
|
24
|
+
month(2),
|
|
25
|
+
month(3),
|
|
26
|
+
month(4),
|
|
27
|
+
month(5),
|
|
28
|
+
month(6),
|
|
29
|
+
month(7),
|
|
30
|
+
month(8),
|
|
31
|
+
month(9),
|
|
32
|
+
month(10),
|
|
33
|
+
month(11)
|
|
34
|
+
];
|
|
35
|
+
const title = (month)=>{
|
|
36
|
+
const formatter = new Intl.DateTimeFormat(definition.numberLocale, {
|
|
37
|
+
year: 'numeric',
|
|
38
|
+
month,
|
|
39
|
+
calendar: 'gregory',
|
|
40
|
+
timeZone: 'UTC'
|
|
41
|
+
});
|
|
42
|
+
return (monthIndex, year)=>{
|
|
43
|
+
const date = new Date(0);
|
|
44
|
+
date.setUTCFullYear(year, monthIndex, 1);
|
|
45
|
+
return formatter.format(date);
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
const pickerLabel = (current, englishDefault, translated)=>'en_US' === definition.locale || current && current !== englishDefault ? current : translated;
|
|
49
|
+
return {
|
|
50
|
+
...definition,
|
|
51
|
+
pickerLocale: {
|
|
52
|
+
...definition.pickerLocale,
|
|
53
|
+
hourSelect: pickerLabel(definition.pickerLocale.hourSelect, 'Select an hour', definition.hour),
|
|
54
|
+
minuteSelect: pickerLabel(definition.pickerLocale.minuteSelect, 'Select a minute', definition.minute),
|
|
55
|
+
secondSelect: pickerLabel(definition.pickerLocale.secondSelect, 'Select a second', definition.second),
|
|
56
|
+
millisecondSelect: pickerLabel(definition.pickerLocale.millisecondSelect, 'Select a millisecond', definition.messages.millisecond),
|
|
57
|
+
meridiemSelect: pickerLabel(definition.pickerLocale.meridiemSelect, 'Select a meridiem', definition.messages.meridiem)
|
|
58
|
+
},
|
|
59
|
+
weekdays,
|
|
60
|
+
months,
|
|
61
|
+
monthTitle: title('short'),
|
|
62
|
+
calendarTitle: title('long')
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
function createFormMessages(text) {
|
|
66
|
+
return {
|
|
67
|
+
default: text.default,
|
|
68
|
+
required: text.required,
|
|
69
|
+
enum: text.enum,
|
|
70
|
+
whitespace: text.whitespace,
|
|
71
|
+
date: {
|
|
72
|
+
format: text.dateFormat,
|
|
73
|
+
parse: text.dateParse,
|
|
74
|
+
invalid: text.dateInvalid
|
|
75
|
+
},
|
|
76
|
+
types: Object.fromEntries(Object.entries(text.typeNames).map(([type, name])=>[
|
|
77
|
+
type,
|
|
78
|
+
text.invalid.replace("${type}", name)
|
|
79
|
+
])),
|
|
80
|
+
string: text.string,
|
|
81
|
+
number: text.number,
|
|
82
|
+
array: text.array,
|
|
83
|
+
pattern: {
|
|
84
|
+
mismatch: text.pattern
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
export { createFormMessages, createItemCount, createLocale };
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
import de_DE from "@rc-component/picker/locale/de_DE";
|
|
2
|
+
import "dayjs/locale/de";
|
|
3
|
+
import { createFormMessages, createItemCount, createLocale } from "./create-locale.js";
|
|
4
|
+
const deDE = createLocale({
|
|
5
|
+
locale: 'de_DE',
|
|
6
|
+
numberLocale: 'de-DE',
|
|
7
|
+
dayjsLocale: 'de',
|
|
8
|
+
weekStartsOn: 1,
|
|
9
|
+
pickerLocale: de_DE,
|
|
10
|
+
select: 'Auswählen',
|
|
11
|
+
searchPlaceholder: 'Suchen…',
|
|
12
|
+
search: 'Suchen',
|
|
13
|
+
showPassword: 'Passwort anzeigen',
|
|
14
|
+
hidePassword: 'Passwort ausblenden',
|
|
15
|
+
otpLabel: (index, length)=>`Zeichen ${index} von ${length}`,
|
|
16
|
+
searchOptions: 'Optionen suchen',
|
|
17
|
+
noResults: 'Keine Ergebnisse',
|
|
18
|
+
emptyDescription: 'Keine Daten',
|
|
19
|
+
done: 'Fertig',
|
|
20
|
+
clear: 'Leeren',
|
|
21
|
+
close: 'Schließen',
|
|
22
|
+
remove: (label)=>`${label} entfernen`,
|
|
23
|
+
dateTime: 'Datum und Uhrzeit',
|
|
24
|
+
selectDate: 'Datum auswählen',
|
|
25
|
+
selectTime: 'Uhrzeit auswählen',
|
|
26
|
+
startTime: 'Startzeit',
|
|
27
|
+
endTime: 'Endzeit',
|
|
28
|
+
dateRange: 'Zeitraum auswählen',
|
|
29
|
+
startDate: 'Startdatum',
|
|
30
|
+
endDate: 'Enddatum',
|
|
31
|
+
now: 'Jetzt',
|
|
32
|
+
ok: 'OK',
|
|
33
|
+
cancel: 'Abbrechen',
|
|
34
|
+
previous: 'Zurück',
|
|
35
|
+
next: 'Weiter',
|
|
36
|
+
previousMonth: 'Vorheriger Monat',
|
|
37
|
+
nextMonth: 'Nächster Monat',
|
|
38
|
+
previousYear: 'Vorheriges Jahr',
|
|
39
|
+
nextYear: 'Nächstes Jahr',
|
|
40
|
+
hour: 'Stunde',
|
|
41
|
+
minute: 'Minute',
|
|
42
|
+
second: 'Sekunde',
|
|
43
|
+
qrCode: {
|
|
44
|
+
expired: 'QR-Code abgelaufen',
|
|
45
|
+
refresh: 'Aktualisieren',
|
|
46
|
+
scanned: 'Gescannt'
|
|
47
|
+
},
|
|
48
|
+
messages: {
|
|
49
|
+
tableEmpty: 'Keine Daten',
|
|
50
|
+
loading: 'Wird geladen',
|
|
51
|
+
pagination: 'Seitennavigation',
|
|
52
|
+
previousPage: 'Vorherige Seite',
|
|
53
|
+
nextPage: 'Nächste Seite',
|
|
54
|
+
itemsPerPage: '/ Seite',
|
|
55
|
+
pageSize: 'Einträge pro Seite',
|
|
56
|
+
jumpTo: 'Gehe zu',
|
|
57
|
+
jumpToConfirm: 'Los',
|
|
58
|
+
previousPages: 'Vorherige Seiten',
|
|
59
|
+
nextPages: 'Nächste Seiten',
|
|
60
|
+
selectAllRows: 'Alle Zeilen auswählen',
|
|
61
|
+
expandRow: 'Zeile erweitern',
|
|
62
|
+
collapseRow: 'Zeile reduzieren',
|
|
63
|
+
uploadFile: 'Dateien hochladen',
|
|
64
|
+
uploadDrop: 'Zum Hochladen klicken oder Dateien hier ablegen',
|
|
65
|
+
removeFile: 'Datei entfernen',
|
|
66
|
+
previewFile: 'Dateivorschau',
|
|
67
|
+
downloadFile: 'Datei herunterladen',
|
|
68
|
+
uploadError: 'Hochladen fehlgeschlagen',
|
|
69
|
+
previewUnavailable: 'Vorschau nicht verfügbar',
|
|
70
|
+
source: 'Quelle',
|
|
71
|
+
target: 'Ziel',
|
|
72
|
+
itemUnit: 'Element',
|
|
73
|
+
itemsUnit: 'Elemente',
|
|
74
|
+
selectAll: 'Alle auswählen',
|
|
75
|
+
deselectAll: 'Auswahl aufheben',
|
|
76
|
+
selectCurrent: 'Aktuelle Seite auswählen',
|
|
77
|
+
invertCurrent: 'Aktuelle Auswahl umkehren',
|
|
78
|
+
removeAll: 'Alle entfernen',
|
|
79
|
+
removeCurrent: 'Aktuelle Seite entfernen',
|
|
80
|
+
moveToTarget: 'Zum Ziel verschieben',
|
|
81
|
+
moveToSource: 'Zur Quelle verschieben',
|
|
82
|
+
clearSearch: 'Suche leeren',
|
|
83
|
+
calendarYear: 'Jahr',
|
|
84
|
+
calendarMonth: 'Monat',
|
|
85
|
+
calendarView: 'Kalenderansicht',
|
|
86
|
+
zoomIn: 'Vergrößern',
|
|
87
|
+
zoomOut: 'Verkleinern',
|
|
88
|
+
rotateLeft: 'Nach links drehen',
|
|
89
|
+
rotateRight: 'Nach rechts drehen',
|
|
90
|
+
flipX: 'Horizontal spiegeln',
|
|
91
|
+
flipY: 'Vertikal spiegeln',
|
|
92
|
+
colorMode: 'Farbmodus',
|
|
93
|
+
colorSingle: 'Einfarbig',
|
|
94
|
+
colorGradient: 'Farbverlauf',
|
|
95
|
+
colorStop: 'Farbstopp',
|
|
96
|
+
addColorStop: 'Farbstopp hinzufügen',
|
|
97
|
+
removeColorStop: 'Farbstopp entfernen',
|
|
98
|
+
colorPosition: 'Position',
|
|
99
|
+
colorStopPosition: 'Position des Farbstopps',
|
|
100
|
+
colorFormat: 'Farbformat',
|
|
101
|
+
colorHex: 'Hexadezimale Farbe',
|
|
102
|
+
colorRed: 'Rot',
|
|
103
|
+
colorGreen: 'Grün',
|
|
104
|
+
colorBlue: 'Blau',
|
|
105
|
+
colorHue: 'Farbton',
|
|
106
|
+
colorSaturation: 'Sättigung',
|
|
107
|
+
colorBrightness: 'Helligkeit',
|
|
108
|
+
colorAlpha: 'Deckkraft',
|
|
109
|
+
clearColor: 'Farbe entfernen',
|
|
110
|
+
colorPreset: 'Voreinstellung',
|
|
111
|
+
colorTransparent: 'Transparent',
|
|
112
|
+
chooseColor: 'Farbe auswählen',
|
|
113
|
+
colorPicker: 'Farbauswahl',
|
|
114
|
+
loadingQrCode: 'QR-Code wird geladen',
|
|
115
|
+
loadingNotification: 'Benachrichtigung wird geladen',
|
|
116
|
+
closeNotification: 'Benachrichtigung schließen',
|
|
117
|
+
floatingActions: 'Schwebende Aktionen',
|
|
118
|
+
breadcrumb: 'Navigationspfad',
|
|
119
|
+
showMore: 'Mehr anzeigen',
|
|
120
|
+
collapsePanel: 'Bereich reduzieren',
|
|
121
|
+
selectionActions: 'Auswahlaktionen',
|
|
122
|
+
more: 'Mehr',
|
|
123
|
+
scrollVertically: 'Vertikal scrollen',
|
|
124
|
+
scrollHorizontally: 'Horizontal scrollen',
|
|
125
|
+
filter: 'Filtern',
|
|
126
|
+
filterReset: 'Filter zurücksetzen',
|
|
127
|
+
page: (page)=>`Seite ${page}`,
|
|
128
|
+
selectRow: (label)=>`Zeile ${label} auswählen`,
|
|
129
|
+
moreUsers: (count)=>`${count} weitere Benutzer`,
|
|
130
|
+
resizePanels: (first, second)=>`Größe der Bereiche ${first} und ${second} ändern`,
|
|
131
|
+
backToTop: 'Nach oben',
|
|
132
|
+
successNotification: 'Erfolgsbenachrichtigung',
|
|
133
|
+
errorNotification: 'Fehlerbenachrichtigung',
|
|
134
|
+
warningNotification: 'Warnbenachrichtigung',
|
|
135
|
+
infoNotification: 'Informationsbenachrichtigung',
|
|
136
|
+
notification: 'Benachrichtigung',
|
|
137
|
+
removeFileError: 'Datei konnte nicht entfernt werden',
|
|
138
|
+
readFileError: 'Datei konnte nicht gelesen werden',
|
|
139
|
+
millisecond: 'Millisekunde',
|
|
140
|
+
meridiem: 'Vormittag/Nachmittag',
|
|
141
|
+
pageUnit: 'Seite',
|
|
142
|
+
itemCount: createItemCount('de-DE', {
|
|
143
|
+
one: '# Element',
|
|
144
|
+
other: '# Elemente'
|
|
145
|
+
})
|
|
146
|
+
},
|
|
147
|
+
form: createFormMessages({
|
|
148
|
+
default: "Validierungsfehler im Feld „${name}“",
|
|
149
|
+
required: "„${name}“ ist erforderlich",
|
|
150
|
+
enum: "„${name}“ muss einen der Werte [${enum}] enthalten",
|
|
151
|
+
whitespace: "„${name}“ darf nicht leer sein",
|
|
152
|
+
invalid: "„${name}“ muss dem Typ ${type} entsprechen",
|
|
153
|
+
dateFormat: "„${name}“ hat ein ungültiges Datumsformat",
|
|
154
|
+
dateParse: "„${name}“ konnte nicht als Datum gelesen werden",
|
|
155
|
+
dateInvalid: "„${name}“ ist kein gültiges Datum",
|
|
156
|
+
string: {
|
|
157
|
+
len: "„${name}“ muss genau ${len} Zeichen enthalten",
|
|
158
|
+
min: "„${name}“ muss mindestens ${min} Zeichen enthalten",
|
|
159
|
+
max: "„${name}“ darf höchstens ${max} Zeichen enthalten",
|
|
160
|
+
range: "„${name}“ muss zwischen ${min} und ${max} Zeichen enthalten"
|
|
161
|
+
},
|
|
162
|
+
number: {
|
|
163
|
+
len: "„${name}“ muss gleich ${len} sein",
|
|
164
|
+
min: "„${name}“ darf nicht kleiner als ${min} sein",
|
|
165
|
+
max: "„${name}“ darf nicht größer als ${max} sein",
|
|
166
|
+
range: "„${name}“ muss zwischen ${min} und ${max} liegen"
|
|
167
|
+
},
|
|
168
|
+
array: {
|
|
169
|
+
len: "„${name}“ muss genau ${len} Elemente enthalten",
|
|
170
|
+
min: "„${name}“ muss mindestens ${min} Elemente enthalten",
|
|
171
|
+
max: "„${name}“ darf höchstens ${max} Elemente enthalten",
|
|
172
|
+
range: "„${name}“ muss zwischen ${min} und ${max} Elemente enthalten"
|
|
173
|
+
},
|
|
174
|
+
pattern: "„${name}“ entspricht nicht dem Muster ${pattern}",
|
|
175
|
+
typeNames: {
|
|
176
|
+
string: 'Zeichenkette',
|
|
177
|
+
method: 'Funktion',
|
|
178
|
+
array: 'Liste',
|
|
179
|
+
object: 'Objekt',
|
|
180
|
+
number: 'Zahl',
|
|
181
|
+
date: 'Datum',
|
|
182
|
+
boolean: 'Wahrheitswert',
|
|
183
|
+
integer: 'Ganzzahl',
|
|
184
|
+
float: 'Dezimalzahl',
|
|
185
|
+
regexp: 'regulärer Ausdruck',
|
|
186
|
+
email: 'E-Mail-Adresse',
|
|
187
|
+
tel: 'Telefonnummer',
|
|
188
|
+
url: 'Webadresse',
|
|
189
|
+
hex: 'Hexadezimalwert'
|
|
190
|
+
}
|
|
191
|
+
})
|
|
192
|
+
});
|
|
193
|
+
const locales_de_DE = deDE;
|
|
194
|
+
export default locales_de_DE;
|
|
195
|
+
export { deDE };
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import en_US from "@rc-component/picker/locale/en_US";
|
|
2
|
+
import { createFormMessages, createItemCount, createLocale } from "./create-locale.js";
|
|
3
|
+
const enUS = createLocale({
|
|
4
|
+
locale: 'en_US',
|
|
5
|
+
numberLocale: 'en-US',
|
|
6
|
+
dayjsLocale: 'en',
|
|
7
|
+
weekStartsOn: 0,
|
|
8
|
+
pickerLocale: en_US,
|
|
9
|
+
select: 'Select',
|
|
10
|
+
searchPlaceholder: 'Search...',
|
|
11
|
+
search: 'Search',
|
|
12
|
+
showPassword: 'Show password',
|
|
13
|
+
hidePassword: 'Hide password',
|
|
14
|
+
otpLabel: (index, length)=>`Character ${index} of ${length}`,
|
|
15
|
+
searchOptions: 'Search options',
|
|
16
|
+
noResults: 'No results',
|
|
17
|
+
emptyDescription: 'No data',
|
|
18
|
+
done: 'Done',
|
|
19
|
+
clear: 'Clear',
|
|
20
|
+
close: 'Close',
|
|
21
|
+
remove: (label)=>`Remove ${label}`,
|
|
22
|
+
dateTime: 'Date & Time',
|
|
23
|
+
selectDate: 'Select date',
|
|
24
|
+
selectTime: 'Select time',
|
|
25
|
+
startTime: 'Start time',
|
|
26
|
+
endTime: 'End time',
|
|
27
|
+
dateRange: 'Select date range',
|
|
28
|
+
startDate: 'Start date',
|
|
29
|
+
endDate: 'End date',
|
|
30
|
+
now: 'Now',
|
|
31
|
+
ok: 'OK',
|
|
32
|
+
cancel: 'Cancel',
|
|
33
|
+
previous: 'Previous',
|
|
34
|
+
next: 'Next',
|
|
35
|
+
previousMonth: 'Previous month',
|
|
36
|
+
nextMonth: 'Next month',
|
|
37
|
+
previousYear: 'Previous year',
|
|
38
|
+
nextYear: 'Next year',
|
|
39
|
+
hour: 'Hour',
|
|
40
|
+
minute: 'Minute',
|
|
41
|
+
second: 'Second',
|
|
42
|
+
qrCode: {
|
|
43
|
+
expired: 'QR code expired',
|
|
44
|
+
refresh: 'Refresh',
|
|
45
|
+
scanned: 'Scanned'
|
|
46
|
+
},
|
|
47
|
+
messages: {
|
|
48
|
+
tableEmpty: 'No Data',
|
|
49
|
+
loading: 'Loading',
|
|
50
|
+
pagination: 'Pagination',
|
|
51
|
+
previousPage: 'Previous page',
|
|
52
|
+
nextPage: 'Next page',
|
|
53
|
+
itemsPerPage: '/ page',
|
|
54
|
+
pageSize: 'Page size',
|
|
55
|
+
jumpTo: 'Go to',
|
|
56
|
+
jumpToConfirm: 'Go',
|
|
57
|
+
previousPages: 'Previous pages',
|
|
58
|
+
nextPages: 'Next pages',
|
|
59
|
+
selectAllRows: 'Select all rows',
|
|
60
|
+
expandRow: 'Expand row',
|
|
61
|
+
collapseRow: 'Collapse row',
|
|
62
|
+
uploadFile: 'Upload files',
|
|
63
|
+
uploadDrop: 'Click or drop files here to upload',
|
|
64
|
+
removeFile: 'Remove file',
|
|
65
|
+
previewFile: 'Preview file',
|
|
66
|
+
downloadFile: 'Download file',
|
|
67
|
+
uploadError: 'Upload failed',
|
|
68
|
+
previewUnavailable: 'Preview unavailable',
|
|
69
|
+
source: 'Source',
|
|
70
|
+
target: 'Target',
|
|
71
|
+
itemUnit: 'item',
|
|
72
|
+
itemsUnit: 'items',
|
|
73
|
+
selectAll: 'Select all',
|
|
74
|
+
deselectAll: 'Deselect all',
|
|
75
|
+
selectCurrent: 'Select current page',
|
|
76
|
+
invertCurrent: 'Invert current selection',
|
|
77
|
+
removeAll: 'Remove all',
|
|
78
|
+
removeCurrent: 'Remove current page',
|
|
79
|
+
moveToTarget: 'Move to target',
|
|
80
|
+
moveToSource: 'Move to source',
|
|
81
|
+
clearSearch: 'Clear search',
|
|
82
|
+
calendarYear: 'Year',
|
|
83
|
+
calendarMonth: 'Month',
|
|
84
|
+
calendarView: 'Calendar view',
|
|
85
|
+
zoomIn: 'Zoom in',
|
|
86
|
+
zoomOut: 'Zoom out',
|
|
87
|
+
rotateLeft: 'Rotate left',
|
|
88
|
+
rotateRight: 'Rotate right',
|
|
89
|
+
flipX: 'Flip horizontally',
|
|
90
|
+
flipY: 'Flip vertically',
|
|
91
|
+
colorMode: 'Color mode',
|
|
92
|
+
colorSingle: 'Single',
|
|
93
|
+
colorGradient: 'Gradient',
|
|
94
|
+
colorStop: 'Color stop',
|
|
95
|
+
addColorStop: 'Add color stop',
|
|
96
|
+
removeColorStop: 'Remove color stop',
|
|
97
|
+
colorPosition: 'Position',
|
|
98
|
+
colorStopPosition: 'Stop position',
|
|
99
|
+
colorFormat: 'Color format',
|
|
100
|
+
colorHex: 'Hex color',
|
|
101
|
+
colorRed: 'Red',
|
|
102
|
+
colorGreen: 'Green',
|
|
103
|
+
colorBlue: 'Blue',
|
|
104
|
+
colorHue: 'Hue',
|
|
105
|
+
colorSaturation: 'Saturation',
|
|
106
|
+
colorBrightness: 'Brightness',
|
|
107
|
+
colorAlpha: 'Alpha',
|
|
108
|
+
clearColor: 'Clear color',
|
|
109
|
+
colorPreset: 'Preset',
|
|
110
|
+
colorTransparent: 'Transparent',
|
|
111
|
+
chooseColor: 'Choose color',
|
|
112
|
+
colorPicker: 'Color picker',
|
|
113
|
+
loadingQrCode: 'Loading QR code',
|
|
114
|
+
loadingNotification: 'Loading notification',
|
|
115
|
+
closeNotification: 'Close notification',
|
|
116
|
+
floatingActions: 'Floating actions',
|
|
117
|
+
breadcrumb: 'breadcrumb',
|
|
118
|
+
showMore: 'Show more',
|
|
119
|
+
collapsePanel: 'Collapse panel',
|
|
120
|
+
selectionActions: 'Selection actions',
|
|
121
|
+
more: 'More',
|
|
122
|
+
scrollVertically: 'Scroll vertically',
|
|
123
|
+
scrollHorizontally: 'Scroll horizontally',
|
|
124
|
+
filter: 'Filter',
|
|
125
|
+
filterReset: 'Reset filters',
|
|
126
|
+
page: (page)=>`Page ${page}`,
|
|
127
|
+
selectRow: (label)=>`Select row ${label}`,
|
|
128
|
+
moreUsers: (count)=>`${count} more users`,
|
|
129
|
+
resizePanels: (first, second)=>`Resize panels ${first} and ${second}`,
|
|
130
|
+
backToTop: 'Back to top',
|
|
131
|
+
successNotification: 'Success notification',
|
|
132
|
+
errorNotification: 'Error notification',
|
|
133
|
+
warningNotification: 'Warning notification',
|
|
134
|
+
infoNotification: 'Information notification',
|
|
135
|
+
notification: 'Notification',
|
|
136
|
+
removeFileError: 'Could not remove file',
|
|
137
|
+
readFileError: 'Could not read file',
|
|
138
|
+
millisecond: 'Millisecond',
|
|
139
|
+
meridiem: 'AM/PM',
|
|
140
|
+
pageUnit: 'page',
|
|
141
|
+
itemCount: createItemCount('en-US', {
|
|
142
|
+
one: '# item',
|
|
143
|
+
other: '# items'
|
|
144
|
+
})
|
|
145
|
+
},
|
|
146
|
+
form: createFormMessages({
|
|
147
|
+
default: "Validation error on field '${name}'",
|
|
148
|
+
required: "'${name}' is required",
|
|
149
|
+
enum: "'${name}' must be one of [${enum}]",
|
|
150
|
+
whitespace: "'${name}' cannot be empty",
|
|
151
|
+
invalid: "'${name}' is not a valid ${type}",
|
|
152
|
+
dateFormat: "'${name}' has an invalid date format",
|
|
153
|
+
dateParse: "'${name}' could not be parsed as a date",
|
|
154
|
+
dateInvalid: "'${name}' is an invalid date",
|
|
155
|
+
string: {
|
|
156
|
+
len: "'${name}' must be exactly ${len} characters",
|
|
157
|
+
min: "'${name}' must be at least ${min} characters",
|
|
158
|
+
max: "'${name}' cannot be longer than ${max} characters",
|
|
159
|
+
range: "'${name}' must be between ${min} and ${max} characters"
|
|
160
|
+
},
|
|
161
|
+
number: {
|
|
162
|
+
len: "'${name}' must equal ${len}",
|
|
163
|
+
min: "'${name}' cannot be less than ${min}",
|
|
164
|
+
max: "'${name}' cannot be greater than ${max}",
|
|
165
|
+
range: "'${name}' must be between ${min} and ${max}"
|
|
166
|
+
},
|
|
167
|
+
array: {
|
|
168
|
+
len: "'${name}' must contain exactly ${len} items",
|
|
169
|
+
min: "'${name}' must contain at least ${min} items",
|
|
170
|
+
max: "'${name}' cannot contain more than ${max} items",
|
|
171
|
+
range: "'${name}' must contain between ${min} and ${max} items"
|
|
172
|
+
},
|
|
173
|
+
pattern: "'${name}' does not match pattern ${pattern}",
|
|
174
|
+
typeNames: {
|
|
175
|
+
string: 'string',
|
|
176
|
+
method: 'function',
|
|
177
|
+
array: 'array',
|
|
178
|
+
object: 'object',
|
|
179
|
+
number: 'number',
|
|
180
|
+
date: 'date',
|
|
181
|
+
boolean: 'boolean',
|
|
182
|
+
integer: 'integer',
|
|
183
|
+
float: 'decimal number',
|
|
184
|
+
regexp: 'regular expression',
|
|
185
|
+
email: 'email address',
|
|
186
|
+
tel: 'telephone number',
|
|
187
|
+
url: 'URL',
|
|
188
|
+
hex: 'hexadecimal value'
|
|
189
|
+
}
|
|
190
|
+
})
|
|
191
|
+
});
|
|
192
|
+
const locales_en_US = enUS;
|
|
193
|
+
export default locales_en_US;
|
|
194
|
+
export { enUS };
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
import es_ES from "@rc-component/picker/locale/es_ES";
|
|
2
|
+
import "dayjs/locale/es";
|
|
3
|
+
import { createFormMessages, createItemCount, createLocale } from "./create-locale.js";
|
|
4
|
+
const esES = createLocale({
|
|
5
|
+
locale: 'es_ES',
|
|
6
|
+
numberLocale: 'es-ES',
|
|
7
|
+
dayjsLocale: 'es',
|
|
8
|
+
weekStartsOn: 1,
|
|
9
|
+
pickerLocale: es_ES,
|
|
10
|
+
select: 'Seleccionar',
|
|
11
|
+
searchPlaceholder: 'Buscar…',
|
|
12
|
+
search: 'Buscar',
|
|
13
|
+
showPassword: 'Mostrar contraseña',
|
|
14
|
+
hidePassword: 'Ocultar contraseña',
|
|
15
|
+
otpLabel: (index, length)=>`Carácter ${index} de ${length}`,
|
|
16
|
+
searchOptions: 'Buscar opciones',
|
|
17
|
+
noResults: 'Sin resultados',
|
|
18
|
+
emptyDescription: 'Sin datos',
|
|
19
|
+
done: 'Hecho',
|
|
20
|
+
clear: 'Borrar',
|
|
21
|
+
close: 'Cerrar',
|
|
22
|
+
remove: (label)=>`Eliminar ${label}`,
|
|
23
|
+
dateTime: 'Fecha y hora',
|
|
24
|
+
selectDate: 'Seleccionar fecha',
|
|
25
|
+
selectTime: 'Seleccionar hora',
|
|
26
|
+
startTime: 'Hora de inicio',
|
|
27
|
+
endTime: 'Hora de fin',
|
|
28
|
+
dateRange: 'Seleccionar intervalo de fechas',
|
|
29
|
+
startDate: 'Fecha de inicio',
|
|
30
|
+
endDate: 'Fecha de fin',
|
|
31
|
+
now: 'Ahora',
|
|
32
|
+
ok: 'Aceptar',
|
|
33
|
+
cancel: 'Cancelar',
|
|
34
|
+
previous: 'Anterior',
|
|
35
|
+
next: 'Siguiente',
|
|
36
|
+
previousMonth: 'Mes anterior',
|
|
37
|
+
nextMonth: 'Mes siguiente',
|
|
38
|
+
previousYear: 'Año anterior',
|
|
39
|
+
nextYear: 'Año siguiente',
|
|
40
|
+
hour: 'Hora',
|
|
41
|
+
minute: 'Minuto',
|
|
42
|
+
second: 'Segundo',
|
|
43
|
+
qrCode: {
|
|
44
|
+
expired: 'Código QR caducado',
|
|
45
|
+
refresh: 'Actualizar',
|
|
46
|
+
scanned: 'Escaneado'
|
|
47
|
+
},
|
|
48
|
+
messages: {
|
|
49
|
+
tableEmpty: 'Sin datos',
|
|
50
|
+
loading: 'Cargando',
|
|
51
|
+
pagination: 'Paginación',
|
|
52
|
+
previousPage: 'Página anterior',
|
|
53
|
+
nextPage: 'Página siguiente',
|
|
54
|
+
itemsPerPage: '/ página',
|
|
55
|
+
pageSize: 'Elementos por página',
|
|
56
|
+
jumpTo: 'Ir a',
|
|
57
|
+
jumpToConfirm: 'Ir',
|
|
58
|
+
previousPages: 'Páginas anteriores',
|
|
59
|
+
nextPages: 'Páginas siguientes',
|
|
60
|
+
selectAllRows: 'Seleccionar todas las filas',
|
|
61
|
+
expandRow: 'Expandir fila',
|
|
62
|
+
collapseRow: 'Contraer fila',
|
|
63
|
+
uploadFile: 'Subir archivos',
|
|
64
|
+
uploadDrop: 'Haga clic o suelte archivos aquí para subirlos',
|
|
65
|
+
removeFile: 'Eliminar archivo',
|
|
66
|
+
previewFile: 'Vista previa del archivo',
|
|
67
|
+
downloadFile: 'Descargar archivo',
|
|
68
|
+
uploadError: 'Error al subir',
|
|
69
|
+
previewUnavailable: 'Vista previa no disponible',
|
|
70
|
+
source: 'Origen',
|
|
71
|
+
target: 'Destino',
|
|
72
|
+
itemUnit: 'elemento',
|
|
73
|
+
itemsUnit: 'elementos',
|
|
74
|
+
selectAll: 'Seleccionar todo',
|
|
75
|
+
deselectAll: 'Deseleccionar todo',
|
|
76
|
+
selectCurrent: 'Seleccionar página actual',
|
|
77
|
+
invertCurrent: 'Invertir selección actual',
|
|
78
|
+
removeAll: 'Eliminar todo',
|
|
79
|
+
removeCurrent: 'Eliminar página actual',
|
|
80
|
+
moveToTarget: 'Mover al destino',
|
|
81
|
+
moveToSource: 'Mover al origen',
|
|
82
|
+
clearSearch: 'Borrar búsqueda',
|
|
83
|
+
calendarYear: 'Año',
|
|
84
|
+
calendarMonth: 'Mes',
|
|
85
|
+
calendarView: 'Vista del calendario',
|
|
86
|
+
zoomIn: 'Acercar',
|
|
87
|
+
zoomOut: 'Alejar',
|
|
88
|
+
rotateLeft: 'Girar a la izquierda',
|
|
89
|
+
rotateRight: 'Girar a la derecha',
|
|
90
|
+
flipX: 'Voltear horizontalmente',
|
|
91
|
+
flipY: 'Voltear verticalmente',
|
|
92
|
+
colorMode: 'Modo de color',
|
|
93
|
+
colorSingle: 'Color sólido',
|
|
94
|
+
colorGradient: 'Degradado',
|
|
95
|
+
colorStop: 'Punto de color',
|
|
96
|
+
addColorStop: 'Añadir punto de color',
|
|
97
|
+
removeColorStop: 'Eliminar punto de color',
|
|
98
|
+
colorPosition: 'Posición',
|
|
99
|
+
colorStopPosition: 'Posición del punto',
|
|
100
|
+
colorFormat: 'Formato de color',
|
|
101
|
+
colorHex: 'Color hexadecimal',
|
|
102
|
+
colorRed: 'Rojo',
|
|
103
|
+
colorGreen: 'Verde',
|
|
104
|
+
colorBlue: 'Azul',
|
|
105
|
+
colorHue: 'Tono',
|
|
106
|
+
colorSaturation: 'Saturación',
|
|
107
|
+
colorBrightness: 'Brillo',
|
|
108
|
+
colorAlpha: 'Opacidad',
|
|
109
|
+
clearColor: 'Borrar color',
|
|
110
|
+
colorPreset: 'Preajuste',
|
|
111
|
+
colorTransparent: 'Transparente',
|
|
112
|
+
chooseColor: 'Elegir color',
|
|
113
|
+
colorPicker: 'Selector de color',
|
|
114
|
+
loadingQrCode: 'Cargando código QR',
|
|
115
|
+
loadingNotification: 'Cargando notificación',
|
|
116
|
+
closeNotification: 'Cerrar notificación',
|
|
117
|
+
floatingActions: 'Acciones flotantes',
|
|
118
|
+
breadcrumb: 'Ruta de navegación',
|
|
119
|
+
showMore: 'Mostrar más',
|
|
120
|
+
collapsePanel: 'Contraer panel',
|
|
121
|
+
selectionActions: 'Acciones de selección',
|
|
122
|
+
more: 'Más',
|
|
123
|
+
scrollVertically: 'Desplazar verticalmente',
|
|
124
|
+
scrollHorizontally: 'Desplazar horizontalmente',
|
|
125
|
+
filter: 'Filtrar',
|
|
126
|
+
filterReset: 'Restablecer filtros',
|
|
127
|
+
page: (page)=>`Página ${page}`,
|
|
128
|
+
selectRow: (label)=>`Seleccionar fila ${label}`,
|
|
129
|
+
moreUsers: (count)=>`${count} usuarios más`,
|
|
130
|
+
resizePanels: (first, second)=>`Cambiar tamaño de los paneles ${first} y ${second}`,
|
|
131
|
+
backToTop: 'Volver arriba',
|
|
132
|
+
successNotification: 'Notificación de éxito',
|
|
133
|
+
errorNotification: 'Notificación de error',
|
|
134
|
+
warningNotification: 'Notificación de advertencia',
|
|
135
|
+
infoNotification: 'Notificación informativa',
|
|
136
|
+
notification: 'Notificación',
|
|
137
|
+
removeFileError: 'No se pudo eliminar el archivo',
|
|
138
|
+
readFileError: 'No se pudo leer el archivo',
|
|
139
|
+
millisecond: 'Milisegundo',
|
|
140
|
+
meridiem: 'Mañana/Tarde',
|
|
141
|
+
pageUnit: 'página',
|
|
142
|
+
itemCount: createItemCount('es-ES', {
|
|
143
|
+
one: '# elemento',
|
|
144
|
+
other: '# elementos'
|
|
145
|
+
})
|
|
146
|
+
},
|
|
147
|
+
form: createFormMessages({
|
|
148
|
+
default: "Error de validación en «${name}»",
|
|
149
|
+
required: "«${name}» es obligatorio",
|
|
150
|
+
enum: "«${name}» debe ser uno de [${enum}]",
|
|
151
|
+
whitespace: "«${name}» no puede estar vacío",
|
|
152
|
+
invalid: "«${name}» debe ser de tipo ${type}",
|
|
153
|
+
dateFormat: "El formato de fecha de «${name}» no es válido",
|
|
154
|
+
dateParse: "No se pudo interpretar «${name}» como fecha",
|
|
155
|
+
dateInvalid: "«${name}» no es una fecha válida",
|
|
156
|
+
string: {
|
|
157
|
+
len: "«${name}» debe tener exactamente ${len} caracteres",
|
|
158
|
+
min: "«${name}» debe tener al menos ${min} caracteres",
|
|
159
|
+
max: "«${name}» no puede superar ${max} caracteres",
|
|
160
|
+
range: "«${name}» debe tener entre ${min} y ${max} caracteres"
|
|
161
|
+
},
|
|
162
|
+
number: {
|
|
163
|
+
len: "«${name}» debe ser igual a ${len}",
|
|
164
|
+
min: "«${name}» no puede ser menor que ${min}",
|
|
165
|
+
max: "«${name}» no puede ser mayor que ${max}",
|
|
166
|
+
range: "«${name}» debe estar entre ${min} y ${max}"
|
|
167
|
+
},
|
|
168
|
+
array: {
|
|
169
|
+
len: "«${name}» debe contener exactamente ${len} elementos",
|
|
170
|
+
min: "«${name}» debe contener al menos ${min} elementos",
|
|
171
|
+
max: "«${name}» no puede contener más de ${max} elementos",
|
|
172
|
+
range: "«${name}» debe contener entre ${min} y ${max} elementos"
|
|
173
|
+
},
|
|
174
|
+
pattern: "«${name}» no coincide con el patrón ${pattern}",
|
|
175
|
+
typeNames: {
|
|
176
|
+
string: 'texto',
|
|
177
|
+
method: 'función',
|
|
178
|
+
array: 'lista',
|
|
179
|
+
object: 'objeto',
|
|
180
|
+
number: 'número',
|
|
181
|
+
date: 'fecha',
|
|
182
|
+
boolean: 'booleano',
|
|
183
|
+
integer: 'entero',
|
|
184
|
+
float: 'número decimal',
|
|
185
|
+
regexp: 'expresión regular',
|
|
186
|
+
email: 'correo electrónico',
|
|
187
|
+
tel: 'número de teléfono',
|
|
188
|
+
url: 'dirección web',
|
|
189
|
+
hex: 'valor hexadecimal'
|
|
190
|
+
}
|
|
191
|
+
})
|
|
192
|
+
});
|
|
193
|
+
const locales_es_ES = esES;
|
|
194
|
+
export default locales_es_ES;
|
|
195
|
+
export { esES };
|