@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,194 @@
|
|
|
1
|
+
import tr_TR from "@rc-component/picker/locale/tr_TR";
|
|
2
|
+
import "dayjs/locale/tr";
|
|
3
|
+
import { createFormMessages, createItemCount, createLocale } from "./create-locale.js";
|
|
4
|
+
const trTR = createLocale({
|
|
5
|
+
locale: 'tr_TR',
|
|
6
|
+
numberLocale: 'tr-TR',
|
|
7
|
+
dayjsLocale: 'tr',
|
|
8
|
+
weekStartsOn: 1,
|
|
9
|
+
pickerLocale: tr_TR,
|
|
10
|
+
select: 'Seç',
|
|
11
|
+
searchPlaceholder: 'Ara…',
|
|
12
|
+
search: 'Ara',
|
|
13
|
+
showPassword: 'Şifreyi göster',
|
|
14
|
+
hidePassword: 'Şifreyi gizle',
|
|
15
|
+
otpLabel: (index, length)=>`${length} karakterden ${index}. karakter`,
|
|
16
|
+
searchOptions: 'Seçeneklerde ara',
|
|
17
|
+
noResults: 'Sonuç yok',
|
|
18
|
+
emptyDescription: 'Veri yok',
|
|
19
|
+
done: 'Bitti',
|
|
20
|
+
clear: 'Temizle',
|
|
21
|
+
close: 'Kapat',
|
|
22
|
+
remove: (label)=>`${label} öğesini kaldır`,
|
|
23
|
+
dateTime: 'Tarih ve saat',
|
|
24
|
+
selectDate: 'Tarih seç',
|
|
25
|
+
selectTime: 'Saat seç',
|
|
26
|
+
startTime: 'Başlangıç saati',
|
|
27
|
+
endTime: 'Bitiş saati',
|
|
28
|
+
dateRange: 'Tarih aralığı seç',
|
|
29
|
+
startDate: 'Başlangıç tarihi',
|
|
30
|
+
endDate: 'Bitiş tarihi',
|
|
31
|
+
now: 'Şimdi',
|
|
32
|
+
ok: 'Tamam',
|
|
33
|
+
cancel: 'İptal',
|
|
34
|
+
previous: 'Önceki',
|
|
35
|
+
next: 'Sonraki',
|
|
36
|
+
previousMonth: 'Önceki ay',
|
|
37
|
+
nextMonth: 'Sonraki ay',
|
|
38
|
+
previousYear: 'Önceki yıl',
|
|
39
|
+
nextYear: 'Sonraki yıl',
|
|
40
|
+
hour: 'Saat',
|
|
41
|
+
minute: 'Dakika',
|
|
42
|
+
second: 'Saniye',
|
|
43
|
+
qrCode: {
|
|
44
|
+
expired: 'QR kodunun süresi doldu',
|
|
45
|
+
refresh: 'Yenile',
|
|
46
|
+
scanned: 'Tarandı'
|
|
47
|
+
},
|
|
48
|
+
messages: {
|
|
49
|
+
tableEmpty: 'Veri yok',
|
|
50
|
+
loading: 'Yükleniyor',
|
|
51
|
+
pagination: 'Sayfalama',
|
|
52
|
+
previousPage: 'Önceki sayfa',
|
|
53
|
+
nextPage: 'Sonraki sayfa',
|
|
54
|
+
itemsPerPage: '/ sayfa',
|
|
55
|
+
pageSize: 'Sayfa başına öğe',
|
|
56
|
+
jumpTo: 'Git',
|
|
57
|
+
jumpToConfirm: 'Git',
|
|
58
|
+
previousPages: 'Önceki sayfalar',
|
|
59
|
+
nextPages: 'Sonraki sayfalar',
|
|
60
|
+
selectAllRows: 'Tüm satırları seç',
|
|
61
|
+
expandRow: 'Satırı genişlet',
|
|
62
|
+
collapseRow: 'Satırı daralt',
|
|
63
|
+
uploadFile: 'Dosya yükle',
|
|
64
|
+
uploadDrop: 'Yüklemek için tıklayın veya dosyaları buraya bırakın',
|
|
65
|
+
removeFile: 'Dosyayı kaldır',
|
|
66
|
+
previewFile: 'Dosyayı önizle',
|
|
67
|
+
downloadFile: 'Dosyayı indir',
|
|
68
|
+
uploadError: 'Yükleme başarısız',
|
|
69
|
+
previewUnavailable: 'Önizleme kullanılamıyor',
|
|
70
|
+
source: 'Kaynak',
|
|
71
|
+
target: 'Hedef',
|
|
72
|
+
itemUnit: 'öğe',
|
|
73
|
+
itemsUnit: 'öğe',
|
|
74
|
+
selectAll: 'Tümünü seç',
|
|
75
|
+
deselectAll: 'Seçimi kaldır',
|
|
76
|
+
selectCurrent: 'Geçerli sayfayı seç',
|
|
77
|
+
invertCurrent: 'Geçerli seçimi tersine çevir',
|
|
78
|
+
removeAll: 'Tümünü kaldır',
|
|
79
|
+
removeCurrent: 'Geçerli sayfayı kaldır',
|
|
80
|
+
moveToTarget: 'Hedefe taşı',
|
|
81
|
+
moveToSource: 'Kaynağa taşı',
|
|
82
|
+
clearSearch: 'Aramayı temizle',
|
|
83
|
+
calendarYear: 'Yıl',
|
|
84
|
+
calendarMonth: 'Ay',
|
|
85
|
+
calendarView: 'Takvim görünümü',
|
|
86
|
+
zoomIn: 'Yakınlaştır',
|
|
87
|
+
zoomOut: 'Uzaklaştır',
|
|
88
|
+
rotateLeft: 'Sola döndür',
|
|
89
|
+
rotateRight: 'Sağa döndür',
|
|
90
|
+
flipX: 'Yatay çevir',
|
|
91
|
+
flipY: 'Dikey çevir',
|
|
92
|
+
colorMode: 'Renk modu',
|
|
93
|
+
colorSingle: 'Düz renk',
|
|
94
|
+
colorGradient: 'Gradyan',
|
|
95
|
+
colorStop: 'Renk durağı',
|
|
96
|
+
addColorStop: 'Renk durağı ekle',
|
|
97
|
+
removeColorStop: 'Renk durağını kaldır',
|
|
98
|
+
colorPosition: 'Konum',
|
|
99
|
+
colorStopPosition: 'Durak konumu',
|
|
100
|
+
colorFormat: 'Renk biçimi',
|
|
101
|
+
colorHex: 'Onaltılık renk',
|
|
102
|
+
colorRed: 'Kırmızı',
|
|
103
|
+
colorGreen: 'Yeşil',
|
|
104
|
+
colorBlue: 'Mavi',
|
|
105
|
+
colorHue: 'Ton',
|
|
106
|
+
colorSaturation: 'Doygunluk',
|
|
107
|
+
colorBrightness: 'Parlaklık',
|
|
108
|
+
colorAlpha: 'Opaklık',
|
|
109
|
+
clearColor: 'Rengi temizle',
|
|
110
|
+
colorPreset: 'Ön ayar',
|
|
111
|
+
colorTransparent: 'Şeffaf',
|
|
112
|
+
chooseColor: 'Renk seç',
|
|
113
|
+
colorPicker: 'Renk seçici',
|
|
114
|
+
loadingQrCode: 'QR kodu yükleniyor',
|
|
115
|
+
loadingNotification: 'Bildirim yükleniyor',
|
|
116
|
+
closeNotification: 'Bildirimi kapat',
|
|
117
|
+
floatingActions: 'Kayan eylemler',
|
|
118
|
+
breadcrumb: 'Gezinti yolu',
|
|
119
|
+
showMore: 'Daha fazla göster',
|
|
120
|
+
collapsePanel: 'Paneli daralt',
|
|
121
|
+
selectionActions: 'Seçim eylemleri',
|
|
122
|
+
more: 'Daha fazla',
|
|
123
|
+
scrollVertically: 'Dikey kaydır',
|
|
124
|
+
scrollHorizontally: 'Yatay kaydır',
|
|
125
|
+
filter: 'Filtrele',
|
|
126
|
+
filterReset: 'Filtreleri sıfırla',
|
|
127
|
+
page: (page)=>`Sayfa ${page}`,
|
|
128
|
+
selectRow: (label)=>`${label} satırını seç`,
|
|
129
|
+
moreUsers: (count)=>`Diğer kullanıcılar: ${count}`,
|
|
130
|
+
resizePanels: (first, second)=>`${first} ve ${second} panellerini yeniden boyutlandır`,
|
|
131
|
+
backToTop: 'Başa dön',
|
|
132
|
+
successNotification: 'Başarı bildirimi',
|
|
133
|
+
errorNotification: 'Hata bildirimi',
|
|
134
|
+
warningNotification: 'Uyarı bildirimi',
|
|
135
|
+
infoNotification: 'Bilgi bildirimi',
|
|
136
|
+
notification: 'Bildirim',
|
|
137
|
+
removeFileError: 'Dosya kaldırılamadı',
|
|
138
|
+
readFileError: 'Dosya okunamadı',
|
|
139
|
+
millisecond: 'Milisaniye',
|
|
140
|
+
meridiem: 'ÖÖ/ÖS',
|
|
141
|
+
pageUnit: 'sayfa',
|
|
142
|
+
itemCount: createItemCount('tr-TR', {
|
|
143
|
+
other: '# öğe'
|
|
144
|
+
})
|
|
145
|
+
},
|
|
146
|
+
form: createFormMessages({
|
|
147
|
+
default: "“${name}” alanında doğrulama hatası",
|
|
148
|
+
required: "“${name}” alanı zorunludur",
|
|
149
|
+
enum: "“${name}” değeri [${enum}] seçeneklerinden biri olmalıdır",
|
|
150
|
+
whitespace: "“${name}” boş olamaz",
|
|
151
|
+
invalid: "“${name}” geçerli bir ${type} olmalıdır",
|
|
152
|
+
dateFormat: "“${name}” tarih biçimi geçersiz",
|
|
153
|
+
dateParse: "“${name}” tarih olarak okunamadı",
|
|
154
|
+
dateInvalid: "“${name}” geçerli bir tarih değil",
|
|
155
|
+
string: {
|
|
156
|
+
len: "“${name}” tam olarak ${len} karakter olmalıdır",
|
|
157
|
+
min: "“${name}” en az ${min} karakter olmalıdır",
|
|
158
|
+
max: "“${name}” en fazla ${max} karakter olabilir",
|
|
159
|
+
range: "“${name}” ${min} ile ${max} karakter arasında olmalıdır"
|
|
160
|
+
},
|
|
161
|
+
number: {
|
|
162
|
+
len: "“${name}” ${len} değerine eşit olmalıdır",
|
|
163
|
+
min: "“${name}” ${min} değerinden küçük olamaz",
|
|
164
|
+
max: "“${name}” ${max} değerinden büyük olamaz",
|
|
165
|
+
range: "“${name}” ${min} ile ${max} arasında olmalıdır"
|
|
166
|
+
},
|
|
167
|
+
array: {
|
|
168
|
+
len: "“${name}” tam olarak ${len} öğe içermelidir",
|
|
169
|
+
min: "“${name}” en az ${min} öğe içermelidir",
|
|
170
|
+
max: "“${name}” en fazla ${max} öğe içerebilir",
|
|
171
|
+
range: "“${name}” ${min} ile ${max} arasında öğe içermelidir"
|
|
172
|
+
},
|
|
173
|
+
pattern: "“${name}” ${pattern} deseniyle eşleşmiyor",
|
|
174
|
+
typeNames: {
|
|
175
|
+
string: 'metin',
|
|
176
|
+
method: 'fonksiyon',
|
|
177
|
+
array: 'dizi',
|
|
178
|
+
object: 'nesne',
|
|
179
|
+
number: 'sayı',
|
|
180
|
+
date: 'tarih',
|
|
181
|
+
boolean: 'mantıksal değer',
|
|
182
|
+
integer: 'tam sayı',
|
|
183
|
+
float: 'ondalık sayı',
|
|
184
|
+
regexp: 'düzenli ifade',
|
|
185
|
+
email: 'e-posta adresi',
|
|
186
|
+
tel: 'telefon numarası',
|
|
187
|
+
url: 'web adresi',
|
|
188
|
+
hex: 'onaltılık değer'
|
|
189
|
+
}
|
|
190
|
+
})
|
|
191
|
+
});
|
|
192
|
+
const locales_tr_TR = trTR;
|
|
193
|
+
export default locales_tr_TR;
|
|
194
|
+
export { trTR };
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import type { ValidateMessages } from '@rc-component/form/es/interface';
|
|
2
|
+
import type { Locale as PickerLocale } from '@rc-component/picker/interface';
|
|
3
|
+
/** Built-in Select and date-picker text. Arrays use calendar order (Monday first). */
|
|
4
|
+
export interface TaoLocale {
|
|
5
|
+
select: string;
|
|
6
|
+
searchPlaceholder: string;
|
|
7
|
+
search?: string;
|
|
8
|
+
showPassword?: string;
|
|
9
|
+
hidePassword?: string;
|
|
10
|
+
otpLabel?: (index: number, length: number) => string;
|
|
11
|
+
searchOptions: string;
|
|
12
|
+
noResults: string;
|
|
13
|
+
/** Empty-state text. Omitted custom locales use the built-in English text. */
|
|
14
|
+
emptyDescription?: string;
|
|
15
|
+
/** BCP 47 / picker locale identifier; omitted custom locales use en_US. */
|
|
16
|
+
locale?: string;
|
|
17
|
+
/** BCP 47 locale used by numeric displays and input controls. */
|
|
18
|
+
numberLocale?: string;
|
|
19
|
+
/** Registered Day.js locale used on individual date instances. */
|
|
20
|
+
dayjsLocale?: string;
|
|
21
|
+
/** First weekday: Sunday = 0. The weekdays array remains Monday-first. */
|
|
22
|
+
weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
23
|
+
pickerLocale?: PickerLocale;
|
|
24
|
+
/** Component text overrides. Missing entries inherit from the parent. */
|
|
25
|
+
messages?: Partial<TaoMessages>;
|
|
26
|
+
form?: ValidateMessages;
|
|
27
|
+
done: string;
|
|
28
|
+
clear: string;
|
|
29
|
+
close: string;
|
|
30
|
+
remove: (label: string) => string;
|
|
31
|
+
dateTime: string;
|
|
32
|
+
/** Date-only picker title. Omitted custom locales use the built-in English text. */
|
|
33
|
+
selectDate?: string;
|
|
34
|
+
selectTime?: string;
|
|
35
|
+
startTime?: string;
|
|
36
|
+
endTime?: string;
|
|
37
|
+
qrCode?: {
|
|
38
|
+
expired: string;
|
|
39
|
+
refresh: string;
|
|
40
|
+
scanned: string;
|
|
41
|
+
};
|
|
42
|
+
dateRange: string;
|
|
43
|
+
startDate: string;
|
|
44
|
+
endDate: string;
|
|
45
|
+
now: string;
|
|
46
|
+
ok: string;
|
|
47
|
+
/** Cancel text. Omitted custom locales use the built-in English text. */
|
|
48
|
+
cancel?: string;
|
|
49
|
+
previous: string;
|
|
50
|
+
next: string;
|
|
51
|
+
previousMonth: string;
|
|
52
|
+
nextMonth: string;
|
|
53
|
+
previousYear: string;
|
|
54
|
+
nextYear: string;
|
|
55
|
+
hour: string;
|
|
56
|
+
minute: string;
|
|
57
|
+
second: string;
|
|
58
|
+
weekdays: readonly [string, string, string, string, string, string, string];
|
|
59
|
+
months: readonly [
|
|
60
|
+
string,
|
|
61
|
+
string,
|
|
62
|
+
string,
|
|
63
|
+
string,
|
|
64
|
+
string,
|
|
65
|
+
string,
|
|
66
|
+
string,
|
|
67
|
+
string,
|
|
68
|
+
string,
|
|
69
|
+
string,
|
|
70
|
+
string,
|
|
71
|
+
string
|
|
72
|
+
];
|
|
73
|
+
monthTitle: (month: number, year: number) => string;
|
|
74
|
+
calendarTitle: (month: number, year: number) => string;
|
|
75
|
+
}
|
|
76
|
+
export interface TaoMessages {
|
|
77
|
+
loading: string;
|
|
78
|
+
backToTop: string;
|
|
79
|
+
successNotification: string;
|
|
80
|
+
errorNotification: string;
|
|
81
|
+
warningNotification: string;
|
|
82
|
+
infoNotification: string;
|
|
83
|
+
notification: string;
|
|
84
|
+
removeFileError: string;
|
|
85
|
+
readFileError: string;
|
|
86
|
+
pagination: string;
|
|
87
|
+
previousPage: string;
|
|
88
|
+
nextPage: string;
|
|
89
|
+
itemsPerPage: string;
|
|
90
|
+
pageSize: string;
|
|
91
|
+
pageUnit: string;
|
|
92
|
+
jumpTo: string;
|
|
93
|
+
jumpToConfirm: string;
|
|
94
|
+
previousPages: string;
|
|
95
|
+
nextPages: string;
|
|
96
|
+
tableEmpty: string;
|
|
97
|
+
selectAllRows: string;
|
|
98
|
+
expandRow: string;
|
|
99
|
+
collapseRow: string;
|
|
100
|
+
uploadFile: string;
|
|
101
|
+
uploadDrop: string;
|
|
102
|
+
removeFile: string;
|
|
103
|
+
previewFile: string;
|
|
104
|
+
downloadFile: string;
|
|
105
|
+
uploadError: string;
|
|
106
|
+
previewUnavailable: string;
|
|
107
|
+
source: string;
|
|
108
|
+
target: string;
|
|
109
|
+
itemUnit: string;
|
|
110
|
+
itemsUnit: string;
|
|
111
|
+
selectAll: string;
|
|
112
|
+
deselectAll: string;
|
|
113
|
+
selectCurrent: string;
|
|
114
|
+
invertCurrent: string;
|
|
115
|
+
removeAll: string;
|
|
116
|
+
removeCurrent: string;
|
|
117
|
+
moveToTarget: string;
|
|
118
|
+
moveToSource: string;
|
|
119
|
+
clearSearch: string;
|
|
120
|
+
calendarYear: string;
|
|
121
|
+
calendarMonth: string;
|
|
122
|
+
calendarView: string;
|
|
123
|
+
millisecond: string;
|
|
124
|
+
meridiem: string;
|
|
125
|
+
zoomIn: string;
|
|
126
|
+
zoomOut: string;
|
|
127
|
+
rotateLeft: string;
|
|
128
|
+
rotateRight: string;
|
|
129
|
+
flipX: string;
|
|
130
|
+
flipY: string;
|
|
131
|
+
colorMode: string;
|
|
132
|
+
colorSingle: string;
|
|
133
|
+
colorGradient: string;
|
|
134
|
+
colorStop: string;
|
|
135
|
+
addColorStop: string;
|
|
136
|
+
removeColorStop: string;
|
|
137
|
+
colorPosition: string;
|
|
138
|
+
colorStopPosition: string;
|
|
139
|
+
colorFormat: string;
|
|
140
|
+
colorHex: string;
|
|
141
|
+
colorRed: string;
|
|
142
|
+
colorGreen: string;
|
|
143
|
+
colorBlue: string;
|
|
144
|
+
colorHue: string;
|
|
145
|
+
colorSaturation: string;
|
|
146
|
+
colorBrightness: string;
|
|
147
|
+
colorAlpha: string;
|
|
148
|
+
clearColor: string;
|
|
149
|
+
colorPreset: string;
|
|
150
|
+
colorTransparent: string;
|
|
151
|
+
chooseColor: string;
|
|
152
|
+
colorPicker: string;
|
|
153
|
+
loadingQrCode: string;
|
|
154
|
+
loadingNotification: string;
|
|
155
|
+
closeNotification: string;
|
|
156
|
+
floatingActions: string;
|
|
157
|
+
breadcrumb: string;
|
|
158
|
+
showMore: string;
|
|
159
|
+
collapsePanel: string;
|
|
160
|
+
selectionActions: string;
|
|
161
|
+
more: string;
|
|
162
|
+
scrollVertically: string;
|
|
163
|
+
scrollHorizontally: string;
|
|
164
|
+
filter: string;
|
|
165
|
+
filterReset: string;
|
|
166
|
+
page: (page: number) => string;
|
|
167
|
+
itemCount: (count: number) => string;
|
|
168
|
+
selectRow: (label: string) => string;
|
|
169
|
+
moreUsers: (count: number) => string;
|
|
170
|
+
resizePanels: (first: number, second: number) => string;
|
|
171
|
+
}
|
|
172
|
+
/** Complete dictionaries shipped by tao-ui; custom TaoLocale values stay compatible. */
|
|
173
|
+
export type BuiltinTaoLocale = Required<Omit<TaoLocale, 'messages' | 'form'>> & {
|
|
174
|
+
messages: TaoMessages;
|
|
175
|
+
form: ValidateMessages;
|
|
176
|
+
};
|
|
File without changes
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import vi_VN from "@rc-component/picker/locale/vi_VN";
|
|
2
|
+
import "dayjs/locale/vi";
|
|
3
|
+
import { createFormMessages, createItemCount, createLocale } from "./create-locale.js";
|
|
4
|
+
const viVN = createLocale({
|
|
5
|
+
locale: 'vi_VN',
|
|
6
|
+
numberLocale: 'vi-VN',
|
|
7
|
+
dayjsLocale: 'vi',
|
|
8
|
+
weekStartsOn: 1,
|
|
9
|
+
pickerLocale: vi_VN,
|
|
10
|
+
select: 'Chọn',
|
|
11
|
+
searchPlaceholder: 'Tìm kiếm…',
|
|
12
|
+
search: 'Tìm kiếm',
|
|
13
|
+
showPassword: 'Hiện mật khẩu',
|
|
14
|
+
hidePassword: 'Ẩn mật khẩu',
|
|
15
|
+
otpLabel: (index, length)=>`Ký tự ${index} trên ${length}`,
|
|
16
|
+
searchOptions: 'Tìm tùy chọn',
|
|
17
|
+
noResults: 'Không có kết quả',
|
|
18
|
+
emptyDescription: 'Không có dữ liệu',
|
|
19
|
+
done: 'Xong',
|
|
20
|
+
clear: 'Xóa',
|
|
21
|
+
close: 'Đóng',
|
|
22
|
+
remove: (label)=>`Xóa ${label}`,
|
|
23
|
+
dateTime: 'Ngày và giờ',
|
|
24
|
+
selectDate: 'Chọn ngày',
|
|
25
|
+
selectTime: 'Chọn giờ',
|
|
26
|
+
startTime: 'Giờ bắt đầu',
|
|
27
|
+
endTime: 'Giờ kết thúc',
|
|
28
|
+
dateRange: 'Chọn khoảng ngày',
|
|
29
|
+
startDate: 'Ngày bắt đầu',
|
|
30
|
+
endDate: 'Ngày kết thúc',
|
|
31
|
+
now: 'Bây giờ',
|
|
32
|
+
ok: 'OK',
|
|
33
|
+
cancel: 'Hủy',
|
|
34
|
+
previous: 'Trước',
|
|
35
|
+
next: 'Tiếp',
|
|
36
|
+
previousMonth: 'Tháng trước',
|
|
37
|
+
nextMonth: 'Tháng sau',
|
|
38
|
+
previousYear: 'Năm trước',
|
|
39
|
+
nextYear: 'Năm sau',
|
|
40
|
+
hour: 'Giờ',
|
|
41
|
+
minute: 'Phút',
|
|
42
|
+
second: 'Giây',
|
|
43
|
+
qrCode: {
|
|
44
|
+
expired: 'Mã QR đã hết hạn',
|
|
45
|
+
refresh: 'Làm mới',
|
|
46
|
+
scanned: 'Đã quét'
|
|
47
|
+
},
|
|
48
|
+
messages: {
|
|
49
|
+
tableEmpty: 'Không có dữ liệu',
|
|
50
|
+
loading: 'Đang tải',
|
|
51
|
+
pagination: 'Phân trang',
|
|
52
|
+
previousPage: 'Trang trước',
|
|
53
|
+
nextPage: 'Trang sau',
|
|
54
|
+
itemsPerPage: '/ trang',
|
|
55
|
+
pageSize: 'Số mục mỗi trang',
|
|
56
|
+
jumpTo: 'Đến trang',
|
|
57
|
+
jumpToConfirm: 'Đi',
|
|
58
|
+
previousPages: 'Các trang trước',
|
|
59
|
+
nextPages: 'Các trang sau',
|
|
60
|
+
selectAllRows: 'Chọn tất cả hàng',
|
|
61
|
+
expandRow: 'Mở rộng hàng',
|
|
62
|
+
collapseRow: 'Thu gọn hàng',
|
|
63
|
+
uploadFile: 'Tải tệp lên',
|
|
64
|
+
uploadDrop: 'Nhấp hoặc thả tệp vào đây để tải lên',
|
|
65
|
+
removeFile: 'Xóa tệp',
|
|
66
|
+
previewFile: 'Xem trước tệp',
|
|
67
|
+
downloadFile: 'Tải tệp xuống',
|
|
68
|
+
uploadError: 'Tải lên thất bại',
|
|
69
|
+
previewUnavailable: 'Không thể xem trước',
|
|
70
|
+
source: 'Nguồn',
|
|
71
|
+
target: 'Đích',
|
|
72
|
+
itemUnit: 'mục',
|
|
73
|
+
itemsUnit: 'mục',
|
|
74
|
+
selectAll: 'Chọn tất cả',
|
|
75
|
+
deselectAll: 'Bỏ chọn tất cả',
|
|
76
|
+
selectCurrent: 'Chọn trang hiện tại',
|
|
77
|
+
invertCurrent: 'Đảo ngược lựa chọn hiện tại',
|
|
78
|
+
removeAll: 'Xóa tất cả',
|
|
79
|
+
removeCurrent: 'Xóa trang hiện tại',
|
|
80
|
+
moveToTarget: 'Chuyển sang đích',
|
|
81
|
+
moveToSource: 'Chuyển về nguồn',
|
|
82
|
+
clearSearch: 'Xóa tìm kiếm',
|
|
83
|
+
calendarYear: 'Năm',
|
|
84
|
+
calendarMonth: 'Tháng',
|
|
85
|
+
calendarView: 'Chế độ xem lịch',
|
|
86
|
+
zoomIn: 'Phóng to',
|
|
87
|
+
zoomOut: 'Thu nhỏ',
|
|
88
|
+
rotateLeft: 'Xoay trái',
|
|
89
|
+
rotateRight: 'Xoay phải',
|
|
90
|
+
flipX: 'Lật ngang',
|
|
91
|
+
flipY: 'Lật dọc',
|
|
92
|
+
colorMode: 'Chế độ màu',
|
|
93
|
+
colorSingle: 'Màu đơn',
|
|
94
|
+
colorGradient: 'Chuyển màu',
|
|
95
|
+
colorStop: 'Điểm màu',
|
|
96
|
+
addColorStop: 'Thêm điểm màu',
|
|
97
|
+
removeColorStop: 'Xóa điểm màu',
|
|
98
|
+
colorPosition: 'Vị trí',
|
|
99
|
+
colorStopPosition: 'Vị trí điểm màu',
|
|
100
|
+
colorFormat: 'Định dạng màu',
|
|
101
|
+
colorHex: 'Màu thập lục phân',
|
|
102
|
+
colorRed: 'Đỏ',
|
|
103
|
+
colorGreen: 'Xanh lá',
|
|
104
|
+
colorBlue: 'Xanh dương',
|
|
105
|
+
colorHue: 'Sắc độ',
|
|
106
|
+
colorSaturation: 'Độ bão hòa',
|
|
107
|
+
colorBrightness: 'Độ sáng',
|
|
108
|
+
colorAlpha: 'Độ mờ',
|
|
109
|
+
clearColor: 'Xóa màu',
|
|
110
|
+
colorPreset: 'Thiết lập sẵn',
|
|
111
|
+
colorTransparent: 'Trong suốt',
|
|
112
|
+
chooseColor: 'Chọn màu',
|
|
113
|
+
colorPicker: 'Bộ chọn màu',
|
|
114
|
+
loadingQrCode: 'Đang tải mã QR',
|
|
115
|
+
loadingNotification: 'Đang tải thông báo',
|
|
116
|
+
closeNotification: 'Đóng thông báo',
|
|
117
|
+
floatingActions: 'Thao tác nổi',
|
|
118
|
+
breadcrumb: 'Đường dẫn điều hướng',
|
|
119
|
+
showMore: 'Hiện thêm',
|
|
120
|
+
collapsePanel: 'Thu gọn bảng',
|
|
121
|
+
selectionActions: 'Thao tác lựa chọn',
|
|
122
|
+
more: 'Thêm',
|
|
123
|
+
scrollVertically: 'Cuộn dọc',
|
|
124
|
+
scrollHorizontally: 'Cuộn ngang',
|
|
125
|
+
filter: 'Bộ lọc',
|
|
126
|
+
filterReset: 'Đặt lại bộ lọc',
|
|
127
|
+
page: (page)=>`Trang ${page}`,
|
|
128
|
+
selectRow: (label)=>`Chọn hàng ${label}`,
|
|
129
|
+
moreUsers: (count)=>`Thêm ${count} người dùng`,
|
|
130
|
+
resizePanels: (first, second)=>`Đổi kích thước bảng ${first} và ${second}`,
|
|
131
|
+
backToTop: 'Về đầu trang',
|
|
132
|
+
successNotification: 'Thông báo thành công',
|
|
133
|
+
errorNotification: 'Thông báo lỗi',
|
|
134
|
+
warningNotification: 'Thông báo cảnh báo',
|
|
135
|
+
infoNotification: 'Thông báo thông tin',
|
|
136
|
+
notification: 'Thông báo',
|
|
137
|
+
removeFileError: 'Không thể xóa tệp',
|
|
138
|
+
readFileError: 'Không thể đọc tệp',
|
|
139
|
+
millisecond: 'Mili giây',
|
|
140
|
+
meridiem: 'Sáng/Chiều',
|
|
141
|
+
pageUnit: 'trang',
|
|
142
|
+
itemCount: createItemCount('vi-VN', {
|
|
143
|
+
other: '# mục'
|
|
144
|
+
})
|
|
145
|
+
},
|
|
146
|
+
form: createFormMessages({
|
|
147
|
+
default: "Lỗi xác thực trường “${name}”",
|
|
148
|
+
required: "“${name}” là bắt buộc",
|
|
149
|
+
enum: "“${name}” phải là một trong các giá trị [${enum}]",
|
|
150
|
+
whitespace: "“${name}” không được để trống",
|
|
151
|
+
invalid: "“${name}” phải là ${type} hợp lệ",
|
|
152
|
+
dateFormat: "Định dạng ngày của “${name}” không hợp lệ",
|
|
153
|
+
dateParse: "Không thể đọc “${name}” dưới dạng ngày",
|
|
154
|
+
dateInvalid: "“${name}” không phải ngày hợp lệ",
|
|
155
|
+
string: {
|
|
156
|
+
len: "“${name}” phải có đúng ${len} ký tự",
|
|
157
|
+
min: "“${name}” phải có ít nhất ${min} ký tự",
|
|
158
|
+
max: "“${name}” không được vượt quá ${max} ký tự",
|
|
159
|
+
range: "“${name}” phải có từ ${min} đến ${max} ký tự"
|
|
160
|
+
},
|
|
161
|
+
number: {
|
|
162
|
+
len: "“${name}” phải bằng ${len}",
|
|
163
|
+
min: "“${name}” không được nhỏ hơn ${min}",
|
|
164
|
+
max: "“${name}” không được lớn hơn ${max}",
|
|
165
|
+
range: "“${name}” phải nằm trong khoảng ${min} đến ${max}"
|
|
166
|
+
},
|
|
167
|
+
array: {
|
|
168
|
+
len: "“${name}” phải chứa đúng ${len} mục",
|
|
169
|
+
min: "“${name}” phải chứa ít nhất ${min} mục",
|
|
170
|
+
max: "“${name}” không được chứa quá ${max} mục",
|
|
171
|
+
range: "“${name}” phải chứa từ ${min} đến ${max} mục"
|
|
172
|
+
},
|
|
173
|
+
pattern: "“${name}” không khớp với mẫu ${pattern}",
|
|
174
|
+
typeNames: {
|
|
175
|
+
string: 'chuỗi ký tự',
|
|
176
|
+
method: 'hàm',
|
|
177
|
+
array: 'mảng',
|
|
178
|
+
object: 'đối tượng',
|
|
179
|
+
number: 'số',
|
|
180
|
+
date: 'ngày',
|
|
181
|
+
boolean: 'giá trị boolean',
|
|
182
|
+
integer: 'số nguyên',
|
|
183
|
+
float: 'số thập phân',
|
|
184
|
+
regexp: 'biểu thức chính quy',
|
|
185
|
+
email: 'địa chỉ email',
|
|
186
|
+
tel: 'số điện thoại',
|
|
187
|
+
url: 'địa chỉ web',
|
|
188
|
+
hex: 'giá trị thập lục phân'
|
|
189
|
+
}
|
|
190
|
+
})
|
|
191
|
+
});
|
|
192
|
+
const locales_vi_VN = viVN;
|
|
193
|
+
export default locales_vi_VN;
|
|
194
|
+
export { viVN };
|