@svadmin/core 0.39.1 → 0.41.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/package.json +1 -1
- package/src/enterprise.ts +4 -2
- package/src/i18n.svelte.ts +18 -0
package/package.json
CHANGED
package/src/enterprise.ts
CHANGED
|
@@ -55,11 +55,13 @@ function createRequestId(): string {
|
|
|
55
55
|
export function createEnterpriseRequestContext(
|
|
56
56
|
input: EnterpriseRequestContextInput,
|
|
57
57
|
): StrictEnterpriseRequestContext {
|
|
58
|
-
const requestId =
|
|
58
|
+
const requestId = input.requestId === undefined
|
|
59
|
+
? createRequestId()
|
|
60
|
+
: nonEmpty(input.requestId, 'requestId');
|
|
59
61
|
return {
|
|
60
62
|
tenantId: validatedTenantId(input.tenantId),
|
|
61
63
|
requestId,
|
|
62
|
-
traceId:
|
|
64
|
+
traceId: input.traceId === undefined ? requestId : nonEmpty(input.traceId, 'traceId'),
|
|
63
65
|
...(input.meta ? { meta: input.meta } : {}),
|
|
64
66
|
};
|
|
65
67
|
}
|
package/src/i18n.svelte.ts
CHANGED
|
@@ -22,6 +22,15 @@ const baseLocales: Record<string, Record<string, string>> = {
|
|
|
22
22
|
'common.delete': '删除',
|
|
23
23
|
'common.batchDeletePartialFail': '批量删除部分失败:{failed}/{total} 条未成功',
|
|
24
24
|
'common.batchDeleteSuccess': '成功删除 {count} 条记录',
|
|
25
|
+
'common.selectedItems': '已选择 {count} 项',
|
|
26
|
+
'common.clearSelection': '取消选择',
|
|
27
|
+
'common.density': '表格密度',
|
|
28
|
+
'common.densityCompact': '紧凑',
|
|
29
|
+
'common.densityComfortable': '宽松',
|
|
30
|
+
'common.filterTags': '已选条件',
|
|
31
|
+
'common.clearAllFilters': '清除全部',
|
|
32
|
+
'common.pageUnit': '页',
|
|
33
|
+
'common.all': '全部',
|
|
25
34
|
'common.search': '搜索...',
|
|
26
35
|
'common.confirm': '确定',
|
|
27
36
|
'common.loading': '加载中...',
|
|
@@ -654,6 +663,15 @@ const baseLocales: Record<string, Record<string, string>> = {
|
|
|
654
663
|
'common.delete': 'Delete',
|
|
655
664
|
'common.batchDeletePartialFail': 'Batch delete partially failed: {failed}/{total} unsuccessful',
|
|
656
665
|
'common.batchDeleteSuccess': 'Successfully deleted {count} records',
|
|
666
|
+
'common.selectedItems': '{count} selected',
|
|
667
|
+
'common.clearSelection': 'Clear selection',
|
|
668
|
+
'common.density': 'Table density',
|
|
669
|
+
'common.densityCompact': 'Compact',
|
|
670
|
+
'common.densityComfortable': 'Comfortable',
|
|
671
|
+
'common.filterTags': 'Active filters',
|
|
672
|
+
'common.clearAllFilters': 'Clear all',
|
|
673
|
+
'common.pageUnit': 'Page',
|
|
674
|
+
'common.all': 'All',
|
|
657
675
|
'common.search': 'Search...',
|
|
658
676
|
'common.confirm': 'Confirm',
|
|
659
677
|
'common.loading': 'Loading...',
|