dev-dict 0.2.1 → 0.2.3

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.
Files changed (43) hide show
  1. package/README.md +2 -6
  2. package/dist/index.d.ts +284 -0
  3. package/package.json +5 -3
  4. package/dist/data/index.d.ts +0 -5
  5. package/dist/data/index.d.ts.map +0 -1
  6. package/dist/data/locales/index.d.ts +0 -6
  7. package/dist/data/locales/index.d.ts.map +0 -1
  8. package/dist/data/tags/backend.d.ts +0 -9
  9. package/dist/data/tags/backend.d.ts.map +0 -1
  10. package/dist/data/tags/frontend.d.ts +0 -9
  11. package/dist/data/tags/frontend.d.ts.map +0 -1
  12. package/dist/data/tags/index.d.ts +0 -24
  13. package/dist/data/tags/index.d.ts.map +0 -1
  14. package/dist/data/tags/open_source.d.ts +0 -9
  15. package/dist/data/tags/open_source.d.ts.map +0 -1
  16. package/dist/data/terms/index.d.ts +0 -108
  17. package/dist/data/terms/index.d.ts.map +0 -1
  18. package/dist/data/terms/node_js.d.ts +0 -31
  19. package/dist/data/terms/node_js.d.ts.map +0 -1
  20. package/dist/data/terms/react.d.ts +0 -37
  21. package/dist/data/terms/react.d.ts.map +0 -1
  22. package/dist/data/terms/typescript.d.ts +0 -43
  23. package/dist/data/terms/typescript.d.ts.map +0 -1
  24. package/dist/data/types/cms.d.ts +0 -9
  25. package/dist/data/types/cms.d.ts.map +0 -1
  26. package/dist/data/types/index.d.ts +0 -31
  27. package/dist/data/types/index.d.ts.map +0 -1
  28. package/dist/data/types/language.d.ts +0 -9
  29. package/dist/data/types/language.d.ts.map +0 -1
  30. package/dist/data/types/library.d.ts +0 -9
  31. package/dist/data/types/library.d.ts.map +0 -1
  32. package/dist/data/types/runtime_environment.d.ts +0 -9
  33. package/dist/data/types/runtime_environment.d.ts.map +0 -1
  34. package/dist/examples/index.d.ts +0 -2
  35. package/dist/examples/index.d.ts.map +0 -1
  36. package/dist/src/common/index.d.ts +0 -5
  37. package/dist/src/common/index.d.ts.map +0 -1
  38. package/dist/src/index.d.ts +0 -39
  39. package/dist/src/index.d.ts.map +0 -1
  40. package/dist/src/types/index.d.ts +0 -50
  41. package/dist/src/types/index.d.ts.map +0 -1
  42. package/dist/src/utils/index.d.ts +0 -18
  43. package/dist/src/utils/index.d.ts.map +0 -1
package/README.md CHANGED
@@ -6,13 +6,9 @@ This package aims to provide an exhaustive list of software industry related ter
6
6
 
7
7
  A list of available terms can be found here:
8
8
  - [Terms](./docs/TERMS.md)
9
- - [Types](./docs/TYPES.md)
10
- - [Tags](./docs/TAGS.md)
11
9
 
12
- Currently dev-dict supports:
13
- - English (US)
14
- - English (GB)
15
- - German (DE)
10
+ Supported languages:
11
+ - [Languages](./data/locales/index.ts)
16
12
 
17
13
 
18
14
  ## Installation
