@thl-ui/locales 0.0.0-stage → 0.1.0

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/dist/zh.js ADDED
@@ -0,0 +1,351 @@
1
+ const zh = {
2
+ common: {
3
+ ok: '确定',
4
+ cancel: '取消',
5
+ close: '关闭',
6
+ confirm: '确认',
7
+ save: '保存',
8
+ delete: '删除',
9
+ edit: '编辑',
10
+ add: '添加',
11
+ search: '搜索',
12
+ searchPlaceholder: '搜索...',
13
+ loading: '加载中...',
14
+ empty: '暂无数据',
15
+ more: '更多',
16
+ back: '返回',
17
+ next: '下一步',
18
+ previous: '上一步',
19
+ submit: '提交',
20
+ reset: '重置',
21
+ yes: '是',
22
+ no: '否',
23
+ viewAll: '查看全部',
24
+ clear: '清除',
25
+ apply: '应用',
26
+ collapse: '收起',
27
+ expand: '展开',
28
+ remove: '移除',
29
+ selectAll: '全选',
30
+ required: '必填',
31
+ color: '颜色',
32
+ editor: '富文本编辑器',
33
+ min: '最小值',
34
+ max: '最大值',
35
+ value: '值',
36
+ progress: '进度',
37
+ scrollRegion: '可滚动内容',
38
+ selectRow: '选择第 {n} 行',
39
+ toggleDone: '标记为完成',
40
+ carousel: '轮播',
41
+ },
42
+ pagination: {
43
+ first: '首页',
44
+ last: '末页',
45
+ prev: '上一页',
46
+ next: '下一页',
47
+ page: '第 {page} 页',
48
+ pageSize: '{size} 条/页',
49
+ total: { other: '共 {count} 条' },
50
+ goto: '跳至',
51
+ showing: '显示第 {from} 至 {to} 条,共 {total} 条',
52
+ },
53
+ table: {
54
+ empty: '没有找到匹配的记录',
55
+ sortAsc: '升序排列',
56
+ sortDesc: '降序排列',
57
+ filter: '筛选',
58
+ selected: { other: '已选择 {count} 行' },
59
+ actions: '操作',
60
+ search: '搜索:',
61
+ show: '显示 {n} 条',
62
+ },
63
+ upload: {
64
+ dropHere: '将文件拖到此处或点击',
65
+ dropMultiple: '将文件拖到此处或点击上传',
66
+ remove: '移除',
67
+ replace: '拖放或点击替换',
68
+ tooBig: '文件过大(最大 {max})。',
69
+ wrongType: '不允许的文件类型(仅限 {types})。',
70
+ uploading: '上传中...',
71
+ uploaded: '已上传',
72
+ failed: '上传失败',
73
+ browse: '浏览',
74
+ },
75
+ datepicker: {
76
+ today: '今天',
77
+ clear: '清除',
78
+ selectDate: '选择日期',
79
+ selectTime: '选择时间',
80
+ startDate: '开始日期',
81
+ endDate: '结束日期',
82
+ now: '此刻',
83
+ week: '周',
84
+ ranges: { today: '今天', yesterday: '昨天', last7: '最近 7 天', last30: '最近 30 天', thisMonth: '本月', lastMonth: '上月', custom: '自定义' },
85
+ },
86
+ select: { placeholder: '请选择', noOptions: '无匹配结果', addTag: '添加标签' },
87
+ modal: { close: '关闭', confirmTitle: '确定吗?', confirmText: '此操作无法撤销!', deleted: '已删除!' },
88
+ steps: { step: '第 {n} 步', finish: '完成', completed: '已完成' },
89
+ session: {
90
+ warningTitle: '您的会话即将过期!',
91
+ warningText: '您将在 {seconds} 秒后退出登录。',
92
+ stay: '保持登录',
93
+ logout: '退出登录',
94
+ idle: '您已闲置',
95
+ expired: '会话已过期',
96
+ },
97
+ validation: {
98
+ required: '此项为必填项',
99
+ email: '请输入有效的电子邮箱',
100
+ minLength: '请至少输入 {min} 个字符',
101
+ maxLength: '最多输入 {max} 个字符',
102
+ min: '值必须大于或等于 {min}',
103
+ max: '值必须小于或等于 {max}',
104
+ pattern: '请输入符合要求的格式',
105
+ match: '两次输入不一致',
106
+ number: '请输入有效的数字',
107
+ },
108
+ toast: { success: '成功', info: '信息', warning: '警告', error: '错误' },
109
+ layout: {
110
+ toggleSidebar: '切换侧边栏',
111
+ settings: '设置面板',
112
+ layoutOptions: '布局选项',
113
+ fixedHeader: '固定顶栏',
114
+ fixedSidebar: '固定侧边栏',
115
+ withLightSidebar: '浅色侧边栏',
116
+ withDarkSidebar: '深色侧边栏',
117
+ colorMode: '颜色模式',
118
+ light: '浅色',
119
+ dark: '深色',
120
+ auto: '跟随系统',
121
+ language: '语言',
122
+ layout: '布局',
123
+ vertical: '垂直',
124
+ mini: '迷你侧边栏',
125
+ horizontal: '水平',
126
+ chatOption: '聊天',
127
+ messages: '消息',
128
+ notifications: { other: '您有 {count} 条新通知' },
129
+ tasks: '任务',
130
+ seeAllNotifications: '查看全部通知',
131
+ seeAllTasks: '查看全部任务',
132
+ myProfile: '个人资料',
133
+ myBalance: '我的余额',
134
+ inbox: '收件箱',
135
+ accountSetting: '账户设置',
136
+ logout: '退出登录',
137
+ online: '在线',
138
+ offline: '离线',
139
+ away: '离开',
140
+ busy: '忙碌',
141
+ copyright: '{year} © thl-ui',
142
+ complete: '已完成 {percent}%',
143
+ },
144
+ menu: {
145
+ dashboard: '仪表盘',
146
+ dashboard1: '仪表盘 1',
147
+ dashboard2: '仪表盘 2',
148
+ dashboard3: '仪表盘 3',
149
+ dashboard4: '仪表盘 4',
150
+ apps: '应用',
151
+ inbox: '收件箱',
152
+ inboxDetail: '邮件详情',
153
+ compose: '写邮件',
154
+ contact: '联系人',
155
+ contactDetail: '联系人详情',
156
+ calendar: '日历',
157
+ ecommerce: '电子商务',
158
+ products: '商品',
159
+ productDetail: '商品详情',
160
+ productEdit: '编辑商品',
161
+ productOrders: '订单',
162
+ productCart: '购物车',
163
+ productCheckout: '结算',
164
+ ui: 'UI 元素',
165
+ buttons: '按钮',
166
+ panels: '面板',
167
+ panelBlock: '面板遮罩',
168
+ portlets: '可拖拽面板',
169
+ tabs: '标签页',
170
+ modals: '对话框',
171
+ notification: '通知',
172
+ progress: '进度条',
173
+ ribbons: '丝带',
174
+ steps: '步骤条',
175
+ timeline: '时间轴',
176
+ timelineHorizontal: '水平时间轴',
177
+ carousel: '轮播',
178
+ uiGeneral: '基础 UI',
179
+ animation: '动画',
180
+ userCards: '用户卡片',
181
+ customScroll: '自定义滚动条',
182
+ forms: '表单',
183
+ formBasic: '基础表单',
184
+ formLayout: '表单布局',
185
+ formAdvanced: '高级表单',
186
+ formPickers: '选择器',
187
+ formUpload: '文件上传',
188
+ formFileDrop: '拖拽上传',
189
+ checkRadio: '复选框和单选框',
190
+ rangeSlider: '滑块',
191
+ tables: '表格',
192
+ basicTable: '基础表格',
193
+ tableLayouts: '表格布局',
194
+ dataTable: '数据表格',
195
+ advancedTables: '高级表格',
196
+ editableTables: '可编辑表格',
197
+ responsiveTables: '响应式表格',
198
+ widgets: '小组件',
199
+ charts: '图表',
200
+ chartBasic: '折线/柱状图',
201
+ chartMini: '迷你图',
202
+ chartGauge: '环形图',
203
+ sparkline: '火花线',
204
+ pages: '页面',
205
+ starter: '起始页',
206
+ blank: '空白页',
207
+ login: '登录',
208
+ register: '注册',
209
+ recover: '找回密码',
210
+ lock: '锁屏',
211
+ profile: '个人资料',
212
+ invoice: '发票',
213
+ pricing: '价格',
214
+ gallery: '图库',
215
+ searchResult: '搜索结果',
216
+ sessionTimeout: '会话超时',
217
+ sessionIdle: '闲置超时',
218
+ errors: '错误页',
219
+ maps: '地图',
220
+ googleMap: '谷歌地图',
221
+ vectorMap: '矢量地图',
222
+ icons: '图标',
223
+ landing: '着陆页',
224
+ },
225
+ pages: {
226
+ login: {
227
+ title: '登录',
228
+ username: '用户名',
229
+ email: '邮箱',
230
+ password: '密码',
231
+ remember: '记住我',
232
+ forgot: '忘记密码?',
233
+ submit: '登录',
234
+ noAccount: '还没有账号?',
235
+ signUp: '注册',
236
+ social: '或使用以下方式登录',
237
+ },
238
+ register: { title: '注册', name: '姓名', confirmPassword: '确认密码', agree: '我同意', terms: '服务条款', haveAccount: '已有账号?', signIn: '登录' },
239
+ recover: { title: '找回密码', text: '输入您的邮箱,我们将向您发送操作说明!', submit: '重置' },
240
+ lock: { title: '已锁定', text: '输入密码以解锁', submit: '登录' },
241
+ error: {
242
+ 400: { title: '错误的请求', text: '服务器无法理解该请求。' },
243
+ 403: { title: '禁止访问', text: '您没有权限访问此服务器。' },
244
+ 404: { title: '页面未找到!', text: '您要找的页面不存在' },
245
+ 500: { title: '服务器内部错误', text: '请稍后再试' },
246
+ 503: { title: '服务不可用', text: '系统正在维护中。' },
247
+ backHome: '返回首页',
248
+ },
249
+ dashboard: {
250
+ totalVisit: '总访问量',
251
+ pageViews: '页面浏览量',
252
+ uniqueVisitor: '独立访客',
253
+ bounceRate: '跳出率',
254
+ sales: '销售额',
255
+ revenue: '收入',
256
+ orders: '订单',
257
+ newClients: '新客户',
258
+ recentComments: '最新评论',
259
+ todoList: '待办事项',
260
+ salesOverview: '销售概览',
261
+ productsYearly: '年度商品销售',
262
+ recentSales: '最近销售',
263
+ chat: '聊天列表',
264
+ feeds: '动态',
265
+ weather: '天气',
266
+ },
267
+ inbox: {
268
+ compose: '写邮件',
269
+ inbox: '收件箱',
270
+ sent: '已发送',
271
+ draft: '草稿',
272
+ spam: '垃圾邮件',
273
+ trash: '回收站',
274
+ labels: '标签',
275
+ reply: '回复',
276
+ forward: '转发',
277
+ to: '收件人:',
278
+ subject: '主题:',
279
+ send: '发送',
280
+ discard: '放弃',
281
+ attachments: '附件',
282
+ },
283
+ invoice: {
284
+ title: '发票',
285
+ invoiceTo: '收件方',
286
+ invoiceDate: '开票日期',
287
+ dueDate: '到期日',
288
+ description: '描述',
289
+ quantity: '数量',
290
+ unitCost: '单价',
291
+ total: '合计',
292
+ subTotal: '小计',
293
+ vat: '增值税 ({rate}%)',
294
+ print: '打印',
295
+ proceed: '前往付款',
296
+ },
297
+ pricing: { perMonth: '每月', signUp: '立即订阅', popular: '热门', storage: '{gb} GB 存储', users: '{n} 个用户', domains: '域名', support: '7x24 支持' },
298
+ profile: {
299
+ followers: '粉丝',
300
+ following: '关注',
301
+ tweets: '动态',
302
+ activity: '活动',
303
+ settings: '设置',
304
+ fullName: '姓名',
305
+ mobile: '手机',
306
+ location: '所在地',
307
+ updateProfile: '更新资料',
308
+ },
309
+ products: {
310
+ addToCart: '加入购物车',
311
+ buyNow: '立即购买',
312
+ price: '价格',
313
+ inStock: '有货',
314
+ outOfStock: '缺货',
315
+ checkout: '结算',
316
+ cart: '购物车',
317
+ quantity: '数量',
318
+ order: '订单',
319
+ status: '状态',
320
+ customer: '客户',
321
+ date: '日期',
322
+ placeOrder: '提交订单',
323
+ },
324
+ contact: { addContact: '添加联系人', name: '姓名', email: '邮箱', phone: '电话', role: '角色', age: '年龄', joiningDate: '入职日期', salary: '薪资' },
325
+ calendar: { addEvent: '添加事件', eventName: '事件名称', category: '类别', dragDrop: '拖放事件或点击日历' },
326
+ search: { results: { other: '约 {count} 条结果' } },
327
+ landing: {
328
+ hero: '最先进的仪表盘套件',
329
+ tagline: 'React、Vue 和 Angular + 80+ 组件 + 74 个页面 + 12 种配色 + 4 种语言 + 浅色/深色模式',
330
+ buy: '立即开始',
331
+ livePreview: '在线预览',
332
+ features: 'thl-ui 的出色功能',
333
+ more: '浏览全部组件',
334
+ featureList: {
335
+ components: { title: '80+ 个 UI 组件', text: '现成组件,在 React、Vue 和 Angular 中使用相同 API' },
336
+ sidebar: { title: '浅色与深色侧边栏', text: '每种配色都可选浅色或深色侧边栏' },
337
+ skins: { title: '12 种配色', text: '6 种颜色,各有浅色或深色侧边栏,也可使用品牌色' },
338
+ slider: { title: '范围滑块', text: '单滑块和双滑块,用于筛选价格和范围' },
339
+ mini: { title: '迷你侧边栏', text: '把菜单收起为图标,或移到页面顶部' },
340
+ responsive: { title: '完全响应式', text: '从手机到宽屏都能正常使用的布局' },
341
+ customize: { title: '易于定制', text: '全局配置、--thl-* 变量和组件级默认值' },
342
+ upload: { title: '多文件上传', text: '拖放多个文件,显示进度并校验文件' },
343
+ forms: { title: '多种表单布局', text: '各框架都支持带翻译提示的表单校验' },
344
+ dashboards: { title: '4 个现成仪表盘', text: '4 个仪表盘和数十个可复用的小组件' },
345
+ pages: { title: '自定义页面', text: '相册、注册、登录、个人资料等页面' },
346
+ ecommerce: { title: '电商就绪', text: '商品、购物车、结账、订单和详情页' },
347
+ },
348
+ },
349
+ },
350
+ };
351
+ export default zh;
package/package.json CHANGED
@@ -1,6 +1,58 @@
1
1
  {
2
2
  "name": "@thl-ui/locales",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.0",
4
+ "description": "thl-ui translations: English, Japanese, Vietnamese and Simplified Chinese.",
5
+ "keywords": [
6
+ "thl-ui",
7
+ "ui",
8
+ "components",
9
+ "admin",
10
+ "dashboard",
11
+ "i18n",
12
+ "locales",
13
+ "translations"
14
+ ],
15
+ "license": "MIT",
16
+ "homepage": "https://thl.tandd.dev/guide/i18n",
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "git+https://gitlab.com/tandd.packages/thl-ui.git",
20
+ "directory": "packages/locales"
21
+ },
22
+ "bugs": {
23
+ "url": "https://gitlab.com/tandd.packages/thl-ui/-/issues"
24
+ },
25
+ "type": "module",
26
+ "main": "./dist/index.js",
27
+ "types": "./dist/index.d.ts",
28
+ "exports": {
29
+ ".": {
30
+ "types": "./dist/index.d.ts",
31
+ "import": "./dist/index.js"
32
+ },
33
+ "./en": {
34
+ "types": "./dist/en.d.ts",
35
+ "import": "./dist/en.js"
36
+ },
37
+ "./vi": {
38
+ "types": "./dist/vi.d.ts",
39
+ "import": "./dist/vi.js"
40
+ },
41
+ "./ja": {
42
+ "types": "./dist/ja.d.ts",
43
+ "import": "./dist/ja.js"
44
+ },
45
+ "./zh": {
46
+ "types": "./dist/zh.d.ts",
47
+ "import": "./dist/zh.js"
48
+ }
49
+ },
50
+ "files": [
51
+ "dist"
52
+ ],
53
+ "sideEffects": false,
54
+ "scripts": {
55
+ "build": "tsc -p tsconfig.json",
56
+ "typecheck": "tsc -p tsconfig.json --noEmit"
57
+ }
58
+ }