@thl-ui/locales 0.0.0-stage → 0.1.1
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/LICENSE +21 -0
- package/README.md +36 -2
- package/dist/en.d.ts +481 -0
- package/dist/en.js +384 -0
- package/dist/index.d.ts +34 -0
- package/dist/index.js +18 -0
- package/dist/ja.d.ts +4 -0
- package/dist/ja.js +367 -0
- package/dist/types.d.ts +25 -0
- package/dist/types.js +1 -0
- package/dist/vi.d.ts +4 -0
- package/dist/vi.js +384 -0
- package/dist/zh.d.ts +4 -0
- package/dist/zh.js +351 -0
- package/package.json +56 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 thl-ui contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,37 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @thl-ui/locales
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
thl-ui translations: English, Japanese, Vietnamese and Simplified Chinese.
|
|
4
|
+
|
|
5
|
+
Part of [thl-ui](https://thl.tandd.dev): one UI kit for React, Vue and Angular with a headless TypeScript core, global config, 12 skins, dark mode and i18n (en, ja, vi, zh).
|
|
6
|
+
|
|
7
|
+
Built-in UI strings for thl-ui in four languages: `en` (default), `ja`, `vi` and `zh`.
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm i @thl-ui/locales
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
```ts
|
|
14
|
+
import { en, ja, vi, zh, localeInfo } from '@thl-ui/locales';
|
|
15
|
+
import ja from '@thl-ui/locales/ja'; // or load one language only
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Add your own language or override strings through `config.messages`; see the [i18n guide](https://thl.tandd.dev/guide/i18n).
|
|
19
|
+
|
|
20
|
+
## Live demos
|
|
21
|
+
|
|
22
|
+
| Framework | Package | Live demo |
|
|
23
|
+
|---|---|---|
|
|
24
|
+
| React ≥ 18 | [`@thl-ui/react`](https://www.npmjs.com/package/@thl-ui/react) | [thl-react.tandd.dev](https://thl-react.tandd.dev) |
|
|
25
|
+
| Vue ≥ 3.5 | [`@thl-ui/vue`](https://www.npmjs.com/package/@thl-ui/vue) | [thl-vue.tandd.dev](https://thl-vue.tandd.dev) |
|
|
26
|
+
| Angular ≥ 20 | [`@thl-ui/angular`](https://www.npmjs.com/package/@thl-ui/angular) | [thl-angular.tandd.dev](https://thl-angular.tandd.dev) |
|
|
27
|
+
|
|
28
|
+
Each demo is the full 74-page admin template, built with the packages installed from npm. Open the ⚙ panel to switch skin, layout, dark mode and language.
|
|
29
|
+
|
|
30
|
+
## Links
|
|
31
|
+
|
|
32
|
+
- Docs: [thl.tandd.dev/guide/i18n](https://thl.tandd.dev/guide/i18n) (English, 日本語, Tiếng Việt, 简体中文)
|
|
33
|
+
- Source and issues: [GitLab](https://gitlab.com/tandd.packages/thl-ui)
|
|
34
|
+
|
|
35
|
+
## License
|
|
36
|
+
|
|
37
|
+
MIT
|
package/dist/en.d.ts
ADDED
|
@@ -0,0 +1,481 @@
|
|
|
1
|
+
declare const en: {
|
|
2
|
+
common: {
|
|
3
|
+
ok: string;
|
|
4
|
+
cancel: string;
|
|
5
|
+
close: string;
|
|
6
|
+
confirm: string;
|
|
7
|
+
save: string;
|
|
8
|
+
delete: string;
|
|
9
|
+
edit: string;
|
|
10
|
+
add: string;
|
|
11
|
+
search: string;
|
|
12
|
+
searchPlaceholder: string;
|
|
13
|
+
loading: string;
|
|
14
|
+
empty: string;
|
|
15
|
+
more: string;
|
|
16
|
+
back: string;
|
|
17
|
+
next: string;
|
|
18
|
+
previous: string;
|
|
19
|
+
submit: string;
|
|
20
|
+
reset: string;
|
|
21
|
+
yes: string;
|
|
22
|
+
no: string;
|
|
23
|
+
viewAll: string;
|
|
24
|
+
clear: string;
|
|
25
|
+
apply: string;
|
|
26
|
+
collapse: string;
|
|
27
|
+
expand: string;
|
|
28
|
+
remove: string;
|
|
29
|
+
selectAll: string;
|
|
30
|
+
required: string;
|
|
31
|
+
color: string;
|
|
32
|
+
editor: string;
|
|
33
|
+
min: string;
|
|
34
|
+
max: string;
|
|
35
|
+
value: string;
|
|
36
|
+
progress: string;
|
|
37
|
+
scrollRegion: string;
|
|
38
|
+
selectRow: string;
|
|
39
|
+
toggleDone: string;
|
|
40
|
+
carousel: string;
|
|
41
|
+
};
|
|
42
|
+
pagination: {
|
|
43
|
+
first: string;
|
|
44
|
+
last: string;
|
|
45
|
+
prev: string;
|
|
46
|
+
next: string;
|
|
47
|
+
page: string;
|
|
48
|
+
pageSize: string;
|
|
49
|
+
total: {
|
|
50
|
+
one: string;
|
|
51
|
+
other: string;
|
|
52
|
+
};
|
|
53
|
+
goto: string;
|
|
54
|
+
showing: string;
|
|
55
|
+
};
|
|
56
|
+
table: {
|
|
57
|
+
empty: string;
|
|
58
|
+
sortAsc: string;
|
|
59
|
+
sortDesc: string;
|
|
60
|
+
filter: string;
|
|
61
|
+
selected: {
|
|
62
|
+
one: string;
|
|
63
|
+
other: string;
|
|
64
|
+
};
|
|
65
|
+
actions: string;
|
|
66
|
+
search: string;
|
|
67
|
+
show: string;
|
|
68
|
+
};
|
|
69
|
+
upload: {
|
|
70
|
+
dropHere: string;
|
|
71
|
+
dropMultiple: string;
|
|
72
|
+
remove: string;
|
|
73
|
+
replace: string;
|
|
74
|
+
tooBig: string;
|
|
75
|
+
wrongType: string;
|
|
76
|
+
uploading: string;
|
|
77
|
+
uploaded: string;
|
|
78
|
+
failed: string;
|
|
79
|
+
browse: string;
|
|
80
|
+
};
|
|
81
|
+
datepicker: {
|
|
82
|
+
today: string;
|
|
83
|
+
clear: string;
|
|
84
|
+
selectDate: string;
|
|
85
|
+
selectTime: string;
|
|
86
|
+
startDate: string;
|
|
87
|
+
endDate: string;
|
|
88
|
+
now: string;
|
|
89
|
+
week: string;
|
|
90
|
+
ranges: {
|
|
91
|
+
today: string;
|
|
92
|
+
yesterday: string;
|
|
93
|
+
last7: string;
|
|
94
|
+
last30: string;
|
|
95
|
+
thisMonth: string;
|
|
96
|
+
lastMonth: string;
|
|
97
|
+
custom: string;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
select: {
|
|
101
|
+
placeholder: string;
|
|
102
|
+
noOptions: string;
|
|
103
|
+
addTag: string;
|
|
104
|
+
};
|
|
105
|
+
modal: {
|
|
106
|
+
close: string;
|
|
107
|
+
confirmTitle: string;
|
|
108
|
+
confirmText: string;
|
|
109
|
+
deleted: string;
|
|
110
|
+
};
|
|
111
|
+
steps: {
|
|
112
|
+
step: string;
|
|
113
|
+
finish: string;
|
|
114
|
+
completed: string;
|
|
115
|
+
};
|
|
116
|
+
session: {
|
|
117
|
+
warningTitle: string;
|
|
118
|
+
warningText: string;
|
|
119
|
+
stay: string;
|
|
120
|
+
logout: string;
|
|
121
|
+
idle: string;
|
|
122
|
+
expired: string;
|
|
123
|
+
};
|
|
124
|
+
validation: {
|
|
125
|
+
required: string;
|
|
126
|
+
email: string;
|
|
127
|
+
minLength: string;
|
|
128
|
+
maxLength: string;
|
|
129
|
+
min: string;
|
|
130
|
+
max: string;
|
|
131
|
+
pattern: string;
|
|
132
|
+
match: string;
|
|
133
|
+
number: string;
|
|
134
|
+
};
|
|
135
|
+
toast: {
|
|
136
|
+
success: string;
|
|
137
|
+
info: string;
|
|
138
|
+
warning: string;
|
|
139
|
+
error: string;
|
|
140
|
+
};
|
|
141
|
+
layout: {
|
|
142
|
+
toggleSidebar: string;
|
|
143
|
+
settings: string;
|
|
144
|
+
layoutOptions: string;
|
|
145
|
+
fixedHeader: string;
|
|
146
|
+
fixedSidebar: string;
|
|
147
|
+
withLightSidebar: string;
|
|
148
|
+
withDarkSidebar: string;
|
|
149
|
+
colorMode: string;
|
|
150
|
+
light: string;
|
|
151
|
+
dark: string;
|
|
152
|
+
auto: string;
|
|
153
|
+
language: string;
|
|
154
|
+
layout: string;
|
|
155
|
+
vertical: string;
|
|
156
|
+
mini: string;
|
|
157
|
+
horizontal: string;
|
|
158
|
+
chatOption: string;
|
|
159
|
+
messages: string;
|
|
160
|
+
notifications: {
|
|
161
|
+
one: string;
|
|
162
|
+
other: string;
|
|
163
|
+
};
|
|
164
|
+
tasks: string;
|
|
165
|
+
seeAllNotifications: string;
|
|
166
|
+
seeAllTasks: string;
|
|
167
|
+
myProfile: string;
|
|
168
|
+
myBalance: string;
|
|
169
|
+
inbox: string;
|
|
170
|
+
accountSetting: string;
|
|
171
|
+
logout: string;
|
|
172
|
+
online: string;
|
|
173
|
+
offline: string;
|
|
174
|
+
away: string;
|
|
175
|
+
busy: string;
|
|
176
|
+
copyright: string;
|
|
177
|
+
complete: string;
|
|
178
|
+
};
|
|
179
|
+
menu: {
|
|
180
|
+
dashboard: string;
|
|
181
|
+
dashboard1: string;
|
|
182
|
+
dashboard2: string;
|
|
183
|
+
dashboard3: string;
|
|
184
|
+
dashboard4: string;
|
|
185
|
+
apps: string;
|
|
186
|
+
inbox: string;
|
|
187
|
+
inboxDetail: string;
|
|
188
|
+
compose: string;
|
|
189
|
+
contact: string;
|
|
190
|
+
contactDetail: string;
|
|
191
|
+
calendar: string;
|
|
192
|
+
ecommerce: string;
|
|
193
|
+
products: string;
|
|
194
|
+
productDetail: string;
|
|
195
|
+
productEdit: string;
|
|
196
|
+
productOrders: string;
|
|
197
|
+
productCart: string;
|
|
198
|
+
productCheckout: string;
|
|
199
|
+
ui: string;
|
|
200
|
+
buttons: string;
|
|
201
|
+
panels: string;
|
|
202
|
+
panelBlock: string;
|
|
203
|
+
portlets: string;
|
|
204
|
+
tabs: string;
|
|
205
|
+
modals: string;
|
|
206
|
+
notification: string;
|
|
207
|
+
progress: string;
|
|
208
|
+
ribbons: string;
|
|
209
|
+
steps: string;
|
|
210
|
+
timeline: string;
|
|
211
|
+
timelineHorizontal: string;
|
|
212
|
+
carousel: string;
|
|
213
|
+
uiGeneral: string;
|
|
214
|
+
animation: string;
|
|
215
|
+
userCards: string;
|
|
216
|
+
customScroll: string;
|
|
217
|
+
forms: string;
|
|
218
|
+
formBasic: string;
|
|
219
|
+
formLayout: string;
|
|
220
|
+
formAdvanced: string;
|
|
221
|
+
formPickers: string;
|
|
222
|
+
formUpload: string;
|
|
223
|
+
formFileDrop: string;
|
|
224
|
+
checkRadio: string;
|
|
225
|
+
rangeSlider: string;
|
|
226
|
+
tables: string;
|
|
227
|
+
basicTable: string;
|
|
228
|
+
tableLayouts: string;
|
|
229
|
+
dataTable: string;
|
|
230
|
+
advancedTables: string;
|
|
231
|
+
editableTables: string;
|
|
232
|
+
responsiveTables: string;
|
|
233
|
+
widgets: string;
|
|
234
|
+
charts: string;
|
|
235
|
+
chartBasic: string;
|
|
236
|
+
chartMini: string;
|
|
237
|
+
chartGauge: string;
|
|
238
|
+
sparkline: string;
|
|
239
|
+
pages: string;
|
|
240
|
+
starter: string;
|
|
241
|
+
blank: string;
|
|
242
|
+
login: string;
|
|
243
|
+
register: string;
|
|
244
|
+
recover: string;
|
|
245
|
+
lock: string;
|
|
246
|
+
profile: string;
|
|
247
|
+
invoice: string;
|
|
248
|
+
pricing: string;
|
|
249
|
+
gallery: string;
|
|
250
|
+
searchResult: string;
|
|
251
|
+
sessionTimeout: string;
|
|
252
|
+
sessionIdle: string;
|
|
253
|
+
errors: string;
|
|
254
|
+
maps: string;
|
|
255
|
+
googleMap: string;
|
|
256
|
+
vectorMap: string;
|
|
257
|
+
icons: string;
|
|
258
|
+
landing: string;
|
|
259
|
+
};
|
|
260
|
+
pages: {
|
|
261
|
+
login: {
|
|
262
|
+
title: string;
|
|
263
|
+
username: string;
|
|
264
|
+
email: string;
|
|
265
|
+
password: string;
|
|
266
|
+
remember: string;
|
|
267
|
+
forgot: string;
|
|
268
|
+
submit: string;
|
|
269
|
+
noAccount: string;
|
|
270
|
+
signUp: string;
|
|
271
|
+
social: string;
|
|
272
|
+
};
|
|
273
|
+
register: {
|
|
274
|
+
title: string;
|
|
275
|
+
name: string;
|
|
276
|
+
confirmPassword: string;
|
|
277
|
+
agree: string;
|
|
278
|
+
terms: string;
|
|
279
|
+
haveAccount: string;
|
|
280
|
+
signIn: string;
|
|
281
|
+
};
|
|
282
|
+
recover: {
|
|
283
|
+
title: string;
|
|
284
|
+
text: string;
|
|
285
|
+
submit: string;
|
|
286
|
+
};
|
|
287
|
+
lock: {
|
|
288
|
+
title: string;
|
|
289
|
+
text: string;
|
|
290
|
+
submit: string;
|
|
291
|
+
};
|
|
292
|
+
error: {
|
|
293
|
+
400: {
|
|
294
|
+
title: string;
|
|
295
|
+
text: string;
|
|
296
|
+
};
|
|
297
|
+
403: {
|
|
298
|
+
title: string;
|
|
299
|
+
text: string;
|
|
300
|
+
};
|
|
301
|
+
404: {
|
|
302
|
+
title: string;
|
|
303
|
+
text: string;
|
|
304
|
+
};
|
|
305
|
+
500: {
|
|
306
|
+
title: string;
|
|
307
|
+
text: string;
|
|
308
|
+
};
|
|
309
|
+
503: {
|
|
310
|
+
title: string;
|
|
311
|
+
text: string;
|
|
312
|
+
};
|
|
313
|
+
backHome: string;
|
|
314
|
+
};
|
|
315
|
+
dashboard: {
|
|
316
|
+
totalVisit: string;
|
|
317
|
+
pageViews: string;
|
|
318
|
+
uniqueVisitor: string;
|
|
319
|
+
bounceRate: string;
|
|
320
|
+
sales: string;
|
|
321
|
+
revenue: string;
|
|
322
|
+
orders: string;
|
|
323
|
+
newClients: string;
|
|
324
|
+
recentComments: string;
|
|
325
|
+
todoList: string;
|
|
326
|
+
salesOverview: string;
|
|
327
|
+
productsYearly: string;
|
|
328
|
+
recentSales: string;
|
|
329
|
+
chat: string;
|
|
330
|
+
feeds: string;
|
|
331
|
+
weather: string;
|
|
332
|
+
};
|
|
333
|
+
inbox: {
|
|
334
|
+
compose: string;
|
|
335
|
+
inbox: string;
|
|
336
|
+
sent: string;
|
|
337
|
+
draft: string;
|
|
338
|
+
spam: string;
|
|
339
|
+
trash: string;
|
|
340
|
+
labels: string;
|
|
341
|
+
reply: string;
|
|
342
|
+
forward: string;
|
|
343
|
+
to: string;
|
|
344
|
+
subject: string;
|
|
345
|
+
send: string;
|
|
346
|
+
discard: string;
|
|
347
|
+
attachments: string;
|
|
348
|
+
};
|
|
349
|
+
invoice: {
|
|
350
|
+
title: string;
|
|
351
|
+
invoiceTo: string;
|
|
352
|
+
invoiceDate: string;
|
|
353
|
+
dueDate: string;
|
|
354
|
+
description: string;
|
|
355
|
+
quantity: string;
|
|
356
|
+
unitCost: string;
|
|
357
|
+
total: string;
|
|
358
|
+
subTotal: string;
|
|
359
|
+
vat: string;
|
|
360
|
+
print: string;
|
|
361
|
+
proceed: string;
|
|
362
|
+
};
|
|
363
|
+
pricing: {
|
|
364
|
+
perMonth: string;
|
|
365
|
+
signUp: string;
|
|
366
|
+
popular: string;
|
|
367
|
+
storage: string;
|
|
368
|
+
users: string;
|
|
369
|
+
domains: string;
|
|
370
|
+
support: string;
|
|
371
|
+
};
|
|
372
|
+
profile: {
|
|
373
|
+
followers: string;
|
|
374
|
+
following: string;
|
|
375
|
+
tweets: string;
|
|
376
|
+
activity: string;
|
|
377
|
+
settings: string;
|
|
378
|
+
fullName: string;
|
|
379
|
+
mobile: string;
|
|
380
|
+
location: string;
|
|
381
|
+
updateProfile: string;
|
|
382
|
+
};
|
|
383
|
+
products: {
|
|
384
|
+
addToCart: string;
|
|
385
|
+
buyNow: string;
|
|
386
|
+
price: string;
|
|
387
|
+
inStock: string;
|
|
388
|
+
outOfStock: string;
|
|
389
|
+
checkout: string;
|
|
390
|
+
cart: string;
|
|
391
|
+
quantity: string;
|
|
392
|
+
order: string;
|
|
393
|
+
status: string;
|
|
394
|
+
customer: string;
|
|
395
|
+
date: string;
|
|
396
|
+
placeOrder: string;
|
|
397
|
+
};
|
|
398
|
+
contact: {
|
|
399
|
+
addContact: string;
|
|
400
|
+
name: string;
|
|
401
|
+
email: string;
|
|
402
|
+
phone: string;
|
|
403
|
+
role: string;
|
|
404
|
+
age: string;
|
|
405
|
+
joiningDate: string;
|
|
406
|
+
salary: string;
|
|
407
|
+
};
|
|
408
|
+
calendar: {
|
|
409
|
+
addEvent: string;
|
|
410
|
+
eventName: string;
|
|
411
|
+
category: string;
|
|
412
|
+
dragDrop: string;
|
|
413
|
+
};
|
|
414
|
+
search: {
|
|
415
|
+
results: {
|
|
416
|
+
one: string;
|
|
417
|
+
other: string;
|
|
418
|
+
};
|
|
419
|
+
};
|
|
420
|
+
landing: {
|
|
421
|
+
hero: string;
|
|
422
|
+
tagline: string;
|
|
423
|
+
buy: string;
|
|
424
|
+
livePreview: string;
|
|
425
|
+
features: string;
|
|
426
|
+
more: string;
|
|
427
|
+
featureList: {
|
|
428
|
+
components: {
|
|
429
|
+
title: string;
|
|
430
|
+
text: string;
|
|
431
|
+
};
|
|
432
|
+
sidebar: {
|
|
433
|
+
title: string;
|
|
434
|
+
text: string;
|
|
435
|
+
};
|
|
436
|
+
skins: {
|
|
437
|
+
title: string;
|
|
438
|
+
text: string;
|
|
439
|
+
};
|
|
440
|
+
slider: {
|
|
441
|
+
title: string;
|
|
442
|
+
text: string;
|
|
443
|
+
};
|
|
444
|
+
mini: {
|
|
445
|
+
title: string;
|
|
446
|
+
text: string;
|
|
447
|
+
};
|
|
448
|
+
responsive: {
|
|
449
|
+
title: string;
|
|
450
|
+
text: string;
|
|
451
|
+
};
|
|
452
|
+
customize: {
|
|
453
|
+
title: string;
|
|
454
|
+
text: string;
|
|
455
|
+
};
|
|
456
|
+
upload: {
|
|
457
|
+
title: string;
|
|
458
|
+
text: string;
|
|
459
|
+
};
|
|
460
|
+
forms: {
|
|
461
|
+
title: string;
|
|
462
|
+
text: string;
|
|
463
|
+
};
|
|
464
|
+
dashboards: {
|
|
465
|
+
title: string;
|
|
466
|
+
text: string;
|
|
467
|
+
};
|
|
468
|
+
pages: {
|
|
469
|
+
title: string;
|
|
470
|
+
text: string;
|
|
471
|
+
};
|
|
472
|
+
ecommerce: {
|
|
473
|
+
title: string;
|
|
474
|
+
text: string;
|
|
475
|
+
};
|
|
476
|
+
};
|
|
477
|
+
};
|
|
478
|
+
};
|
|
479
|
+
};
|
|
480
|
+
export default en;
|
|
481
|
+
export type ThlMessages = typeof en;
|