@kungal/ui-core 2.36.0 → 2.37.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.
@@ -0,0 +1,163 @@
1
+ 'use strict';
2
+
3
+ // src/locale/en.json
4
+ var en_default = {
5
+ name: "English",
6
+ code: "en",
7
+ messages: {
8
+ alert: {
9
+ title: "Confirm",
10
+ confirm: "OK",
11
+ cancel: "Cancel"
12
+ },
13
+ autocomplete: {
14
+ clear: "Clear",
15
+ loading: "Loading…",
16
+ noResult: "No matching options"
17
+ },
18
+ avatar: {
19
+ unknownUser: "Unknown user"
20
+ },
21
+ avatarGroup: {
22
+ label: "{count} users"
23
+ },
24
+ carousel: {
25
+ label: "Carousel",
26
+ prev: "Previous slide",
27
+ next: "Next slide",
28
+ nav: "Carousel navigation",
29
+ goto: "Go to slide {index}"
30
+ },
31
+ chip: {
32
+ remove: "Remove"
33
+ },
34
+ commandPalette: {
35
+ placeholder: "Search…",
36
+ empty: "Type to search",
37
+ noResult: "No results",
38
+ loading: "Loading…",
39
+ close: "Close",
40
+ hintSelect: "Select",
41
+ hintOpen: "Open",
42
+ hintClose: "Close",
43
+ resultCount: "{count} results"
44
+ },
45
+ copy: {
46
+ copied: "Copied",
47
+ success: "Copied {text}",
48
+ failure: "Could not copy {text} — your browser blocked clipboard access."
49
+ },
50
+ datePicker: {
51
+ placeholderDay: "Select a date",
52
+ placeholderMonth: "Select a month",
53
+ placeholderYear: "Select a year",
54
+ clear: "Clear",
55
+ today: "Today",
56
+ close: "Close",
57
+ prevYear: "Previous year",
58
+ nextYear: "Next year",
59
+ prevPage: "Previous {unit}",
60
+ nextPage: "Next {unit}",
61
+ zoomOut: "{label} — zoom out",
62
+ unitMonth: "month",
63
+ unitYear: "year",
64
+ unitDecade: "decade",
65
+ monthCell: "{month} {year}"
66
+ },
67
+ drawer: {
68
+ close: "Close drawer"
69
+ },
70
+ fileInput: {
71
+ trigger: "Choose files",
72
+ selected: "{count} files selected"
73
+ },
74
+ filePicker: {
75
+ tooLarge: "{name} exceeds the {size} size limit"
76
+ },
77
+ input: {
78
+ clear: "Clear",
79
+ reveal: "Show password",
80
+ hide: "Hide password"
81
+ },
82
+ lightbox: {
83
+ label: "Image viewer",
84
+ close: "Close",
85
+ prev: "Previous image",
86
+ next: "Next image",
87
+ goto: "Go to image {index}",
88
+ zoomIn: "Zoom in",
89
+ zoomOut: "Zoom out",
90
+ rotateLeft: "Rotate 90° left",
91
+ rotateRight: "Rotate 90° right",
92
+ reset: "Reset zoom, rotation and position",
93
+ download: "Download"
94
+ },
95
+ lightboxGallery: {
96
+ view: "View full size"
97
+ },
98
+ loading: {
99
+ description: "Loading…"
100
+ },
101
+ loli: {
102
+ close: "Close"
103
+ },
104
+ message: {
105
+ close: "Close"
106
+ },
107
+ modal: {
108
+ close: "Close"
109
+ },
110
+ null: {
111
+ description: "Nothing here yet"
112
+ },
113
+ numberInput: {
114
+ decrement: "Decrease",
115
+ increment: "Increase"
116
+ },
117
+ pagination: {
118
+ nav: "Pagination",
119
+ prev: "Previous page",
120
+ next: "Next page",
121
+ page: "Page {page}",
122
+ hintBefore: "Use",
123
+ hintAfter: "to turn pages quickly",
124
+ jumpLabel: "Go to page",
125
+ jump: "Go"
126
+ },
127
+ pinInput: {
128
+ label: "Verification code",
129
+ digit: "{label} digit {index}"
130
+ },
131
+ reaction: {
132
+ label: "Like"
133
+ },
134
+ select: {
135
+ searchPlaceholder: "Search…",
136
+ noResult: "No matching options",
137
+ loading: "Loading…",
138
+ clear: "Clear",
139
+ removeOption: "Remove {label}"
140
+ },
141
+ spoiler: {
142
+ copyCode: "Copy code",
143
+ reveal: "Spoiler — click or press Enter to reveal"
144
+ },
145
+ tagInput: {
146
+ tag: "Tag {tag}",
147
+ removeTag: "Remove tag {tag}"
148
+ },
149
+ upload: {
150
+ imageAlt: "Uploaded image",
151
+ cropTitle: "Crop image",
152
+ cancel: "Cancel",
153
+ confirm: "OK"
154
+ }
155
+ }
156
+ };
157
+
158
+ // src/locale/en.ts
159
+ var KUN_CATALOG_EN = en_default;
160
+
161
+ exports.KUN_CATALOG_EN = KUN_CATALOG_EN;
162
+ //# sourceMappingURL=en.cjs.map
163
+ //# sourceMappingURL=en.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/locale/en.json","../../src/locale/en.ts"],"names":[],"mappings":";;;AAAA,IAAA,UAAA,GAAA;AAAA,EACE,IAAA,EAAQ,SAAA;AAAA,EACR,IAAA,EAAQ,IAAA;AAAA,EACR,QAAA,EAAY;AAAA,IACV,KAAA,EAAS;AAAA,MACP,KAAA,EAAS,SAAA;AAAA,MACT,OAAA,EAAW,IAAA;AAAA,MACX,MAAA,EAAU;AAAA,KACZ;AAAA,IACA,YAAA,EAAgB;AAAA,MACd,KAAA,EAAS,OAAA;AAAA,MACT,OAAA,EAAW,UAAA;AAAA,MACX,QAAA,EAAY;AAAA,KACd;AAAA,IACA,MAAA,EAAU;AAAA,MACR,WAAA,EAAe;AAAA,KACjB;AAAA,IACA,WAAA,EAAe;AAAA,MACb,KAAA,EAAS;AAAA,KACX;AAAA,IACA,QAAA,EAAY;AAAA,MACV,KAAA,EAAS,UAAA;AAAA,MACT,IAAA,EAAQ,gBAAA;AAAA,MACR,IAAA,EAAQ,YAAA;AAAA,MACR,GAAA,EAAO,qBAAA;AAAA,MACP,IAAA,EAAQ;AAAA,KACV;AAAA,IACA,IAAA,EAAQ;AAAA,MACN,MAAA,EAAU;AAAA,KACZ;AAAA,IACA,cAAA,EAAkB;AAAA,MAChB,WAAA,EAAe,SAAA;AAAA,MACf,KAAA,EAAS,gBAAA;AAAA,MACT,QAAA,EAAY,YAAA;AAAA,MACZ,OAAA,EAAW,UAAA;AAAA,MACX,KAAA,EAAS,OAAA;AAAA,MACT,UAAA,EAAc,QAAA;AAAA,MACd,QAAA,EAAY,MAAA;AAAA,MACZ,SAAA,EAAa,OAAA;AAAA,MACb,WAAA,EAAe;AAAA,KACjB;AAAA,IACA,IAA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EAAU;AAAA,MACR,QAAA,EAAY,gBAAA;AAAA,MACZ,SAAA,EAAa,YAAA;AAAA,MACb,MAAA,EAAU,QAAA;AAAA,MACV,OAAA,EAAW;AAAA;AACb;AAEJ,CAAA;;;ACnJO,IAAM,cAAA,GAAoC","file":"en.cjs","sourcesContent":["{\n \"name\": \"English\",\n \"code\": \"en\",\n \"messages\": {\n \"alert\": {\n \"title\": \"Confirm\",\n \"confirm\": \"OK\",\n \"cancel\": \"Cancel\"\n },\n \"autocomplete\": {\n \"clear\": \"Clear\",\n \"loading\": \"Loading…\",\n \"noResult\": \"No matching options\"\n },\n \"avatar\": {\n \"unknownUser\": \"Unknown user\"\n },\n \"avatarGroup\": {\n \"label\": \"{count} users\"\n },\n \"carousel\": {\n \"label\": \"Carousel\",\n \"prev\": \"Previous slide\",\n \"next\": \"Next slide\",\n \"nav\": \"Carousel navigation\",\n \"goto\": \"Go to slide {index}\"\n },\n \"chip\": {\n \"remove\": \"Remove\"\n },\n \"commandPalette\": {\n \"placeholder\": \"Search…\",\n \"empty\": \"Type to search\",\n \"noResult\": \"No results\",\n \"loading\": \"Loading…\",\n \"close\": \"Close\",\n \"hintSelect\": \"Select\",\n \"hintOpen\": \"Open\",\n \"hintClose\": \"Close\",\n \"resultCount\": \"{count} results\"\n },\n \"copy\": {\n \"copied\": \"Copied\",\n \"success\": \"Copied {text}\",\n \"failure\": \"Could not copy {text} — your browser blocked clipboard access.\"\n },\n \"datePicker\": {\n \"placeholderDay\": \"Select a date\",\n \"placeholderMonth\": \"Select a month\",\n \"placeholderYear\": \"Select a year\",\n \"clear\": \"Clear\",\n \"today\": \"Today\",\n \"close\": \"Close\",\n \"prevYear\": \"Previous year\",\n \"nextYear\": \"Next year\",\n \"prevPage\": \"Previous {unit}\",\n \"nextPage\": \"Next {unit}\",\n \"zoomOut\": \"{label} — zoom out\",\n \"unitMonth\": \"month\",\n \"unitYear\": \"year\",\n \"unitDecade\": \"decade\",\n \"monthCell\": \"{month} {year}\"\n },\n \"drawer\": {\n \"close\": \"Close drawer\"\n },\n \"fileInput\": {\n \"trigger\": \"Choose files\",\n \"selected\": \"{count} files selected\"\n },\n \"filePicker\": {\n \"tooLarge\": \"{name} exceeds the {size} size limit\"\n },\n \"input\": {\n \"clear\": \"Clear\",\n \"reveal\": \"Show password\",\n \"hide\": \"Hide password\"\n },\n \"lightbox\": {\n \"label\": \"Image viewer\",\n \"close\": \"Close\",\n \"prev\": \"Previous image\",\n \"next\": \"Next image\",\n \"goto\": \"Go to image {index}\",\n \"zoomIn\": \"Zoom in\",\n \"zoomOut\": \"Zoom out\",\n \"rotateLeft\": \"Rotate 90° left\",\n \"rotateRight\": \"Rotate 90° right\",\n \"reset\": \"Reset zoom, rotation and position\",\n \"download\": \"Download\"\n },\n \"lightboxGallery\": {\n \"view\": \"View full size\"\n },\n \"loading\": {\n \"description\": \"Loading…\"\n },\n \"loli\": {\n \"close\": \"Close\"\n },\n \"message\": {\n \"close\": \"Close\"\n },\n \"modal\": {\n \"close\": \"Close\"\n },\n \"null\": {\n \"description\": \"Nothing here yet\"\n },\n \"numberInput\": {\n \"decrement\": \"Decrease\",\n \"increment\": \"Increase\"\n },\n \"pagination\": {\n \"nav\": \"Pagination\",\n \"prev\": \"Previous page\",\n \"next\": \"Next page\",\n \"page\": \"Page {page}\",\n \"hintBefore\": \"Use\",\n \"hintAfter\": \"to turn pages quickly\",\n \"jumpLabel\": \"Go to page\",\n \"jump\": \"Go\"\n },\n \"pinInput\": {\n \"label\": \"Verification code\",\n \"digit\": \"{label} digit {index}\"\n },\n \"reaction\": {\n \"label\": \"Like\"\n },\n \"select\": {\n \"searchPlaceholder\": \"Search…\",\n \"noResult\": \"No matching options\",\n \"loading\": \"Loading…\",\n \"clear\": \"Clear\",\n \"removeOption\": \"Remove {label}\"\n },\n \"spoiler\": {\n \"copyCode\": \"Copy code\",\n \"reveal\": \"Spoiler — click or press Enter to reveal\"\n },\n \"tagInput\": {\n \"tag\": \"Tag {tag}\",\n \"removeTag\": \"Remove tag {tag}\"\n },\n \"upload\": {\n \"imageAlt\": \"Uploaded image\",\n \"cropTitle\": \"Crop image\",\n \"cancel\": \"Cancel\",\n \"confirm\": \"OK\"\n }\n }\n}\n","import raw from './en.json'\nimport type { KunMessageCatalog } from './types'\n\n// Its own entry point (`@kungal/ui-core/locale/en`) so a zh-CN app never\n// bundles it. Every locale after this one follows the same shape.\nexport const KUN_CATALOG_EN: KunMessageCatalog = raw\n"]}
@@ -0,0 +1,5 @@
1
+ import { b as KunMessageCatalog } from '../types-BJErf81b.cjs';
2
+
3
+ declare const KUN_CATALOG_EN: KunMessageCatalog;
4
+
5
+ export { KUN_CATALOG_EN };
@@ -0,0 +1,5 @@
1
+ import { b as KunMessageCatalog } from '../types-BJErf81b.js';
2
+
3
+ declare const KUN_CATALOG_EN: KunMessageCatalog;
4
+
5
+ export { KUN_CATALOG_EN };
@@ -0,0 +1,161 @@
1
+ // src/locale/en.json
2
+ var en_default = {
3
+ name: "English",
4
+ code: "en",
5
+ messages: {
6
+ alert: {
7
+ title: "Confirm",
8
+ confirm: "OK",
9
+ cancel: "Cancel"
10
+ },
11
+ autocomplete: {
12
+ clear: "Clear",
13
+ loading: "Loading…",
14
+ noResult: "No matching options"
15
+ },
16
+ avatar: {
17
+ unknownUser: "Unknown user"
18
+ },
19
+ avatarGroup: {
20
+ label: "{count} users"
21
+ },
22
+ carousel: {
23
+ label: "Carousel",
24
+ prev: "Previous slide",
25
+ next: "Next slide",
26
+ nav: "Carousel navigation",
27
+ goto: "Go to slide {index}"
28
+ },
29
+ chip: {
30
+ remove: "Remove"
31
+ },
32
+ commandPalette: {
33
+ placeholder: "Search…",
34
+ empty: "Type to search",
35
+ noResult: "No results",
36
+ loading: "Loading…",
37
+ close: "Close",
38
+ hintSelect: "Select",
39
+ hintOpen: "Open",
40
+ hintClose: "Close",
41
+ resultCount: "{count} results"
42
+ },
43
+ copy: {
44
+ copied: "Copied",
45
+ success: "Copied {text}",
46
+ failure: "Could not copy {text} — your browser blocked clipboard access."
47
+ },
48
+ datePicker: {
49
+ placeholderDay: "Select a date",
50
+ placeholderMonth: "Select a month",
51
+ placeholderYear: "Select a year",
52
+ clear: "Clear",
53
+ today: "Today",
54
+ close: "Close",
55
+ prevYear: "Previous year",
56
+ nextYear: "Next year",
57
+ prevPage: "Previous {unit}",
58
+ nextPage: "Next {unit}",
59
+ zoomOut: "{label} — zoom out",
60
+ unitMonth: "month",
61
+ unitYear: "year",
62
+ unitDecade: "decade",
63
+ monthCell: "{month} {year}"
64
+ },
65
+ drawer: {
66
+ close: "Close drawer"
67
+ },
68
+ fileInput: {
69
+ trigger: "Choose files",
70
+ selected: "{count} files selected"
71
+ },
72
+ filePicker: {
73
+ tooLarge: "{name} exceeds the {size} size limit"
74
+ },
75
+ input: {
76
+ clear: "Clear",
77
+ reveal: "Show password",
78
+ hide: "Hide password"
79
+ },
80
+ lightbox: {
81
+ label: "Image viewer",
82
+ close: "Close",
83
+ prev: "Previous image",
84
+ next: "Next image",
85
+ goto: "Go to image {index}",
86
+ zoomIn: "Zoom in",
87
+ zoomOut: "Zoom out",
88
+ rotateLeft: "Rotate 90° left",
89
+ rotateRight: "Rotate 90° right",
90
+ reset: "Reset zoom, rotation and position",
91
+ download: "Download"
92
+ },
93
+ lightboxGallery: {
94
+ view: "View full size"
95
+ },
96
+ loading: {
97
+ description: "Loading…"
98
+ },
99
+ loli: {
100
+ close: "Close"
101
+ },
102
+ message: {
103
+ close: "Close"
104
+ },
105
+ modal: {
106
+ close: "Close"
107
+ },
108
+ null: {
109
+ description: "Nothing here yet"
110
+ },
111
+ numberInput: {
112
+ decrement: "Decrease",
113
+ increment: "Increase"
114
+ },
115
+ pagination: {
116
+ nav: "Pagination",
117
+ prev: "Previous page",
118
+ next: "Next page",
119
+ page: "Page {page}",
120
+ hintBefore: "Use",
121
+ hintAfter: "to turn pages quickly",
122
+ jumpLabel: "Go to page",
123
+ jump: "Go"
124
+ },
125
+ pinInput: {
126
+ label: "Verification code",
127
+ digit: "{label} digit {index}"
128
+ },
129
+ reaction: {
130
+ label: "Like"
131
+ },
132
+ select: {
133
+ searchPlaceholder: "Search…",
134
+ noResult: "No matching options",
135
+ loading: "Loading…",
136
+ clear: "Clear",
137
+ removeOption: "Remove {label}"
138
+ },
139
+ spoiler: {
140
+ copyCode: "Copy code",
141
+ reveal: "Spoiler — click or press Enter to reveal"
142
+ },
143
+ tagInput: {
144
+ tag: "Tag {tag}",
145
+ removeTag: "Remove tag {tag}"
146
+ },
147
+ upload: {
148
+ imageAlt: "Uploaded image",
149
+ cropTitle: "Crop image",
150
+ cancel: "Cancel",
151
+ confirm: "OK"
152
+ }
153
+ }
154
+ };
155
+
156
+ // src/locale/en.ts
157
+ var KUN_CATALOG_EN = en_default;
158
+
159
+ export { KUN_CATALOG_EN };
160
+ //# sourceMappingURL=en.js.map
161
+ //# sourceMappingURL=en.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/locale/en.json","../../src/locale/en.ts"],"names":[],"mappings":";AAAA,IAAA,UAAA,GAAA;AAAA,EACE,IAAA,EAAQ,SAAA;AAAA,EACR,IAAA,EAAQ,IAAA;AAAA,EACR,QAAA,EAAY;AAAA,IACV,KAAA,EAAS;AAAA,MACP,KAAA,EAAS,SAAA;AAAA,MACT,OAAA,EAAW,IAAA;AAAA,MACX,MAAA,EAAU;AAAA,KACZ;AAAA,IACA,YAAA,EAAgB;AAAA,MACd,KAAA,EAAS,OAAA;AAAA,MACT,OAAA,EAAW,UAAA;AAAA,MACX,QAAA,EAAY;AAAA,KACd;AAAA,IACA,MAAA,EAAU;AAAA,MACR,WAAA,EAAe;AAAA,KACjB;AAAA,IACA,WAAA,EAAe;AAAA,MACb,KAAA,EAAS;AAAA,KACX;AAAA,IACA,QAAA,EAAY;AAAA,MACV,KAAA,EAAS,UAAA;AAAA,MACT,IAAA,EAAQ,gBAAA;AAAA,MACR,IAAA,EAAQ,YAAA;AAAA,MACR,GAAA,EAAO,qBAAA;AAAA,MAC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,KAAA,EAAS;AAAA,KACX;AAAA,IACA,MAAA,EAAU;AAAA,MACR,iBAAA,EAAqB,SAAA;AAAA,MACrB,QAAA,EAAY,qBAAA;AAAA,MACZ,OAAA,EAAW,UAAA;AAAA,MACX,KAAA,EAAS,OAAA;AAAA,MACT,YAAA,EAAgB;AAAA,KAClB;AAAA,IACA,OAAA,EAAW;AAAA,MACT,QAAA,EAAY,WAAA;AAAA,MACZ,MAAA,EAAU;AAAA,KACZ;AAAA,IACA,QAAA,EAAY;AAAA,MACV,GAAA,EAAO,WAAA;AAAA,MACP,SAAA,EAAa;AAAA,KACf;AAAA,IACA,MAAA,EAAU;AAAA,MACR,QAAA,EAAY,gBAAA;AAAA,MACZ,SAAA,EAAa,YAAA;AAAA,MACb,MAAA,EAAU,QAAA;AAAA,MACV,OAAA,EAAW;AAAA;AACb;AAEJ,CAAA;;;ACnJO,IAAM,cAAA,GAAoC","file":"en.js","sourcesContent":["{\n \"name\": \"English\",\n \"code\": \"en\",\n \"messages\": {\n \"alert\": {\n \"title\": \"Confirm\",\n \"confirm\": \"OK\",\n \"cancel\": \"Cancel\"\n },\n \"autocomplete\": {\n \"clear\": \"Clear\",\n \"loading\": \"Loading…\",\n \"noResult\": \"No matching options\"\n },\n \"avatar\": {\n \"unknownUser\": \"Unknown user\"\n },\n \"avatarGroup\": {\n \"label\": \"{count} users\"\n },\n \"carousel\": {\n \"label\": \"Carousel\",\n \"prev\": \"Previous slide\",\n \"next\": \"Next slide\",\n \"nav\": \"Carousel navigation\",\n \"goto\": \"Go to slide {index}\"\n },\n \"chip\": {\n \"remove\": \"Remove\"\n },\n \"commandPalette\": {\n \"placeholder\": \"Search…\",\n \"empty\": \"Type to search\",\n \"noResult\": \"No results\",\n \"loading\": \"Loading…\",\n \"close\": \"Close\",\n \"hintSelect\": \"Select\",\n \"hintOpen\": \"Open\",\n \"hintClose\": \"Close\",\n \"resultCount\": \"{count} results\"\n },\n \"copy\": {\n \"copied\": \"Copied\",\n \"success\": \"Copied {text}\",\n \"failure\": \"Could not copy {text} — your browser blocked clipboard access.\"\n },\n \"datePicker\": {\n \"placeholderDay\": \"Select a date\",\n \"placeholderMonth\": \"Select a month\",\n \"placeholderYear\": \"Select a year\",\n \"clear\": \"Clear\",\n \"today\": \"Today\",\n \"close\": \"Close\",\n \"prevYear\": \"Previous year\",\n \"nextYear\": \"Next year\",\n \"prevPage\": \"Previous {unit}\",\n \"nextPage\": \"Next {unit}\",\n \"zoomOut\": \"{label} — zoom out\",\n \"unitMonth\": \"month\",\n \"unitYear\": \"year\",\n \"unitDecade\": \"decade\",\n \"monthCell\": \"{month} {year}\"\n },\n \"drawer\": {\n \"close\": \"Close drawer\"\n },\n \"fileInput\": {\n \"trigger\": \"Choose files\",\n \"selected\": \"{count} files selected\"\n },\n \"filePicker\": {\n \"tooLarge\": \"{name} exceeds the {size} size limit\"\n },\n \"input\": {\n \"clear\": \"Clear\",\n \"reveal\": \"Show password\",\n \"hide\": \"Hide password\"\n },\n \"lightbox\": {\n \"label\": \"Image viewer\",\n \"close\": \"Close\",\n \"prev\": \"Previous image\",\n \"next\": \"Next image\",\n \"goto\": \"Go to image {index}\",\n \"zoomIn\": \"Zoom in\",\n \"zoomOut\": \"Zoom out\",\n \"rotateLeft\": \"Rotate 90° left\",\n \"rotateRight\": \"Rotate 90° right\",\n \"reset\": \"Reset zoom, rotation and position\",\n \"download\": \"Download\"\n },\n \"lightboxGallery\": {\n \"view\": \"View full size\"\n },\n \"loading\": {\n \"description\": \"Loading…\"\n },\n \"loli\": {\n \"close\": \"Close\"\n },\n \"message\": {\n \"close\": \"Close\"\n },\n \"modal\": {\n \"close\": \"Close\"\n },\n \"null\": {\n \"description\": \"Nothing here yet\"\n },\n \"numberInput\": {\n \"decrement\": \"Decrease\",\n \"increment\": \"Increase\"\n },\n \"pagination\": {\n \"nav\": \"Pagination\",\n \"prev\": \"Previous page\",\n \"next\": \"Next page\",\n \"page\": \"Page {page}\",\n \"hintBefore\": \"Use\",\n \"hintAfter\": \"to turn pages quickly\",\n \"jumpLabel\": \"Go to page\",\n \"jump\": \"Go\"\n },\n \"pinInput\": {\n \"label\": \"Verification code\",\n \"digit\": \"{label} digit {index}\"\n },\n \"reaction\": {\n \"label\": \"Like\"\n },\n \"select\": {\n \"searchPlaceholder\": \"Search…\",\n \"noResult\": \"No matching options\",\n \"loading\": \"Loading…\",\n \"clear\": \"Clear\",\n \"removeOption\": \"Remove {label}\"\n },\n \"spoiler\": {\n \"copyCode\": \"Copy code\",\n \"reveal\": \"Spoiler — click or press Enter to reveal\"\n },\n \"tagInput\": {\n \"tag\": \"Tag {tag}\",\n \"removeTag\": \"Remove tag {tag}\"\n },\n \"upload\": {\n \"imageAlt\": \"Uploaded image\",\n \"cropTitle\": \"Crop image\",\n \"cancel\": \"Cancel\",\n \"confirm\": \"OK\"\n }\n }\n}\n","import raw from './en.json'\nimport type { KunMessageCatalog } from './types'\n\n// Its own entry point (`@kungal/ui-core/locale/en`) so a zh-CN app never\n// bundles it. Every locale after this one follows the same shape.\nexport const KUN_CATALOG_EN: KunMessageCatalog = raw\n"]}
@@ -0,0 +1,182 @@
1
+ interface KunMessages {
2
+ alert: {
3
+ title: string;
4
+ confirm: string;
5
+ cancel: string;
6
+ };
7
+ autocomplete: {
8
+ clear: string;
9
+ loading: string;
10
+ noResult: string;
11
+ };
12
+ avatar: {
13
+ unknownUser: string;
14
+ };
15
+ /** `{count}` — number of users in the group. */
16
+ avatarGroup: {
17
+ label: string;
18
+ };
19
+ /** `goto` takes `{index}`, the 1-based slide number. */
20
+ carousel: {
21
+ label: string;
22
+ prev: string;
23
+ next: string;
24
+ nav: string;
25
+ goto: string;
26
+ };
27
+ chip: {
28
+ remove: string;
29
+ };
30
+ /** `resultCount` takes `{count}`. */
31
+ commandPalette: {
32
+ placeholder: string;
33
+ empty: string;
34
+ noResult: string;
35
+ loading: string;
36
+ close: string;
37
+ hintSelect: string;
38
+ hintOpen: string;
39
+ hintClose: string;
40
+ resultCount: string;
41
+ };
42
+ /** `success` / `failure` take `{text}`, the copied string. */
43
+ copy: {
44
+ copied: string;
45
+ success: string;
46
+ failure: string;
47
+ };
48
+ /** `prevPage` / `nextPage` take `{unit}`, filled from `unitMonth` /
49
+ * `unitYear` / `unitDecade`; `zoomOut` takes `{label}`; `monthCell` takes
50
+ * `{month}` and `{year}` — one template, because Chinese puts the year
51
+ * first. */
52
+ datePicker: {
53
+ placeholderDay: string;
54
+ placeholderMonth: string;
55
+ placeholderYear: string;
56
+ clear: string;
57
+ today: string;
58
+ close: string;
59
+ prevYear: string;
60
+ nextYear: string;
61
+ prevPage: string;
62
+ nextPage: string;
63
+ zoomOut: string;
64
+ unitMonth: string;
65
+ unitYear: string;
66
+ unitDecade: string;
67
+ monthCell: string;
68
+ };
69
+ drawer: {
70
+ close: string;
71
+ };
72
+ /** `selected` takes `{count}`. */
73
+ fileInput: {
74
+ trigger: string;
75
+ selected: string;
76
+ };
77
+ /** `tooLarge` takes `{name}` and `{size}`. */
78
+ filePicker: {
79
+ tooLarge: string;
80
+ };
81
+ input: {
82
+ clear: string;
83
+ reveal: string;
84
+ hide: string;
85
+ };
86
+ /** `goto` takes `{index}`, the 1-based image number. */
87
+ lightbox: {
88
+ label: string;
89
+ close: string;
90
+ prev: string;
91
+ next: string;
92
+ goto: string;
93
+ zoomIn: string;
94
+ zoomOut: string;
95
+ rotateLeft: string;
96
+ rotateRight: string;
97
+ reset: string;
98
+ download: string;
99
+ };
100
+ lightboxGallery: {
101
+ view: string;
102
+ };
103
+ loading: {
104
+ description: string;
105
+ };
106
+ loli: {
107
+ close: string;
108
+ };
109
+ message: {
110
+ close: string;
111
+ };
112
+ modal: {
113
+ close: string;
114
+ };
115
+ /** KunNull — the "nothing here" empty state. */
116
+ null: {
117
+ description: string;
118
+ };
119
+ numberInput: {
120
+ decrement: string;
121
+ increment: string;
122
+ };
123
+ /** `page` takes `{page}`. The two `hint` halves wrap the arrow-key icons. */
124
+ pagination: {
125
+ nav: string;
126
+ prev: string;
127
+ next: string;
128
+ page: string;
129
+ hintBefore: string;
130
+ hintAfter: string;
131
+ jumpLabel: string;
132
+ jump: string;
133
+ };
134
+ /** `digit` takes `{label}` and `{index}`, the 1-based position. */
135
+ pinInput: {
136
+ label: string;
137
+ digit: string;
138
+ };
139
+ reaction: {
140
+ label: string;
141
+ };
142
+ /** `removeOption` takes `{label}`, the option's own label. */
143
+ select: {
144
+ searchPlaceholder: string;
145
+ noResult: string;
146
+ loading: string;
147
+ clear: string;
148
+ removeOption: string;
149
+ };
150
+ spoiler: {
151
+ copyCode: string;
152
+ reveal: string;
153
+ };
154
+ /** Both take `{tag}`. */
155
+ tagInput: {
156
+ tag: string;
157
+ removeTag: string;
158
+ };
159
+ upload: {
160
+ imageAlt: string;
161
+ cropTitle: string;
162
+ cancel: string;
163
+ confirm: string;
164
+ };
165
+ }
166
+ /** A locale's strings plus its identity — everything about a locale that is
167
+ * framework-agnostic. A render layer extends it with whatever else it needs
168
+ * (the Vue layer adds a date-fns locale for the calendar grid). */
169
+ interface KunMessageCatalog {
170
+ /** Endonym, for a language switcher's own list (e.g. `简体中文`). */
171
+ name: string;
172
+ /** BCP 47 tag. Not used for matching — KunUI never picks a locale for you. */
173
+ code: string;
174
+ messages: KunMessages;
175
+ }
176
+ /** Dotted path into `KunMessages`, e.g. `'pagination.prev'`. */
177
+ type KunMessagePath = {
178
+ [K in keyof KunMessages]: `${K & string}.${keyof KunMessages[K] & string}`;
179
+ }[keyof KunMessages];
180
+ type KunTranslate = (path: KunMessagePath, params?: Record<string, string | number>) => string;
181
+
182
+ export type { KunMessages as K, KunMessagePath as a, KunMessageCatalog as b, KunTranslate as c };