@@ -0,0 +1,284 @@
1
+ declare const CONFIG: {
2
+ readonly DEFAULT_LOCALE: "en-US";
3
+ };
4
+
5
+ export declare function getDict(params?: {
6
+ localized: false;
7
+ }): TDevDict;
8
+
9
+ export declare function getDict(params?: {
10
+ localized?: true;
11
+ locale?: TLocale;
12
+ }): TDevDictLocalized;
13
+
14
+ export declare function getTags(params?: {
15
+ localized: false;
16
+ }): TTermTag[];
17
+
18
+ export declare function getTags(params?: {
19
+ localized?: true;
20
+ locale?: TLocale;
21
+ }): TTermTagLocalized[];
22
+
23
+ export declare function getTerm(params: {
24
+ id: TTermId;
25
+ localized: false;
26
+ }): TTerm;
27
+
28
+ export declare function getTerm(params: {
29
+ id: TTermId;
30
+ localized?: true;
31
+ locale?: TLocale;
32
+ }): TTermLocalized;
33
+
34
+ export declare function getTerms(params?: {
35
+ localized: false;
36
+ }): TTerm[];
37
+
38
+ export declare function getTerms(params?: {
39
+ localized?: true;
40
+ locale?: TLocale;
41
+ }): TTermLocalized[];
42
+
43
+ export declare function getTypes(params?: {
44
+ localized: false;
45
+ }): TTermType[];
46
+
47
+ export declare function getTypes(params?: {
48
+ localized?: true;
49
+ locale?: TLocale;
50
+ }): TTermTypeLocalized[];
51
+
52
+ declare const LOCALE: {
53
+ readonly EN_US: "en-US";
54
+ readonly EN_GB: "en-GB";
55
+ readonly DE_DE: "de-DE";
56
+ };
57
+
58
+ declare const TAG: {
59
+ readonly backend: {
60
+ readonly id: "backend";
61
+ readonly name: {
62
+ readonly "en-US": "Backend";
63
+ readonly "de-DE": "Backend";
64
+ };
65
+ };
66
+ readonly frontend: {
67
+ readonly id: "frontend";
68
+ readonly name: {
69
+ readonly "en-US": "Frontend";
70
+ readonly "de-DE": "Frontend";
71
+ };
72
+ };
73
+ readonly open_source: {
74
+ readonly id: "open_source";
75
+ readonly name: {
76
+ readonly "en-US": "Open Source";
77
+ readonly "de-DE": "Open Source";
78
+ };
79
+ };
80
+ };
81
+
82
+ declare type TDevDict = Record<TTermId, TTerm>;
83
+
84
+ declare type TDevDictLocalized = Record<TTermId, TTermLocalized>;
85
+
86
+ declare const TERM: {
87
+ readonly node_js: {
88
+ readonly id: "node_js";
89
+ readonly name: "Node.js";
90
+ readonly type: [{
91
+ readonly id: "runtime_environment";
92
+ readonly name: {
93
+ readonly "en-US": "Runtime Environment";
94
+ readonly "de-DE": "Laufzeitumgebung";
95
+ };
96
+ }];
97
+ readonly label: {
98
+ readonly "en-US": "JavaScript Runtime";
99
+ readonly "de-DE": "JavaScript-Laufzeit";
100
+ };
101
+ readonly definition: {
102
+ readonly "en-US": "Node.js is a free, open-source, cross-platform JavaScript runtime environment that lets developers create servers, web apps, command line tools and scripts.";
103
+ readonly "de-DE": "Node.js ist eine kostenlose, Open-Source, plattformübergreifende JavaScript-Laufzeitumgebung, die es Entwicklern ermöglicht, Server, Webanwendungen, Befehlszeilentools und Skripte zu erstellen.";
104
+ };
105
+ readonly tags: [{
106
+ readonly id: "backend";
107
+ readonly name: {
108
+ readonly "en-US": "Backend";
109
+ readonly "de-DE": "Backend";
110
+ };
111
+ }];
112
+ readonly links: {
113
+ readonly website: "https://nodejs.org";
114
+ };
115
+ };
116
+ readonly react: {
117
+ readonly id: "react";
118
+ readonly name: "React";
119
+ readonly type: [{
120
+ readonly id: "library";
121
+ readonly name: {
122
+ readonly "en-US": "Library";
123
+ readonly "de-DE": "Bibliothek";
124
+ };
125
+ }];
126
+ readonly label: {
127
+ readonly "en-US": "JavaScript Library";
128
+ readonly "de-DE": "JavaScript-Bibliothek";
129
+ };
130
+ readonly definition: {
131
+ readonly "en-US": "A JavaScript library for building component-based user interfaces.";
132
+ readonly "de-DE": "Eine JavaScript-Bibliothek zum Erstellen komponentenbasierter Benutzeroberflächen.";
133
+ };
134
+ readonly tags: [{
135
+ readonly id: "frontend";
136
+ readonly name: {
137
+ readonly "en-US": "Frontend";
138
+ readonly "de-DE": "Frontend";
139
+ };
140
+ }, {
141
+ readonly id: "backend";
142
+ readonly name: {
143
+ readonly "en-US": "Backend";
144
+ readonly "de-DE": "Backend";
145
+ };
146
+ }];
147
+ readonly links: {
148
+ readonly website: "https://react.dev";
149
+ };
150
+ };
151
+ readonly typescript: {
152
+ readonly id: "typescript";
153
+ readonly name: "TypeScript";
154
+ readonly type: [{
155
+ readonly id: "language";
156
+ readonly name: {
157
+ readonly "en-US": "Language";
158
+ readonly "de-DE": "Sprache";
159
+ };
160
+ }];
161
+ readonly label: {
162
+ readonly "en-US": "High-Level Programming Language";
163
+ readonly "de-DE": "Hochsprache";
164
+ };
165
+ readonly definition: {
166
+ readonly "en-US": "TypeScript is a strongly typed programming language that builds on JavaScript, giving you better tooling at any scale.";
167
+ readonly "de-DE": "TypeScript ist eine stark typisierte Programmiersprache, die auf JavaScript aufbaut und Ihnen bei jeder Größenordnung bessere Werkzeuge bietet.";
168
+ };
169
+ readonly tags: [{
170
+ readonly id: "frontend";
171
+ readonly name: {
172
+ readonly "en-US": "Frontend";
173
+ readonly "de-DE": "Frontend";
174
+ };
175
+ }, {
176
+ readonly id: "backend";
177
+ readonly name: {
178
+ readonly "en-US": "Backend";
179
+ readonly "de-DE": "Backend";
180
+ };
181
+ }, {
182
+ readonly id: "open_source";
183
+ readonly name: {
184
+ readonly "en-US": "Open Source";
185
+ readonly "de-DE": "Open Source";
186
+ };
187
+ }];
188
+ readonly links: {
189
+ readonly website: "https://www.typescriptlang.org";
190
+ };
191
+ };
192
+ };
193
+
194
+ declare type TLinkType = 'website' | 'github' | 'npm';
195
+
196
+ declare type TLocale = (typeof LOCALE)[keyof typeof LOCALE];
197
+
198
+ declare type TLocaleRecord = {
199
+ [CONFIG.DEFAULT_LOCALE]: string;
200
+ } & Partial<Record<Exclude<TLocale, typeof CONFIG.DEFAULT_LOCALE>, string>>;
201
+
202
+ declare type TTerm = {
203
+ id: string;
204
+ name: string;
205
+ type: TTermTypes[];
206
+ label: TTermLabel;
207
+ definition: TTermDefinition;
208
+ tags: TTermTags[];
209
+ links?: TTermLinks;
210
+ };
211
+
212
+ declare type TTermDefinition = TLocaleRecord;
213
+
214
+ declare type TTermId = keyof typeof TERM;
215
+
216
+ declare type TTermLabel = TLocaleRecord;
217
+
218
+ declare type TTermLinks = {
219
+ website: string;
220
+ } & Partial<Record<Exclude<TLinkType, 'website'>, string>>;
221
+
222
+ declare type TTermLocalized = Omit<TTerm, 'label' | 'definition' | 'type' | 'tags'> & {
223
+ label: string;
224
+ definition: string;
225
+ type: TTermTypeLocalized[];
226
+ tags: TTermTagLocalized[];
227
+ };
228
+
229
+ declare type TTermTag = {
230
+ id: string;
231
+ name: TLocaleRecord;
232
+ };
233
+
234
+ declare type TTermTagLocalized = {
235
+ id: string;
236
+ name: string;
237
+ };
238
+
239
+ declare type TTermTags = (typeof TAG)[keyof typeof TAG];
240
+
241
+ declare type TTermType = {
242
+ id: string;
243
+ name: TLocaleRecord;
244
+ };
245
+
246
+ declare type TTermTypeLocalized = {
247
+ id: string;
248
+ name: string;
249
+ };
250
+
251
+ declare type TTermTypes = (typeof TYPE)[keyof typeof TYPE];
252
+
253
+ declare const TYPE: {
254
+ readonly cms: {
255
+ readonly id: "cms";
256
+ readonly name: {
257
+ readonly "en-US": "Content Management System";
258
+ readonly "de-DE": "Content-Management-System";
259
+ };
260
+ };
261
+ readonly language: {
262
+ readonly id: "language";
263
+ readonly name: {
264
+ readonly "en-US": "Language";
265
+ readonly "de-DE": "Sprache";
266
+ };
267
+ };
268
+ readonly library: {
269
+ readonly id: "library";
270
+ readonly name: {
271
+ readonly "en-US": "Library";
272
+ readonly "de-DE": "Bibliothek";
273
+ };
274
+ };
275
+ readonly runtime_environment: {
276
+ readonly id: "runtime_environment";
277
+ readonly name: {
278
+ readonly "en-US": "Runtime Environment";
279
+ readonly "de-DE": "Laufzeitumgebung";
280
+ };
281
+ };
282
+ };
283
+
284
+ export { }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dev-dict",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "A dictionary of software related terms. Supports multiple languages.",
5
5
  "author": "Cornelius Weidmann <cornelius@kyco.io> (https://kyco.io)",
