dev-dict 0.1.4 → 0.1.5

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 (72) hide show
  1. package/README.md +19 -4
  2. package/dist/data/index.d.ts +5 -0
  3. package/dist/data/index.d.ts.map +1 -0
  4. package/dist/data/locales/index.d.ts +6 -0
  5. package/dist/data/locales/index.d.ts.map +1 -0
  6. package/dist/{term-tags → data/tags}/backend.d.ts +1 -1
  7. package/dist/data/tags/backend.d.ts.map +1 -0
  8. package/dist/{term-tags → data/tags}/frontend.d.ts +1 -1
  9. package/dist/data/tags/frontend.d.ts.map +1 -0
  10. package/dist/data/tags/index.d.ts +24 -0
  11. package/dist/data/tags/index.d.ts.map +1 -0
  12. package/dist/{term-tags → data/tags}/open_source.d.ts +1 -1
  13. package/dist/data/tags/open_source.d.ts.map +1 -0
  14. package/dist/data/terms/index.d.ts +108 -0
  15. package/dist/data/terms/index.d.ts.map +1 -0
  16. package/dist/{terms → data/terms}/node_js.d.ts +17 -5
  17. package/dist/data/terms/node_js.d.ts.map +1 -0
  18. package/dist/data/terms/react.d.ts +37 -0
  19. package/dist/data/terms/react.d.ts.map +1 -0
  20. package/dist/data/terms/typescript.d.ts +43 -0
  21. package/dist/data/terms/typescript.d.ts.map +1 -0
  22. package/dist/{term-types → data/types}/cms.d.ts +1 -1
  23. package/dist/data/types/cms.d.ts.map +1 -0
  24. package/dist/data/types/index.d.ts +31 -0
  25. package/dist/data/types/index.d.ts.map +1 -0
  26. package/dist/{term-types → data/types}/language.d.ts +1 -1
  27. package/dist/data/types/language.d.ts.map +1 -0
  28. package/dist/{term-types → data/types}/library.d.ts +1 -1
  29. package/dist/data/types/library.d.ts.map +1 -0
  30. package/dist/{term-types → data/types}/runtime_environment.d.ts +1 -1
  31. package/dist/data/types/runtime_environment.d.ts.map +1 -0
  32. package/dist/dev-dict.min.js +1 -1
  33. package/dist/dev-dict.min.js.map +1 -1
  34. package/dist/examples/index.d.ts +2 -0
  35. package/dist/examples/index.d.ts.map +1 -0
  36. package/dist/index.js +96 -138
  37. package/dist/index.js.map +1 -1
  38. package/dist/src/common/index.d.ts +5 -0
  39. package/dist/src/common/index.d.ts.map +1 -0
  40. package/dist/src/index.d.ts +9 -0
  41. package/dist/src/index.d.ts.map +1 -0
  42. package/dist/{typings → src/types}/index.d.ts +10 -8
  43. package/dist/src/types/index.d.ts.map +1 -0
  44. package/dist/{utils → src/utils}/index.d.ts +1 -2
  45. package/dist/src/utils/index.d.ts.map +1 -0
  46. package/package.json +2 -1
  47. package/dist/common/index.d.ts +0 -5
  48. package/dist/common/index.d.ts.map +0 -1
  49. package/dist/index.d.ts +0 -11
  50. package/dist/index.d.ts.map +0 -1
  51. package/dist/locales/index.d.ts +0 -6
  52. package/dist/locales/index.d.ts.map +0 -1
  53. package/dist/term-tags/backend.d.ts.map +0 -1
  54. package/dist/term-tags/frontend.d.ts.map +0 -1
  55. package/dist/term-tags/index.d.ts +0 -4
  56. package/dist/term-tags/index.d.ts.map +0 -1
  57. package/dist/term-tags/open_source.d.ts.map +0 -1
  58. package/dist/term-types/cms.d.ts.map +0 -1
  59. package/dist/term-types/index.d.ts +0 -4
  60. package/dist/term-types/index.d.ts.map +0 -1
  61. package/dist/term-types/language.d.ts.map +0 -1
  62. package/dist/term-types/library.d.ts.map +0 -1
  63. package/dist/term-types/runtime_environment.d.ts.map +0 -1
  64. package/dist/terms/index.d.ts +0 -5
  65. package/dist/terms/index.d.ts.map +0 -1
  66. package/dist/terms/node_js.d.ts.map +0 -1
  67. package/dist/terms/react.d.ts +0 -19
  68. package/dist/terms/react.d.ts.map +0 -1
  69. package/dist/terms/typescript.d.ts +0 -19
  70. package/dist/terms/typescript.d.ts.map +0 -1
  71. package/dist/typings/index.d.ts.map +0 -1
  72. package/dist/utils/index.d.ts.map +0 -1
package/README.md CHANGED
@@ -1,6 +1,13 @@
1
1
  # dev-dict
2
2
 
3
- A dictionary of software related terms. Supports multiple languages.
3
+ A dictionary of software related terms.
4
+
5
+ This package aims to provide an exhaustive list of software industry related terms with simple explanations.
6
+
7
+ Currently supported languages:
8
+ - English (US)
9
+ - English (GB)
10
+ - German (DE)
4
11
 
5
12
  ## Installation
6
13
 
@@ -11,8 +18,16 @@ npm i dev-dict
11
18
  ## Usage
12
19
 
13
20
  ```typescript
14
- import { getDict } from 'dev-dict`
21
+ import { getTerm, getDict } from 'dev-dict'
22
+
23
+ // Get a single term
24
+ const reactEn = getTerm({ id: 'react', locale: 'en-US' })
25
+ const reactDe = getTerm({ id: 'react', locale: 'de-DE' })
26
+ console.log(reactEn.label) // "JavaScript Library"
27
+ console.log(reactDe.label) // "JavaScript-Bibliothek"
28
+
15
29
 
16
- const dd = getDict()
17
- console.log(dd.react.name)
30
+ // Get entire dictionary
31
+ const dd = getDict({ locale: 'en-US' })
32
+ console.log(dd.react.name) // "React"
18
33
  ```
@@ -0,0 +1,5 @@
1
+ export * from './locales';
2
+ export * from './tags';
3
+ export * from './terms';
4
+ export * from './types';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,6 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../data/locales/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;CAIT,CAAA"}
@@ -1,7 +1,7 @@
1
1
  declare const _default: {
2
2
  readonly id: "backend";
3
3
  readonly name: {
4
- readonly "en-GB": "Backend";
4
+ readonly "en-US": "Backend";
5
5
  readonly "de-DE": "Backend";
6
6
  };
7
7
  };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"backend.d.ts","sourceRoot":"","sources":["../../../data/tags/backend.ts"],"names":[],"mappings":";;;;;;;AAIA,wBAO6B"}
@@ -1,7 +1,7 @@
1
1
  declare const _default: {
2
2
  readonly id: "frontend";
3
3
  readonly name: {
4
- readonly "en-GB": "Frontend";
4
+ readonly "en-US": "Frontend";
5
5
  readonly "de-DE": "Frontend";
6
6
  };
7
7
  };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"frontend.d.ts","sourceRoot":"","sources":["../../../data/tags/frontend.ts"],"names":[],"mappings":";;;;;;;AAIA,wBAO6B"}
@@ -0,0 +1,24 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../data/tags/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;CAIN,CAAA"}
@@ -1,7 +1,7 @@
1
1
  declare const _default: {
2
2
  readonly id: "open_source";
3
3
  readonly name: {
4
- readonly "en-GB": "Open Source";
4
+ readonly "en-US": "Open Source";
5
5
  readonly "de-DE": "Open Source";
6
6
  };
7
7
  };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"open_source.d.ts","sourceRoot":"","sources":["../../../data/tags/open_source.ts"],"names":[],"mappings":";;;;;;;AAIA,wBAO6B"}
@@ -0,0 +1,108 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../data/terms/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIP,CAAA"}
@@ -1,16 +1,28 @@
1
1
  declare const _default: {
2
2
  readonly id: "node_js";
3
- readonly term: "Node.js";
4
- readonly type: [import("../typings").TTermType];
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
+ }];
5
11
  readonly label: {
6
- readonly "en-GB": "JavaScript Runtime";
12
+ readonly "en-US": "JavaScript Runtime";
7
13
  readonly "de-DE": "JavaScript-Laufzeit";
8
14
  };
9
15
  readonly definition: {
10
- readonly "en-GB": "Node.js is a free, open-source, cross-platform JavaScript runtime environment that lets developers create servers, web apps, command line tools and scripts.";
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.";
11
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.";
12
18
  };
13
- readonly tags: [import("../typings").TTermTag];
19
+ readonly tags: [{
20
+ readonly id: "backend";
21
+ readonly name: {
22
+ readonly "en-US": "Backend";
23
+ readonly "de-DE": "Backend";
24
+ };
25
+ }];
14
26
  readonly links: {
15
27
  readonly website: "https://nodejs.org";
16
28
  };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"node_js.d.ts","sourceRoot":"","sources":["../../../data/terms/node_js.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,wBAsB0B"}
@@ -0,0 +1,37 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"react.d.ts","sourceRoot":"","sources":["../../../data/terms/react.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,wBAsB0B"}
@@ -0,0 +1,43 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typescript.d.ts","sourceRoot":"","sources":["../../../data/terms/typescript.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,wBAsB0B"}
@@ -1,7 +1,7 @@
1
1
  declare const _default: {
2
2
  readonly id: "cms";
3
3
  readonly name: {
4
- readonly "en-GB": "Content Management System";
4
+ readonly "en-US": "Content Management System";
5
5
  readonly "de-DE": "Content-Management-System";
6
6
  };
7
7
  };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cms.d.ts","sourceRoot":"","sources":["../../../data/types/cms.ts"],"names":[],"mappings":";;;;;;;AAIA,wBAO8B"}
@@ -0,0 +1,31 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../data/types/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKP,CAAA"}
@@ -1,7 +1,7 @@
1
1
  declare const _default: {
2
2
  readonly id: "language";
3
3
  readonly name: {
4
- readonly "en-GB": "Language";
4
+ readonly "en-US": "Language";
5
5
  readonly "de-DE": "Sprache";
6
6
  };
7
7
  };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"language.d.ts","sourceRoot":"","sources":["../../../data/types/language.ts"],"names":[],"mappings":";;;;;;;AAIA,wBAO8B"}
@@ -1,7 +1,7 @@
1
1
  declare const _default: {
2
2
  readonly id: "library";
3
3
  readonly name: {
4
- readonly "en-GB": "Library";
4
+ readonly "en-US": "Library";
5
5
  readonly "de-DE": "Bibliothek";
6
6
  };
7
7
  };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"library.d.ts","sourceRoot":"","sources":["../../../data/types/library.ts"],"names":[],"mappings":";;;;;;;AAIA,wBAO8B"}
@@ -1,7 +1,7 @@
1
1
  declare const _default: {
2
2
  readonly id: "runtime_environment";
3
3
  readonly name: {
4
- readonly "en-GB": "Runtime Environment";
4
+ readonly "en-US": "Runtime Environment";
5
5
  readonly "de-DE": "Laufzeitumgebung";
6
6
  };
7
7
  };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"runtime_environment.d.ts","sourceRoot":"","sources":["../../../data/types/runtime_environment.ts"],"names":[],"mappings":";;;;;;;AAIA,wBAO8B"}
@@ -1,2 +1,2 @@
1
- (function(i,e){typeof exports=="object"&&typeof module<"u"?e(exports):typeof define=="function"&&define.amd?define(["exports"],e):(i=typeof globalThis<"u"?globalThis:i||self,e(i.devdict={}))})(this,(function(i){"use strict";const e={EN_GB:"en-GB",DE_DE:"de-DE"},o={DEFAULT_LOCALE:e.EN_GB},u={id:"backend",name:{[e.EN_GB]:"Backend",[e.DE_DE]:"Backend"}},b=Object.freeze(Object.defineProperty({__proto__:null,default:u},Symbol.toStringTag,{value:"Module"})),g={id:"frontend",name:{[e.EN_GB]:"Frontend",[e.DE_DE]:"Frontend"}},p=Object.freeze(Object.defineProperty({__proto__:null,default:g},Symbol.toStringTag,{value:"Module"})),f={id:"open_source",name:{[e.EN_GB]:"Open Source",[e.DE_DE]:"Open Source"}},a=Object.values(Object.assign({"./backend.ts":b,"./frontend.ts":p,"./open_source.ts":Object.freeze(Object.defineProperty({__proto__:null,default:f},Symbol.toStringTag,{value:"Module"}))})).filter(t=>t.default).reduce((t,n)=>({...t,[n.default.id]:n.default}),{}),E={id:"cms",name:{[e.EN_GB]:"Content Management System",[e.DE_DE]:"Content-Management-System"}},m=Object.freeze(Object.defineProperty({__proto__:null,default:E},Symbol.toStringTag,{value:"Module"})),y={id:"language",name:{[e.EN_GB]:"Language",[e.DE_DE]:"Sprache"}},L=Object.freeze(Object.defineProperty({__proto__:null,default:y},Symbol.toStringTag,{value:"Module"})),v={id:"library",name:{[e.EN_GB]:"Library",[e.DE_DE]:"Bibliothek"}},S=Object.freeze(Object.defineProperty({__proto__:null,default:v},Symbol.toStringTag,{value:"Module"})),O={id:"runtime_environment",name:{[e.EN_GB]:"Runtime Environment",[e.DE_DE]:"Laufzeitumgebung"}},l=Object.values(Object.assign({"./cms.ts":m,"./language.ts":L,"./library.ts":S,"./runtime_environment.ts":Object.freeze(Object.defineProperty({__proto__:null,default:O},Symbol.toStringTag,{value:"Module"}))})).filter(t=>t.default).reduce((t,n)=>({...t,[n.default.id]:n.default}),{}),D={id:"node_js",term:"Node.js",type:[l.runtime_environment],label:{[e.EN_GB]:"JavaScript Runtime",[e.DE_DE]:"JavaScript-Laufzeit"},definition:{[e.EN_GB]:"Node.js is a free, open-source, cross-platform JavaScript runtime environment that lets developers create servers, web apps, command line tools and scripts.",[e.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."},tags:[a.backend],links:{website:"https://nodejs.org"}},T=Object.freeze(Object.defineProperty({__proto__:null,default:D},Symbol.toStringTag,{value:"Module"})),j={id:"react",term:"React",type:[l.library],label:{[e.EN_GB]:"JavaScript Library",[e.DE_DE]:"JavaScript-Bibliothek"},definition:{[e.EN_GB]:"A JavaScript library for building component-based user interfaces.",[e.DE_DE]:"Eine JavaScript-Bibliothek zum Erstellen komponentenbasierter Benutzeroberflächen."},tags:[a.frontend,a.backend],links:{website:"https://react.dev"}},A=Object.freeze(Object.defineProperty({__proto__:null,default:j},Symbol.toStringTag,{value:"Module"})),z={id:"typescript",term:"TypeScript",type:[l.language],label:{[e.EN_GB]:"High-Level Programming Language",[e.DE_DE]:"Hochsprache"},definition:{[e.EN_GB]:"TypeScript is a strongly typed programming language that builds on JavaScript, giving you better tooling at any scale.",[e.DE_DE]:"TypeScript ist eine stark typisierte Programmiersprache, die auf JavaScript aufbaut und Ihnen bei jeder Größenordnung bessere Werkzeuge bietet."},tags:[a.frontend,a.backend,a.open_source],links:{website:"https://www.typescriptlang.org"}},s=Object.values(Object.assign({"./node_js.ts":T,"./react.ts":A,"./typescript.ts":Object.freeze(Object.defineProperty({__proto__:null,default:z},Symbol.toStringTag,{value:"Module"}))})).filter(t=>t.default).reduce((t,n)=>({...t,[n.default.id]:n.default}),{}),B=({label:t,locale:n=o.DEFAULT_LOCALE})=>t[n]||t[o.DEFAULT_LOCALE],k=({definition:t,locale:n=o.DEFAULT_LOCALE})=>t[n]||t[o.DEFAULT_LOCALE],h=({tag:t,locale:n=o.DEFAULT_LOCALE})=>({id:t.id,name:t.name[n]||t.name[o.DEFAULT_LOCALE]}),G=({term:t,locale:n=o.DEFAULT_LOCALE})=>({id:t.id,name:t.name[n]||t.name[o.DEFAULT_LOCALE]}),c=({id:t,locale:n=o.DEFAULT_LOCALE})=>{const r=s[t];return r?{...r,label:B({label:r.label,locale:n}),definition:k({definition:r.definition,locale:n}),type:r.type.map(_=>G({term:_,locale:n})),tags:r.tags.map(_=>h({tag:_,locale:n}))}:null},N=({locale:t=o.DEFAULT_LOCALE}={locale:o.DEFAULT_LOCALE})=>{const n={};for(const[r,_]of Object.entries(s)){const d=c({id:_.id,locale:t});d&&(n[r]=d)}return n};i.getDict=N,i.getTerm=c,Object.defineProperty(i,Symbol.toStringTag,{value:"Module"})}));
1
+ (function(r,e){typeof exports=="object"&&typeof module<"u"?e(exports):typeof define=="function"&&define.amd?define(["exports"],e):(r=typeof globalThis<"u"?globalThis:r||self,e(r.devdict={}))})(this,(function(r){"use strict";const e={EN_US:"en-US",DE_DE:"de-DE"},d={id:"backend",name:{[e.EN_US]:"Backend",[e.DE_DE]:"Backend"}},E={id:"frontend",name:{[e.EN_US]:"Frontend",[e.DE_DE]:"Frontend"}},p={id:"open_source",name:{[e.EN_US]:"Open Source",[e.DE_DE]:"Open Source"}},o={[d.id]:d,[E.id]:E,[p.id]:p},l={id:"cms"},u={id:"language",name:{[e.EN_US]:"Language",[e.DE_DE]:"Sprache"}},m={id:"library",name:{[e.EN_US]:"Library",[e.DE_DE]:"Bibliothek"}},L={id:"runtime_environment",name:{[e.EN_US]:"Runtime Environment",[e.DE_DE]:"Laufzeitumgebung"}},c={[l.id]:l,[u.id]:u,[m.id]:m,[L.id]:L},g={id:"node_js",name:"Node.js",type:[c.runtime_environment],label:{[e.EN_US]:"JavaScript Runtime",[e.DE_DE]:"JavaScript-Laufzeit"},definition:{[e.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.",[e.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."},tags:[o.backend],links:{website:"https://nodejs.org"}},_={id:"react",name:"React",type:[c.library],label:{[e.EN_US]:"JavaScript Library",[e.DE_DE]:"JavaScript-Bibliothek"},definition:{[e.EN_US]:"A JavaScript library for building component-based user interfaces.",[e.DE_DE]:"Eine JavaScript-Bibliothek zum Erstellen komponentenbasierter Benutzeroberflächen."},tags:[o.frontend,o.backend],links:{website:"https://react.dev"}},b={id:"typescript",name:"TypeScript",type:[c.language],label:{[e.EN_US]:"High-Level Programming Language",[e.DE_DE]:"Hochsprache"},definition:{[e.EN_US]:"TypeScript is a strongly typed programming language that builds on JavaScript, giving you better tooling at any scale.",[e.DE_DE]:"TypeScript ist eine stark typisierte Programmiersprache, die auf JavaScript aufbaut und Ihnen bei jeder Größenordnung bessere Werkzeuge bietet."},tags:[o.frontend,o.backend,o.open_source],links:{website:"https://www.typescriptlang.org"}},D={[g.id]:g,[_.id]:_,[b.id]:b},i={DEFAULT_LOCALE:e.EN_US},y=({label:n,locale:t=i.DEFAULT_LOCALE})=>n[t]||n[i.DEFAULT_LOCALE],T=({definition:n,locale:t=i.DEFAULT_LOCALE})=>n[t]||n[i.DEFAULT_LOCALE],A=({tag:n,locale:t=i.DEFAULT_LOCALE})=>({id:n.id,name:n.name[t]||n.name[i.DEFAULT_LOCALE]}),U=({term:n,locale:t=i.DEFAULT_LOCALE})=>({id:n.id,name:n.name[t]||n.name[i.DEFAULT_LOCALE]}),f=({id:n,locale:t=i.DEFAULT_LOCALE})=>{const a=D[n];return{...a,label:y({label:a.label,locale:t}),definition:T({definition:a.definition,locale:t}),type:a.type.map(s=>U({term:s,locale:t})),tags:a.tags.map(s=>A({tag:s,locale:t}))}},v=({locale:n=i.DEFAULT_LOCALE}={locale:i.DEFAULT_LOCALE})=>{const t={};for(const[a,s]of Object.entries(D)){const S=f({id:s.id,locale:n});S&&(t[a]=S)}return t};r.getDict=v,r.getTerm=f,Object.defineProperty(r,Symbol.toStringTag,{value:"Module"})}));
2
2
  //# sourceMappingURL=dev-dict.min.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"dev-dict.min.js","sources":["../src/locales/index.ts","../src/common/index.ts","../src/term-tags/backend.ts","../src/term-tags/frontend.ts","../src/term-tags/open_source.ts","../src/term-tags/index.ts","../src/term-types/cms.ts","../src/term-types/language.ts","../src/term-types/library.ts","../src/term-types/runtime_environment.ts","../src/term-types/index.ts","../src/terms/node_js.ts","../src/terms/react.ts","../src/terms/typescript.ts","../src/terms/index.ts","../src/utils/index.ts","../src/index.ts"],"sourcesContent":["export const LOCALE = {\n EN_GB: 'en-GB',\n DE_DE: 'de-DE',\n} as const\n\nexport type TLocale = (typeof LOCALE)[keyof typeof LOCALE]\n","import { LOCALE } from '../locales'\n\nexport const MISC = {} as const\n\nexport const CONFIG = {\n DEFAULT_LOCALE: LOCALE.EN_GB,\n} as const\n","import { LOCALE } from '../locales'\nimport type { TTermTag } from '../typings'\n\nexport default {\n id: 'backend',\n\n name: {\n [LOCALE.EN_GB]: `Backend`,\n [LOCALE.DE_DE]: `Backend`,\n },\n} as const satisfies TTermTag\n","import { LOCALE } from '../locales'\nimport type { TTermTag } from '../typings'\n\nexport default {\n id: 'frontend',\n\n name: {\n [LOCALE.EN_GB]: `Frontend`,\n [LOCALE.DE_DE]: `Frontend`,\n },\n} as const satisfies TTermTag\n","import { LOCALE } from '../locales'\nimport type { TTermTag } from '../typings'\n\nexport default {\n id: 'open_source',\n\n name: {\n [LOCALE.EN_GB]: `Open Source`,\n [LOCALE.DE_DE]: `Open Source`,\n },\n} as const satisfies TTermTag\n","import type { TTermTag } from '../typings'\n\nconst modules = import.meta.glob<{ default: TTermTag }>('./*.ts', { eager: true })\n\nexport const TERM_TAGS = Object.values(modules)\n .filter((module) => module.default)\n .reduce(\n (acc, module) => ({\n ...acc,\n [module.default.id]: module.default,\n }),\n {} as Record<string, TTermTag>,\n )\n\nexport type TTermTags = (typeof TERM_TAGS)[keyof typeof TERM_TAGS]\n","import { LOCALE } from '../locales'\nimport type { TTermType } from '../typings'\n\nexport default {\n id: 'cms',\n\n name: {\n [LOCALE.EN_GB]: `Content Management System`,\n [LOCALE.DE_DE]: `Content-Management-System`,\n },\n} as const satisfies TTermType\n","import { LOCALE } from '../locales'\nimport type { TTermType } from '../typings'\n\nexport default {\n id: 'language',\n\n name: {\n [LOCALE.EN_GB]: `Language`,\n [LOCALE.DE_DE]: `Sprache`,\n },\n} as const satisfies TTermType\n","import { LOCALE } from '../locales'\nimport type { TTermType } from '../typings'\n\nexport default {\n id: 'library',\n\n name: {\n [LOCALE.EN_GB]: `Library`,\n [LOCALE.DE_DE]: `Bibliothek`,\n },\n} as const satisfies TTermType\n","import { LOCALE } from '../locales'\nimport type { TTermType } from '../typings'\n\nexport default {\n id: 'runtime_environment',\n\n name: {\n [LOCALE.EN_GB]: `Runtime Environment`,\n [LOCALE.DE_DE]: `Laufzeitumgebung`,\n },\n} as const satisfies TTermType\n","import type { TTermType } from '../typings'\n\nconst modules = import.meta.glob<{ default: TTermType }>('./*.ts', { eager: true })\n\nexport const TERM_TYPES = Object.values(modules)\n .filter((module) => module.default)\n .reduce(\n (acc, module) => ({\n ...acc,\n [module.default.id]: module.default,\n }),\n {} as Record<string, TTermType>,\n )\n\nexport type TTermTypes = (typeof TERM_TYPES)[keyof typeof TERM_TYPES]\n","import { LOCALE } from '../locales'\nimport { TERM_TAGS } from '../term-tags'\nimport { TERM_TYPES } from '../term-types'\nimport type { TTerm } from '../typings'\n\nexport default {\n id: 'node_js',\n\n term: 'Node.js',\n\n type: [TERM_TYPES.runtime_environment],\n\n label: {\n [LOCALE.EN_GB]: `JavaScript Runtime`,\n [LOCALE.DE_DE]: `JavaScript-Laufzeit`,\n },\n\n definition: {\n [LOCALE.EN_GB]: `Node.js is a free, open-source, cross-platform JavaScript runtime environment that lets developers create servers, web apps, command line tools and scripts.`,\n [LOCALE.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.`,\n },\n\n tags: [TERM_TAGS.backend],\n\n links: {\n website: 'https://nodejs.org',\n },\n} as const satisfies TTerm\n","import { LOCALE } from '../locales'\nimport { TERM_TAGS } from '../term-tags'\nimport { TERM_TYPES } from '../term-types'\nimport type { TTerm } from '../typings'\n\nexport default {\n id: 'react',\n\n term: 'React',\n\n type: [TERM_TYPES.library],\n\n label: {\n [LOCALE.EN_GB]: `JavaScript Library`,\n [LOCALE.DE_DE]: `JavaScript-Bibliothek`,\n },\n\n definition: {\n [LOCALE.EN_GB]: `A JavaScript library for building component-based user interfaces.`,\n [LOCALE.DE_DE]: `Eine JavaScript-Bibliothek zum Erstellen komponentenbasierter Benutzeroberflächen.`,\n },\n\n tags: [TERM_TAGS.frontend, TERM_TAGS.backend],\n\n links: {\n website: 'https://react.dev',\n },\n} as const satisfies TTerm\n","import { LOCALE } from '../locales'\nimport { TERM_TAGS } from '../term-tags'\nimport { TERM_TYPES } from '../term-types'\nimport type { TTerm } from '../typings'\n\nexport default {\n id: 'typescript',\n\n term: 'TypeScript',\n\n type: [TERM_TYPES.language],\n\n label: {\n [LOCALE.EN_GB]: `High-Level Programming Language`,\n [LOCALE.DE_DE]: `Hochsprache`,\n },\n\n definition: {\n [LOCALE.EN_GB]: `TypeScript is a strongly typed programming language that builds on JavaScript, giving you better tooling at any scale.`,\n [LOCALE.DE_DE]: `TypeScript ist eine stark typisierte Programmiersprache, die auf JavaScript aufbaut und Ihnen bei jeder Größenordnung bessere Werkzeuge bietet.`,\n },\n\n tags: [TERM_TAGS.frontend, TERM_TAGS.backend, TERM_TAGS.open_source],\n\n links: {\n website: 'https://www.typescriptlang.org',\n },\n} as const satisfies TTerm\n","import type { TTerm } from '../typings'\n\nconst modules = import.meta.glob<{ default: TTerm }>('./*.ts', { eager: true })\n\nexport const TERMS = Object.values(modules)\n .filter((module) => module.default)\n .reduce(\n (acc, module) => ({\n ...acc,\n [module.default.id]: module.default,\n }),\n {} as Record<string, TTerm>,\n )\n\nexport type TTerms = (typeof TERMS)[keyof typeof TERMS]\nexport type TTermId = keyof typeof TERMS\n","import { CONFIG } from '../common'\nimport type { TLocale } from '../locales'\nimport type {\n TTermDefinition,\n TTermLabel,\n TTermTag,\n TTermTagLocalized,\n TTermType,\n TTermTypeLocalized,\n} from '../typings'\n\nexport const getLabelLocalized = ({\n label,\n locale = CONFIG.DEFAULT_LOCALE,\n}: {\n label: TTermLabel\n locale?: TLocale\n}): string => {\n return label[locale] || label[CONFIG.DEFAULT_LOCALE]\n}\n\nexport const getDefinitionLocalized = ({\n definition,\n locale = CONFIG.DEFAULT_LOCALE,\n}: {\n definition: TTermDefinition\n locale?: TLocale\n}): string => {\n return definition[locale] || definition[CONFIG.DEFAULT_LOCALE]\n}\n\nexport const getTermTagLocalized = ({\n tag,\n locale = CONFIG.DEFAULT_LOCALE,\n}: {\n tag: TTermTag\n locale?: TLocale\n}): TTermTagLocalized => {\n return {\n id: tag.id,\n name: tag.name[locale] || tag.name[CONFIG.DEFAULT_LOCALE],\n }\n}\n\nexport const getTermTypeLocalized = ({\n term,\n locale = CONFIG.DEFAULT_LOCALE,\n}: {\n term: TTermType\n locale?: TLocale\n}): TTermTypeLocalized => {\n return {\n id: term.id,\n name: term.name[locale] || term.name[CONFIG.DEFAULT_LOCALE],\n }\n}\n","import { CONFIG } from './common'\nimport type { TLocale } from './locales'\nimport { TERMS } from './terms'\nimport type { TTermId } from './terms'\nimport type { TDevDict, TTermLocalized } from './typings'\nimport { getDefinitionLocalized, getLabelLocalized, getTermTagLocalized, getTermTypeLocalized } from './utils'\n\nexport const getTerm = ({\n id,\n locale = CONFIG.DEFAULT_LOCALE,\n}: {\n id: TTermId\n locale?: TLocale\n}): TTermLocalized | null => {\n const term = TERMS[id]\n\n if (!term) {\n return null\n }\n\n return {\n ...term,\n label: getLabelLocalized({ label: term.label, locale }),\n definition: getDefinitionLocalized({ definition: term.definition, locale }),\n type: term.type.map((value) => getTermTypeLocalized({ term: value, locale })),\n tags: term.tags.map((value) => getTermTagLocalized({ tag: value, locale })),\n }\n}\n\nexport const getDict = (\n {\n locale = CONFIG.DEFAULT_LOCALE,\n }: {\n locale?: TLocale\n } = { locale: CONFIG.DEFAULT_LOCALE },\n): TDevDict => {\n const dict: TDevDict = {}\n\n for (const [key, term] of Object.entries(TERMS)) {\n const localizedTerm = getTerm({ id: term.id, locale })\n if (localizedTerm) {\n dict[key as TTermId] = localizedTerm\n }\n }\n\n return dict\n}\n"],"names":["LOCALE","CONFIG","backend","frontend","open_source","TERM_TAGS","__vite_glob_0_0","__vite_glob_0_1","module","acc","cms","language","library","runtime_environment","TERM_TYPES","__vite_glob_0_2","node_js","react","typescript","TERMS","getLabelLocalized","label","locale","getDefinitionLocalized","definition","getTermTagLocalized","tag","getTermTypeLocalized","term","getTerm","id","value","getDict","dict","key","localizedTerm"],"mappings":"gOAAO,MAAMA,EAAS,CACpB,MAAO,QACP,MAAO,OACT,ECCaC,EAAS,CACpB,eAAgBD,EAAO,KACzB,ECHAE,EAAe,CACb,GAAI,UAEJ,KAAM,CACJ,CAACF,EAAO,KAAK,EAAG,UAChB,CAACA,EAAO,KAAK,EAAG,SAAA,CAEpB,yGCPAG,EAAe,CACb,GAAI,WAEJ,KAAM,CACJ,CAACH,EAAO,KAAK,EAAG,WAChB,CAACA,EAAO,KAAK,EAAG,UAAA,CAEpB,yGCPAI,EAAe,CACb,GAAI,cAEJ,KAAM,CACJ,CAACJ,EAAO,KAAK,EAAG,cAChB,CAACA,EAAO,KAAK,EAAG,aAAA,CAEpB,ECNaK,EAAY,OAAO,OAFhB,OAAA,OAAA,CAAA,eAAAC,EAAA,gBAAAC,EAAA,uHAAA,CAAA,CAE8B,EAC3C,OAAQC,GAAWA,EAAO,OAAO,EACjC,OACC,CAACC,EAAKD,KAAY,CAChB,GAAGC,EACH,CAACD,EAAO,QAAQ,EAAE,EAAGA,EAAO,OAAA,GAE9B,CAAA,CACF,ECTFE,EAAe,CACb,GAAI,MAEJ,KAAM,CACJ,CAACV,EAAO,KAAK,EAAG,4BAChB,CAACA,EAAO,KAAK,EAAG,2BAAA,CAEpB,yGCPAW,EAAe,CACb,GAAI,WAEJ,KAAM,CACJ,CAACX,EAAO,KAAK,EAAG,WAChB,CAACA,EAAO,KAAK,EAAG,SAAA,CAEpB,yGCPAY,EAAe,CACb,GAAI,UAEJ,KAAM,CACJ,CAACZ,EAAO,KAAK,EAAG,UAChB,CAACA,EAAO,KAAK,EAAG,YAAA,CAEpB,yGCPAa,EAAe,CACb,GAAI,s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AUN,EAAoB,CAAE,IAAKM,EAAO,OAAAT,EAAQ,CAAC,CAAA,EARnE,IAUX,EAEaU,EAAU,CACrB,CACE,OAAAV,EAASrB,EAAO,cAClB,EAEI,CAAE,OAAQA,EAAO,kBACR,CACb,MAAMgC,EAAiB,CAAA,EAEvB,SAAW,CAACC,EAAKN,CAAI,IAAK,OAAO,QAAQT,CAAK,EAAG,CAC/C,MAAMgB,EAAgBN,EAAQ,CAAE,GAAID,EAAK,GAAI,OAAAN,EAAQ,EACjDa,IACFF,EAAKC,CAAc,EAAIC,EAE3B,CAEA,OAAOF,CACT"}