6
6
  "license": "MIT",
@@ -32,6 +32,7 @@
32
32
  "types": "./dist/index.d.ts",
33
33
  "exports": {
34
34
  ".": {
35
+ "types": "./dist/index.d.ts",
35
36
  "import": "./dist/index.js"
36
37
  }
37
38
  },
@@ -43,7 +44,7 @@
43
44
  },
44
45
  "scripts": {
45
46
  "dev": "vite",
46
- "build": "vite build && tsc --emitDeclarationOnly --outDir dist",
47
+ "build": "vite build",
47
48
  "docs:generate": "node scripts/generate-docs.js",
48
49
  "prepublishOnly": "npm run build && npm run docs:generate",
49
50
  "test": "echo \"This project does not have any tests which can be run yet...\"",
@@ -66,6 +67,7 @@
66
67
  "semantic-release": "^25.0.2",
67
68
  "typescript": "^5.9.3",
68
69
  "typescript-eslint": "^8.48.0",
69
- "vite": "^7.2.4"
70
+ "vite": "^7.2.4",
71
+ "vite-plugin-dts": "^4.5.4"
70
72
  }
71
73
  }
@@ -1,5 +0,0 @@
1
- export * from './locales';
2
- export * from './tags';
3
- export * from './terms';
4
- export * from './types';
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../data/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAA;AACzB,cAAc,QAAQ,CAAA;AACtB,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA"}
@@ -1,6 +0,0 @@
1
- export declare const LOCALE: {
2
- readonly EN_US: "en-US";
3
- readonly EN_GB: "en-GB";
4
- readonly DE_DE: "de-DE";
5
- };
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../data/locales/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;CAIT,CAAA"}
@@ -1,9 +0,0 @@
1
- declare const _default: {
2
- readonly id: "backend";
3
- readonly name: {
4
- readonly "en-US": "Backend";
5
- readonly "de-DE": "Backend";
6
- };
7
- };
8
- export default _default;
9
- //# sourceMappingURL=backend.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"backend.d.ts","sourceRoot":"","sources":["../../../data/tags/backend.ts"],"names":[],"mappings":";;;;;;;AAIA,wBAO6B"}
@@ -1,9 +0,0 @@
1
- declare const _default: {
2
- readonly id: "frontend";
3
- readonly name: {
4
- readonly "en-US": "Frontend";
5
- readonly "de-DE": "Frontend";
6
- };
7
- };
8
- export default _default;
9
- //# sourceMappingURL=frontend.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"frontend.d.ts","sourceRoot":"","sources":["../../../data/tags/frontend.ts"],"names":[],"mappings":";;;;;;;AAIA,wBAO6B"}
@@ -1,24 +0,0 @@
1
- export declare const TAG: {
2
- readonly backend: {
3
- readonly id: "backend";
4
- readonly name: {
5
- readonly "en-US": "Backend";
6
- readonly "de-DE": "Backend";
7
- };
8
- };
9
- readonly frontend: {
10
- readonly id: "frontend";
11
- readonly name: {
12
- readonly "en-US": "Frontend";
13
- readonly "de-DE": "Frontend";
14
- };
15
- };
16
- readonly open_source: {
17
- readonly id: "open_source";
18
- readonly name: {
19
- readonly "en-US": "Open Source";
20
- readonly "de-DE": "Open Source";
21
- };
22
- };
23
- };
24
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../data/tags/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;CAIN,CAAA"}
@@ -1,9 +0,0 @@
1
- declare const _default: {
2
- readonly id: "open_source";
3
- readonly name: {
4
- readonly "en-US": "Open Source";
5
- readonly "de-DE": "Open Source";
6
- };
7
- };
8
- export default _default;
9
- //# sourceMappingURL=open_source.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"open_source.d.ts","sourceRoot":"","sources":["../../../data/tags/open_source.ts"],"names":[],"mappings":";;;;;;;AAIA,wBAO6B"}
@@ -1,108 +0,0 @@
1
- export declare const TERM: {
2
- readonly node_js: {
3
- readonly id: "node_js";
4
- readonly name: "Node.js";
5
- readonly type: [{
6
- readonly id: "runtime_environment";
7
- readonly name: {
8
- readonly "en-US": "Runtime Environment";
9
- readonly "de-DE": "Laufzeitumgebung";
10
- };
11
- }];
12
- readonly label: {
13
- readonly "en-US": "JavaScript Runtime";
14
- readonly "de-DE": "JavaScript-Laufzeit";
15
- };
16
- readonly definition: {
17
- readonly "en-US": "Node.js is a free, open-source, cross-platform JavaScript runtime environment that lets developers create servers, web apps, command line tools and scripts.";
18
- readonly "de-DE": "Node.js ist eine kostenlose, Open-Source, plattformübergreifende JavaScript-Laufzeitumgebung, die es Entwicklern ermöglicht, Server, Webanwendungen, Befehlszeilentools und Skripte zu erstellen.";
19
- };
20
- readonly tags: [{
21
- readonly id: "backend";
22
- readonly name: {
23
- readonly "en-US": "Backend";
24
- readonly "de-DE": "Backend";
25
- };
26
- }];
27
- readonly links: {
28
- readonly website: "https://nodejs.org";
29
- };
30
- };
31
- readonly react: {
32
- readonly id: "react";
33
- readonly name: "React";
34
- readonly type: [{
35
- readonly id: "library";
36
- readonly name: {
37
- readonly "en-US": "Library";
38
- readonly "de-DE": "Bibliothek";
39
- };
40
- }];
41
- readonly label: {
42
- readonly "en-US": "JavaScript Library";
43
- readonly "de-DE": "JavaScript-Bibliothek";
44
- };
45
- readonly definition: {
46
- readonly "en-US": "A JavaScript library for building component-based user interfaces.";
47
- readonly "de-DE": "Eine JavaScript-Bibliothek zum Erstellen komponentenbasierter Benutzeroberflächen.";
48
- };
49
- readonly tags: [{
50
- readonly id: "frontend";
51
- readonly name: {
52
- readonly "en-US": "Frontend";
53
- readonly "de-DE": "Frontend";
54
- };
55
- }, {
56
- readonly id: "backend";
57
- readonly name: {
58
- readonly "en-US": "Backend";
59
- readonly "de-DE": "Backend";
60
- };
61
- }];
62
- readonly links: {
63
- readonly website: "https://react.dev";
64
- };
65
- };
66
- readonly typescript: {
67
- readonly id: "typescript";
68
- readonly name: "TypeScript";
69
- readonly type: [{
70
- readonly id: "language";
71
- readonly name: {
72
- readonly "en-US": "Language";
73
- readonly "de-DE": "Sprache";
74
- };
75
- }];
76
- readonly label: {
77
- readonly "en-US": "High-Level Programming Language";
78
- readonly "de-DE": "Hochsprache";
79
- };
80
- readonly definition: {
81
- readonly "en-US": "TypeScript is a strongly typed programming language that builds on JavaScript, giving you better tooling at any scale.";
82
- readonly "de-DE": "TypeScript ist eine stark typisierte Programmiersprache, die auf JavaScript aufbaut und Ihnen bei jeder Größenordnung bessere Werkzeuge bietet.";
83
- };
84
- readonly tags: [{
85
- readonly id: "frontend";
86
- readonly name: {
87
- readonly "en-US": "Frontend";
88
- readonly "de-DE": "Frontend";
89
- };
90
- }, {
91
- readonly id: "backend";
92
- readonly name: {
93
- readonly "en-US": "Backend";
94
- readonly "de-DE": "Backend";
95
- };
96
- }, {
97
- readonly id: "open_source";
98
- readonly name: {
99
- readonly "en-US": "Open Source";
100
- readonly "de-DE": "Open Source";
101
- };
102
- }];
103
- readonly links: {
104
- readonly website: "https://www.typescriptlang.org";
105
- };
106
- };
107
- };
108
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../data/terms/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIP,CAAA"}
@@ -1,31 +0,0 @@
1
- declare const _default: {
2
- readonly id: "node_js";
3
- readonly name: "Node.js";
4
- readonly type: [{
5
- readonly id: "runtime_environment";
6
- readonly name: {
7
- readonly "en-US": "Runtime Environment";
8
- readonly "de-DE": "Laufzeitumgebung";
9
- };
10
- }];
11
- readonly label: {
12
- readonly "en-US": "JavaScript Runtime";
13
- readonly "de-DE": "JavaScript-Laufzeit";
14
- };
15
- readonly definition: {
16
- readonly "en-US": "Node.js is a free, open-source, cross-platform JavaScript runtime environment that lets developers create servers, web apps, command line tools and scripts.";
17
- readonly "de-DE": "Node.js ist eine kostenlose, Open-Source, plattformübergreifende JavaScript-Laufzeitumgebung, die es Entwicklern ermöglicht, Server, Webanwendungen, Befehlszeilentools und Skripte zu erstellen.";
18
- };
19
- readonly tags: [{
20
- readonly id: "backend";
21
- readonly name: {
22
- readonly "en-US": "Backend";
23
- readonly "de-DE": "Backend";
24
- };
25
- }];
26
- readonly links: {
27
- readonly website: "https://nodejs.org";
28
- };
29
- };
30
- export default _default;
31
- //# sourceMappingURL=node_js.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"node_js.d.ts","sourceRoot":"","sources":["../../../data/terms/node_js.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,wBAsB0B"}
@@ -1,37 +0,0 @@
1
- declare const _default: {
2
- readonly id: "react";
3
- readonly name: "React";
4
- readonly type: [{
5
- readonly id: "library";
6
- readonly name: {
7
- readonly "en-US": "Library";
8
- readonly "de-DE": "Bibliothek";
9
- };
10
- }];
11
- readonly label: {
12
- readonly "en-US": "JavaScript Library";
13
- readonly "de-DE": "JavaScript-Bibliothek";
14
- };
15
- readonly definition: {
16
- readonly "en-US": "A JavaScript library for building component-based user interfaces.";
17
- readonly "de-DE": "Eine JavaScript-Bibliothek zum Erstellen komponentenbasierter Benutzeroberflächen.";
18
- };
19
- readonly tags: [{
20
- readonly id: "frontend";
21
- readonly name: {
22
- readonly "en-US": "Frontend";
23
- readonly "de-DE": "Frontend";
24
- };
25
- }, {
26
- readonly id: "backend";
27
- readonly name: {
28
- readonly "en-US": "Backend";
29
- readonly "de-DE": "Backend";
30
- };
31
- }];
32
- readonly links: {
33
- readonly website: "https://react.dev";
34
- };
35
- };
36
- export default _default;
37
- //# sourceMappingURL=react.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../../data/terms/react.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,wBAsB0B"}
@@ -1,43 +0,0 @@
1
- declare const _default: {
2
- readonly id: "typescript";
3
- readonly name: "TypeScript";
4
- readonly type: [{
5
- readonly id: "language";
6
- readonly name: {
7
- readonly "en-US": "Language";
8
- readonly "de-DE": "Sprache";
9
- };
10
- }];
11
- readonly label: {
12
- readonly "en-US": "High-Level Programming Language";
13
- readonly "de-DE": "Hochsprache";
14
- };
15
- readonly definition: {
16
- readonly "en-US": "TypeScript is a strongly typed programming language that builds on JavaScript, giving you better tooling at any scale.";
17
- readonly "de-DE": "TypeScript ist eine stark typisierte Programmiersprache, die auf JavaScript aufbaut und Ihnen bei jeder Größenordnung bessere Werkzeuge bietet.";
18
- };
19
- readonly tags: [{
20
- readonly id: "frontend";
21
- readonly name: {
22
- readonly "en-US": "Frontend";
23
- readonly "de-DE": "Frontend";
24
- };
25
- }, {
26
- readonly id: "backend";
27
- readonly name: {
28
- readonly "en-US": "Backend";
29
- readonly "de-DE": "Backend";
30
- };
31
- }, {
32
- readonly id: "open_source";
33
- readonly name: {
34
- readonly "en-US": "Open Source";
35
- readonly "de-DE": "Open Source";
36
- };
37
- }];
38
- readonly links: {
39
- readonly website: "https://www.typescriptlang.org";
40
- };
41
- };
42
- export default _default;
43
- //# sourceMappingURL=typescript.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"typescript.d.ts","sourceRoot":"","sources":["../../../data/terms/typescript.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,wBAsB0B"}
@@ -1,9 +0,0 @@
1
- declare const _default: {
2
- readonly id: "cms";
3
- readonly name: {
4
- readonly "en-US": "Content Management System";
5
- readonly "de-DE": "Content-Management-System";
6
- };
7
- };
8
- export default _default;
9
- //# sourceMappingURL=cms.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cms.d.ts","sourceRoot":"","sources":["../../../data/types/cms.ts"],"names":[],"mappings":";;;;;;;AAIA,wBAO8B"}
@@ -1,31 +0,0 @@
1
- export declare const TYPE: {
2
- readonly cms: {
3
- readonly id: "cms";
4
- readonly name: {
5
- readonly "en-US": "Content Management System";
6
- readonly "de-DE": "Content-Management-System";
7
- };
8
- };
9
- readonly language: {
10
- readonly id: "language";
11
- readonly name: {
12
- readonly "en-US": "Language";
13
- readonly "de-DE": "Sprache";
14
- };
15
- };
16
- readonly library: {
17
- readonly id: "library";
18
- readonly name: {
19
- readonly "en-US": "Library";
20
- readonly "de-DE": "Bibliothek";
21
- };
22
- };
23
- readonly runtime_environment: {
24
- readonly id: "runtime_environment";
25
- readonly name: {
26
- readonly "en-US": "Runtime Environment";
27
- readonly "de-DE": "Laufzeitumgebung";
28
- };
29
- };
30
- };
31
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../data/types/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKP,CAAA"}
@@ -1,9 +0,0 @@
1
- declare const _default: {
2
- readonly id: "language";
3
- readonly name: {
4
- readonly "en-US": "Language";
5
- readonly "de-DE": "Sprache";
6
- };
7
- };
8
- export default _default;
9
- //# sourceMappingURL=language.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"language.d.ts","sourceRoot":"","sources":["../../../data/types/language.ts"],"names":[],"mappings":";;;;;;;AAIA,wBAO8B"}
@@ -1,9 +0,0 @@
1
- declare const _default: {
2
- readonly id: "library";
3
- readonly name: {
4
- readonly "en-US": "Library";
5
- readonly "de-DE": "Bibliothek";
6
- };
7
- };
8
- export default _default;
9
- //# sourceMappingURL=library.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"library.d.ts","sourceRoot":"","sources":["../../../data/types/library.ts"],"names":[],"mappings":";;;;;;;AAIA,wBAO8B"}
@@ -1,9 +0,0 @@
1
- declare const _default: {
2
- readonly id: "runtime_environment";
3
- readonly name: {
4
- readonly "en-US": "Runtime Environment";
5
- readonly "de-DE": "Laufzeitumgebung";
6
- };
7
- };
8
- export default _default;
9
- //# sourceMappingURL=runtime_environment.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"runtime_environment.d.ts","sourceRoot":"","sources":["../../../data/types/runtime_environment.ts"],"names":[],"mappings":";;;;;;;AAIA,wBAO8B"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../examples/index.ts"],"names":[],"mappings":""}
@@ -1,5 +0,0 @@
1
- export declare const MISC: {};
2
- export declare const CONFIG: {
3
- readonly DEFAULT_LOCALE: "en-US";
4
- };
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,IAAc,CAAA;AAE/B,eAAO,MAAM,MAAM;;CAET,CAAA"}
@@ -1,39 +0,0 @@
1
- import type { TDevDict, TDevDictLocalized, TLocale, TTerm, TTermId, TTermLocalized, TTermType, TTermTypeLocalized, TTermTag, TTermTagLocalized } from '@/types';
2
- export declare function getTerm(params: {
3
- id: TTermId;
4
- localized: false;
5
- }): TTerm;
6
- export declare function getTerm(params: {
7
- id: TTermId;
8
- localized?: true;
9
- locale?: TLocale;
10
- }): TTermLocalized;
11
- export declare function getTerms(params?: {
12
- localized: false;
13
- }): TTerm[];
14
- export declare function getTerms(params?: {
15
- localized?: true;
16
- locale?: TLocale;
17
- }): TTermLocalized[];
18
- export declare function getDict(params?: {
19
- localized: false;
20
- }): TDevDict;
21
- export declare function getDict(params?: {
22
- localized?: true;
23
- locale?: TLocale;
24
- }): TDevDictLocalized;
25
- export declare function getTypes(params?: {
26
- localized: false;
27
- }): TTermType[];
28
- export declare function getTypes(params?: {
29
- localized?: true;
30
- locale?: TLocale;
31
- }): TTermTypeLocalized[];
32
- export declare function getTags(params?: {
33
- localized: false;
34
- }): TTermTag[];
35
- export declare function getTags(params?: {
36
- localized?: true;
37
- locale?: TLocale;
38
- }): TTermTagLocalized[];
39
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,iBAAiB,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,kBAAkB,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAK/J,wBAAgB,OAAO,CAAC,MAAM,EAAE;IAAE,EAAE,EAAE,OAAO,CAAC;IAAC,SAAS,EAAE,KAAK,CAAA;CAAE,GAAG,KAAK,CAAA;AACzE,wBAAgB,OAAO,CAAC,MAAM,EAAE;IAAE,EAAE,EAAE,OAAO,CAAC;IAAC,SAAS,CAAC,EAAE,IA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CONFIG.DEFAULT_LOCALE]: string;
6
- } & Partial<Record<Exclude<TLocale, typeof CONFIG.DEFAULT_LOCALE>, string>>;
7
- export type TLinkType = 'website' | 'github' | 'npm';
8
- export type TTermLinks = {
9
- website: string;
10
- } & Partial<Record<Exclude<TLinkType, 'website'>, string>>;
11
- export type TTermLabel = TLocaleRecord;
12
- export type TTermDefinition = TLocaleRecord;
13
- export type TTermType = {
14
- id: string;
15
- name: TLocaleRecord;
16
- };
17
- export type TTermTypeLocalized = {
18
- id: string;
19
- name: string;
20
- };
21
- export type TTermTypes = (typeof TYPE)[keyof typeof TYPE];
22
- export type TTermTag = {
23
- id: string;
24
- name: TLocaleRecord;
25
- };
26
- export type TTermTagLocalized = {
27
- id: string;
28
- name: string;
29
- };
30
- export type TTermTags = (typeof TAG)[keyof typeof TAG];
31
- export type TTerm = {
32
- id: string;
33
- name: string;
34
- type: TTermTypes[];
35
- label: TTermLabel;
36
- definition: TTermDefinition;
37
- tags: TTermTags[];
38
- links?: TTermLinks;
39
- };
40
- export type TTermLocalized = Omit<TTerm, 'label' | 'definition' | 'type' | 'tags'> & {
41
- label: string;
42
- definition: string;
43
- type: TTermTypeLocalized[];
44
- tags: TTermTagLocalized[];
45
- };
46
- export type TTerms = (typeof TERM)[keyof typeof TERM];
47
- export type TTermId = keyof typeof TERM;
48
- export type TDevDict = Record<TTermId, TTerm>;
49
- export type TDevDictLocalized = Record<TTermId, TTermLocalized>;
50
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AAE/C,MAAM,MAAM,OAAO,GAAG,CAAC,OAAO,MAAM,CAAC,CAAC,MAAM,OAAO,MAAM,CAAC,CAAA;AA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CAAA;IAClB,KAAK,EAAE,UAAU,CAAA;IACjB,UAAU,EAAE,eAAe,CAAA;IAC3B,IAAI,EAAE,SAAS,EAAE,CAAA;IACjB,KAAK,CAAC,EAAE,UAAU,CAAA;CAInB,CAAA;AAED,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,KAAK,EAAE,OAAO,GAAG,YAAY,GAAG,MAAM,GAAG,MAAM,CAAC,GAAG;IACnF,KAAK,EAAE,MAAM,CAAA;IACb,UAAU,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE,kBAAkB,EAAE,CAAA;IAC1B,IAAI,EAAE,iBAAiB,EAAE,CAAA;CAC1B,CAAA;AAED,MAAM,MAAM,MAAM,GAAG,CAAC,OAAO,IAAI,CAAC,CAAC,MAAM,OAAO,IAAI,CAAC,CAAA;AAErD,MAAM,MAAM,OAAO,GAAG,MAAM,OAAO,IAAI,CAAA;AAEvC,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,EAAE,KAAK,CAAC,CAAA;AAE7C,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,OAAO,EAAE,cAAc,CAAC,CAAA"}
@@ -1,18 +0,0 @@
1
- import type { TLocale, TTermDefinition, TTermLabel, TTermTag, TTermTagLocalized, TTermType, TTermTypeLocalized } from '@/types';
2
- export declare const getLabelLocalized: ({ label, locale, }: {
3
- label: TTermLabel;
4
- locale?: TLocale;
5
- }) => string;
6
- export declare const getDefinitionLocalized: ({ definition, locale, }: {
7
- definition: TTermDefinition;
8
- locale?: TLocale;
9
- }) => string;
10
- export declare const getTermTagLocalized: ({ tag, locale, }: {
11
- tag: TTermTag;
12
- locale?: TLocale;
13
- }) => TTermTagLocalized;
14
- export declare const getTermTypeLocalized: ({ term, locale, }: {
15
- term: TTermType;
16
- locale?: TLocale;
17
- }) => TTermTypeLocalized;
18
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,EACP,eAAe,EACf,UAAU,EACV,QAAQ,EACR,iBAAiB,EACjB,SAAS,EACT,kBAAkB,EACnB,MAAM,SAAS,CAAA;AAGhB,eAAO,MAAM,iBAAiB,GAAI,oBAG/B;IACD,KAAK,EAAE,UAAU,CAAA;IACjB,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,KAAG,MAEH,CAAA;AAED,eAAO,MAAM,sBAAsB,GAAI,yBAGpC;IACD,UAAU,EAAE,eAAe,CAAA;IAC3B,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,KAAG,MAEH,CAAA;AAED,eAAO,MAAM,mBAAmB,GAAI,kBAGjC;IACD,GAAG,EAAE,QAAQ,CAAA;IACb,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,KAAG,iBAKH,CAAA;AAED,eAAO,MAAM,oBAAoB,GAAI,mBAGlC;IACD,IAAI,EAAE,SAAS,CAAA;IACf,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,KAAG,kBAKH,CAAA"}