1
+ {"version":3,"file":"dev-dict.min.js","sources":["../data/locales/index.ts","../data/tags/backend.ts","../data/tags/frontend.ts","../data/tags/open_source.ts","../data/tags/index.ts","../data/types/cms.ts","../data/types/language.ts","../data/types/library.ts","../data/types/runtime_environment.ts","../data/types/index.ts","../data/terms/node_js.ts","../data/terms/react.ts","../data/terms/typescript.ts","../data/terms/index.ts","../src/common/index.ts","../src/utils/index.ts","../src/index.ts"],"sourcesContent":["export const LOCALE = {\n EN_US: 'en-US',\n EN_GB: 'en-GB',\n DE_DE: 'de-DE',\n} as const\n","import type { TTermTag } from '@/types'\n\nimport { LOCALE } from '../locales'\n\nexport default {\n id: 'backend',\n\n name: {\n [LOCALE.EN_US]: `Backend`,\n [LOCALE.DE_DE]: `Backend`,\n },\n} as const satisfies TTermTag\n","import type { TTermTag } from '@/types'\n\nimport { LOCALE } from '../locales'\n\nexport default {\n id: 'frontend',\n\n name: {\n [LOCALE.EN_US]: `Frontend`,\n [LOCALE.DE_DE]: `Frontend`,\n },\n} as const satisfies TTermTag\n","import type { TTermTag } from '@/types'\n\nimport { LOCALE } from '../locales'\n\nexport default {\n id: 'open_source',\n\n name: {\n [LOCALE.EN_US]: `Open Source`,\n [LOCALE.DE_DE]: `Open Source`,\n },\n} as const satisfies TTermTag\n","import backend from './backend'\nimport frontend from './frontend'\nimport open_source from './open_source'\n\nexport const TAG = {\n [backend.id]: backend,\n [frontend.id]: frontend,\n [open_source.id]: open_source,\n} as const\n","import type { TTermType } from '@/types'\n\nimport { LOCALE } from '../locales'\n\nexport default {\n id: 'cms',\n\n name: {\n [LOCALE.EN_US]: `Content Management System`,\n [LOCALE.DE_DE]: `Content-Management-System`,\n },\n} as const satisfies TTermType\n","import type { TTermType } from '@/types'\n\nimport { LOCALE } from '../locales'\n\nexport default {\n id: 'language',\n\n name: {\n [LOCALE.EN_US]: `Language`,\n [LOCALE.DE_DE]: `Sprache`,\n },\n} as const satisfies TTermType\n","import type { TTermType } from '@/types'\n\nimport { LOCALE } from '../locales'\n\nexport default {\n id: 'library',\n\n name: {\n [LOCALE.EN_US]: `Library`,\n [LOCALE.DE_DE]: `Bibliothek`,\n },\n} as const satisfies TTermType\n","import type { TTermType } from '@/types'\n\nimport { LOCALE } from '../locales'\n\nexport default {\n id: 'runtime_environment',\n\n name: {\n [LOCALE.EN_US]: `Runtime Environment`,\n [LOCALE.DE_DE]: `Laufzeitumgebung`,\n },\n} as const satisfies TTermType\n","import cms from './cms'\nimport language from './language'\nimport library from './library'\nimport runtime_environment from './runtime_environment'\n\nexport const TYPE = {\n [cms.id]: cms,\n [language.id]: language,\n [library.id]: library,\n [runtime_environment.id]: runtime_environment,\n} as const\n","import type { TTerm } from '@/types'\n\nimport { LOCALE } from '../locales'\nimport { TAG } from '../tags'\nimport { TYPE } from '../types'\n\nexport default {\n id: 'node_js',\n\n name: 'Node.js',\n\n type: [TYPE.runtime_environment],\n\n label: {\n [LOCALE.EN_US]: `JavaScript Runtime`,\n [LOCALE.DE_DE]: `JavaScript-Laufzeit`,\n },\n\n definition: {\n [LOCALE.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.`,\n [LOCALE.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.`,\n },\n\n tags: [TAG.backend],\n\n links: {\n website: 'https://nodejs.org',\n },\n} as const satisfies TTerm\n","import type { TTerm } from '@/types'\n\nimport { LOCALE } from '../locales'\nimport { TAG } from '../tags'\nimport { TYPE } from '../types'\n\nexport default {\n id: 'react',\n\n name: 'React',\n\n type: [TYPE.library],\n\n label: {\n [LOCALE.EN_US]: `JavaScript Library`,\n [LOCALE.DE_DE]: `JavaScript-Bibliothek`,\n },\n\n definition: {\n [LOCALE.EN_US]: `A JavaScript library for building component-based user interfaces.`,\n [LOCALE.DE_DE]: `Eine JavaScript-Bibliothek zum Erstellen komponentenbasierter Benutzeroberflächen.`,\n },\n\n tags: [TAG.frontend, TAG.backend],\n\n links: {\n website: 'https://react.dev',\n },\n} as const satisfies TTerm\n","import type { TTerm } from '@/types'\n\nimport { LOCALE } from '../locales'\nimport { TAG } from '../tags'\nimport { TYPE } from '../types'\n\nexport default {\n id: 'typescript',\n\n name: 'TypeScript',\n\n type: [TYPE.language],\n\n label: {\n [LOCALE.EN_US]: `High-Level Programming Language`,\n [LOCALE.DE_DE]: `Hochsprache`,\n },\n\n definition: {\n [LOCALE.EN_US]: `TypeScript is a strongly typed programming language that builds on JavaScript, giving you better tooling at any scale.`,\n [LOCALE.DE_DE]: `TypeScript ist eine stark typisierte Programmiersprache, die auf JavaScript aufbaut und Ihnen bei jeder Größenordnung bessere Werkzeuge bietet.`,\n },\n\n tags: [TAG.frontend, TAG.backend, TAG.open_source],\n\n links: {\n website: 'https://www.typescriptlang.org',\n },\n} as const satisfies TTerm\n","import node_js from './node_js'\nimport react from './react'\nimport typescript from './typescript'\n\nexport const TERM = {\n [node_js.id]: node_js,\n [react.id]: react,\n [typescript.id]: typescript,\n} as const\n","import { LOCALE } from '@data'\n\nexport const MISC = {} as const\n\nexport const CONFIG = {\n DEFAULT_LOCALE: LOCALE.EN_US,\n} as const\n","import type {\n TLocale,\n TTermDefinition,\n TTermLabel,\n TTermTag,\n TTermTagLocalized,\n TTermType,\n TTermTypeLocalized,\n} from '@/types'\nimport { CONFIG } from '@/common'\n\nexport const getLabelLocalized = ({\n label,\n locale = CONFIG.DEFAULT_LOCALE,\n}: {\n label: TTermLabel\n locale?: TLocale\n}): string => {\n return label[locale] || label[CONFIG.DEFAULT_LOCALE]\n}\n\nexport const getDefinitionLocalized = ({\n definition,\n locale = CONFIG.DEFAULT_LOCALE,\n}: {\n definition: TTermDefinition\n locale?: TLocale\n}): string => {\n return definition[locale] || definition[CONFIG.DEFAULT_LOCALE]\n}\n\nexport const getTermTagLocalized = ({\n tag,\n locale = CONFIG.DEFAULT_LOCALE,\n}: {\n tag: TTermTag\n locale?: TLocale\n}): TTermTagLocalized => {\n return {\n id: tag.id,\n name: tag.name[locale] || tag.name[CONFIG.DEFAULT_LOCALE],\n }\n}\n\nexport const getTermTypeLocalized = ({\n term,\n locale = CONFIG.DEFAULT_LOCALE,\n}: {\n term: TTermType\n locale?: TLocale\n}): TTermTypeLocalized => {\n return {\n id: term.id,\n name: term.name[locale] || term.name[CONFIG.DEFAULT_LOCALE],\n }\n}\n","import type { TDevDict, TLocale, TTermId, TTermLocalized } from '@/types'\nimport { CONFIG } from '@/common'\nimport { getDefinitionLocalized, getLabelLocalized, getTermTagLocalized, getTermTypeLocalized } from '@/utils'\nimport { TERM } from '@data'\n\nexport const getTerm = ({ id, locale = CONFIG.DEFAULT_LOCALE }: { id: TTermId; locale?: TLocale }): TTermLocalized => {\n // We do not need a null check here because TTermId only allows valid IDs\n const term = TERM[id]\n\n return {\n ...term,\n label: getLabelLocalized({ label: term.label, locale }),\n definition: getDefinitionLocalized({ definition: term.definition, locale }),\n type: term.type.map((value) => getTermTypeLocalized({ term: value, locale })),\n tags: term.tags.map((value) => getTermTagLocalized({ tag: value, locale })),\n }\n}\n\nexport const getDict = (\n {\n locale = CONFIG.DEFAULT_LOCALE,\n }: {\n locale?: TLocale\n } = { locale: CONFIG.DEFAULT_LOCALE },\n): TDevDict => {\n const dict = {} as TDevDict\n\n for (const [key, term] of Object.entries(TERM)) {\n const localizedTerm = getTerm({ id: term.id, locale })\n if (localizedTerm) {\n dict[key as TTermId] = localizedTerm\n }\n }\n\n return dict\n}\n"],"names":["LOCALE","backend","frontend","open_source","TAG","cms","language","library","runtime_environment","TYPE","node_js","react","typescript","TERM","CONFIG","getLabelLocalized","label","locale","getDefinitionLocalized","definition","getTermTagLocalized","tag","getTermTypeLocalized","term","getTerm","id","value","getDict","dict","key","localizedTerm"],"mappings":"gOAAO,MAAMA,EAAS,CACpB,MAAO,QAEP,MAAO,OACT,ECAAC,EAAe,CACb,GAAI,UAEJ,KAAM,CACJ,CAACD,EAAO,KAAK,EAAG,UAChB,CAACA,EAAO,KAAK,EAAG,SAAA,CAEpB,ECPAE,EAAe,CACb,GAAI,WAEJ,KAAM,CACJ,CAACF,EAAO,KAAK,EAAG,WAChB,CAACA,EAAO,KAAK,EAAG,UAAA,CAEpB,ECPAG,EAAe,CACb,GAAI,cAEJ,KAAM,CACJ,CAACH,EAAO,KAAK,EAAG,cAChB,CAACA,EAAO,KAAK,EAAG,aAAA,CAEpB,ECPaI,EAAM,CACjB,CAACH,EAAQ,EAAE,EAAGA,EACd,CAACC,EAAS,EAAE,EAAGA,EACf,CAACC,EAAY,EAAE,EAAGA,CACpB,ECJAE,EAAe,CACb,GAAI,KAMN,ECPAC,EAAe,CACb,GAAI,WAEJ,KAAM,CACJ,CAACN,EAAO,KAAK,EAAG,WAChB,CAACA,EAAO,KAAK,EAAG,SAAA,CAEpB,ECPAO,EAAe,CACb,GAAI,UAEJ,KAAM,CACJ,CAACP,EAAO,KAAK,EAAG,UAChB,CAACA,EAAO,KAAK,EAAG,YAAA,CAEpB,ECPAQ,EAAe,CACb,GAAI,sBAEJ,KAAM,CACJ,CAACR,EAAO,KAAK,EAAG,sBAChB,CAACA,EAAO,KAAK,EAAG,kBAAA,CAEpB,ECNaS,EAAO,CAClB,CAACJ,EAAI,EAAE,EAAGA,EACV,CAACC,EAAS,EAAE,EAAGA,EACf,CAACC,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