@contractspec/module.notifications 2.4.0 → 2.6.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.
Files changed (57) hide show
  1. package/dist/browser/channels/index.js +187 -1
  2. package/dist/browser/contracts/index.js +12 -0
  3. package/dist/browser/entities/index.js +12 -0
  4. package/dist/browser/i18n/catalogs/en.js +64 -0
  5. package/dist/browser/i18n/catalogs/es.js +64 -0
  6. package/dist/browser/i18n/catalogs/fr.js +64 -0
  7. package/dist/browser/i18n/catalogs/index.js +165 -0
  8. package/dist/browser/i18n/index.js +225 -0
  9. package/dist/browser/i18n/keys.js +33 -0
  10. package/dist/browser/i18n/locale.js +25 -0
  11. package/dist/browser/i18n/messages.js +186 -0
  12. package/dist/browser/index.js +279 -3
  13. package/dist/browser/notifications.capability.js +12 -0
  14. package/dist/browser/notifications.feature.js +12 -0
  15. package/dist/browser/templates/index.js +104 -2
  16. package/dist/channels/index.d.ts +4 -0
  17. package/dist/channels/index.js +187 -1
  18. package/dist/contracts/index.js +12 -0
  19. package/dist/entities/index.js +12 -0
  20. package/dist/i18n/catalogs/en.d.ts +6 -0
  21. package/dist/i18n/catalogs/en.js +65 -0
  22. package/dist/i18n/catalogs/es.d.ts +6 -0
  23. package/dist/i18n/catalogs/es.js +65 -0
  24. package/dist/i18n/catalogs/fr.d.ts +6 -0
  25. package/dist/i18n/catalogs/fr.js +65 -0
  26. package/dist/i18n/catalogs/index.d.ts +8 -0
  27. package/dist/i18n/catalogs/index.js +166 -0
  28. package/dist/i18n/i18n.test.d.ts +1 -0
  29. package/dist/i18n/index.d.ts +14 -0
  30. package/dist/i18n/index.js +226 -0
  31. package/dist/i18n/keys.d.ts +29 -0
  32. package/dist/i18n/keys.js +34 -0
  33. package/dist/i18n/locale.d.ts +8 -0
  34. package/dist/i18n/locale.js +26 -0
  35. package/dist/i18n/messages.d.ts +14 -0
  36. package/dist/i18n/messages.js +187 -0
  37. package/dist/index.js +279 -3
  38. package/dist/node/channels/index.js +187 -1
  39. package/dist/node/contracts/index.js +12 -0
  40. package/dist/node/entities/index.js +12 -0
  41. package/dist/node/i18n/catalogs/en.js +64 -0
  42. package/dist/node/i18n/catalogs/es.js +64 -0
  43. package/dist/node/i18n/catalogs/fr.js +64 -0
  44. package/dist/node/i18n/catalogs/index.js +165 -0
  45. package/dist/node/i18n/index.js +225 -0
  46. package/dist/node/i18n/keys.js +33 -0
  47. package/dist/node/i18n/locale.js +25 -0
  48. package/dist/node/i18n/messages.js +186 -0
  49. package/dist/node/index.js +279 -3
  50. package/dist/node/notifications.capability.js +12 -0
  51. package/dist/node/notifications.feature.js +12 -0
  52. package/dist/node/templates/index.js +104 -2
  53. package/dist/notifications.capability.js +12 -0
  54. package/dist/notifications.feature.js +12 -0
  55. package/dist/templates/index.d.ts +17 -7
  56. package/dist/templates/index.js +104 -2
  57. package/package.json +147 -6
@@ -1,4 +1,184 @@
1
1
  // @bun
2
+ var __defProp = Object.defineProperty;
3
+ var __export = (target, all) => {
4
+ for (var name in all)
5
+ __defProp(target, name, {
6
+ get: all[name],
7
+ enumerable: true,
8
+ configurable: true,
9
+ set: (newValue) => all[name] = () => newValue
10
+ });
11
+ };
12
+ var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
13
+
14
+ // src/i18n/catalogs/en.ts
15
+ import { defineTranslation } from "@contractspec/lib.contracts-spec/translations";
16
+ var enMessages;
17
+ var init_en = __esm(() => {
18
+ enMessages = defineTranslation({
19
+ meta: {
20
+ key: "notifications.messages",
21
+ version: "1.0.0",
22
+ domain: "notifications",
23
+ description: "Template and channel strings for the notifications module",
24
+ owners: ["platform"],
25
+ stability: "experimental"
26
+ },
27
+ locale: "en",
28
+ fallback: "en",
29
+ messages: {
30
+ "template.welcome.name": {
31
+ value: "Welcome",
32
+ description: "Welcome template display name"
33
+ },
34
+ "template.welcome.description": {
35
+ value: "Sent when a user signs up.",
36
+ description: "Welcome template description"
37
+ },
38
+ "template.orgInvite.name": {
39
+ value: "Organization Invitation",
40
+ description: "Org invite template display name"
41
+ },
42
+ "template.orgInvite.description": {
43
+ value: "Sent when a user is invited to an organization.",
44
+ description: "Org invite template description"
45
+ },
46
+ "template.mention.name": {
47
+ value: "Mention",
48
+ description: "Mention template display name"
49
+ },
50
+ "template.mention.description": {
51
+ value: "Sent when a user is mentioned.",
52
+ description: "Mention template description"
53
+ },
54
+ "channel.webhook.noUrl": {
55
+ value: "No webhook URL configured",
56
+ description: "Error when webhook channel has no URL"
57
+ }
58
+ }
59
+ });
60
+ });
61
+
62
+ // src/i18n/catalogs/fr.ts
63
+ import { defineTranslation as defineTranslation2 } from "@contractspec/lib.contracts-spec/translations";
64
+ var frMessages;
65
+ var init_fr = __esm(() => {
66
+ frMessages = defineTranslation2({
67
+ meta: {
68
+ key: "notifications.messages",
69
+ version: "1.0.0",
70
+ domain: "notifications",
71
+ description: "Template and channel strings (French)",
72
+ owners: ["platform"],
73
+ stability: "experimental"
74
+ },
75
+ locale: "fr",
76
+ fallback: "en",
77
+ messages: {
78
+ "template.welcome.name": {
79
+ value: "Bienvenue",
80
+ description: "Welcome template display name"
81
+ },
82
+ "template.welcome.description": {
83
+ value: "Envoy\xE9 lorsqu'un utilisateur s'inscrit.",
84
+ description: "Welcome template description"
85
+ },
86
+ "template.orgInvite.name": {
87
+ value: "Invitation \xE0 l'organisation",
88
+ description: "Org invite template display name"
89
+ },
90
+ "template.orgInvite.description": {
91
+ value: "Envoy\xE9 lorsqu'un utilisateur est invit\xE9 \xE0 une organisation.",
92
+ description: "Org invite template description"
93
+ },
94
+ "template.mention.name": {
95
+ value: "Mention",
96
+ description: "Mention template display name"
97
+ },
98
+ "template.mention.description": {
99
+ value: "Envoy\xE9 lorsqu'un utilisateur est mentionn\xE9.",
100
+ description: "Mention template description"
101
+ },
102
+ "channel.webhook.noUrl": {
103
+ value: "Aucune URL de webhook configur\xE9e",
104
+ description: "Error when webhook channel has no URL"
105
+ }
106
+ }
107
+ });
108
+ });
109
+
110
+ // src/i18n/catalogs/es.ts
111
+ import { defineTranslation as defineTranslation3 } from "@contractspec/lib.contracts-spec/translations";
112
+ var esMessages;
113
+ var init_es = __esm(() => {
114
+ esMessages = defineTranslation3({
115
+ meta: {
116
+ key: "notifications.messages",
117
+ version: "1.0.0",
118
+ domain: "notifications",
119
+ description: "Template and channel strings (Spanish)",
120
+ owners: ["platform"],
121
+ stability: "experimental"
122
+ },
123
+ locale: "es",
124
+ fallback: "en",
125
+ messages: {
126
+ "template.welcome.name": {
127
+ value: "Bienvenida",
128
+ description: "Welcome template display name"
129
+ },
130
+ "template.welcome.description": {
131
+ value: "Enviado cuando un usuario se registra.",
132
+ description: "Welcome template description"
133
+ },
134
+ "template.orgInvite.name": {
135
+ value: "Invitaci\xF3n a la organizaci\xF3n",
136
+ description: "Org invite template display name"
137
+ },
138
+ "template.orgInvite.description": {
139
+ value: "Enviado cuando un usuario es invitado a una organizaci\xF3n.",
140
+ description: "Org invite template description"
141
+ },
142
+ "template.mention.name": {
143
+ value: "Menci\xF3n",
144
+ description: "Mention template display name"
145
+ },
146
+ "template.mention.description": {
147
+ value: "Enviado cuando un usuario es mencionado.",
148
+ description: "Mention template description"
149
+ },
150
+ "channel.webhook.noUrl": {
151
+ value: "No se ha configurado una URL de webhook",
152
+ description: "Error when webhook channel has no URL"
153
+ }
154
+ }
155
+ });
156
+ });
157
+
158
+ // src/i18n/messages.ts
159
+ var exports_messages = {};
160
+ __export(exports_messages, {
161
+ resetI18nRegistry: () => resetI18nRegistry,
162
+ getDefaultI18n: () => getDefaultI18n,
163
+ createNotificationsI18n: () => createNotificationsI18n
164
+ });
165
+ import {
166
+ createI18nFactory
167
+ } from "@contractspec/lib.contracts-spec/translations";
168
+ var factory, createNotificationsI18n, getDefaultI18n, resetI18nRegistry;
169
+ var init_messages = __esm(() => {
170
+ init_en();
171
+ init_fr();
172
+ init_es();
173
+ factory = createI18nFactory({
174
+ specKey: "notifications.messages",
175
+ catalogs: [enMessages, frMessages, esMessages]
176
+ });
177
+ createNotificationsI18n = factory.create;
178
+ getDefaultI18n = factory.getDefault;
179
+ resetI18nRegistry = factory.resetRegistry;
180
+ });
181
+
2
182
  // src/channels/index.ts
3
183
  class InAppChannel {
4
184
  channelId = "IN_APP";
@@ -47,11 +227,17 @@ class PushChannel {
47
227
 
48
228
  class WebhookChannel {
49
229
  channelId = "WEBHOOK";
230
+ locale;
231
+ constructor(options) {
232
+ this.locale = options?.locale;
233
+ }
50
234
  async send(notification) {
51
235
  if (!notification.webhook?.url) {
236
+ const { createNotificationsI18n: createNotificationsI18n2 } = await Promise.resolve().then(() => (init_messages(), exports_messages));
237
+ const i18n = createNotificationsI18n2(this.locale);
52
238
  return {
53
239
  success: false,
54
- responseMessage: "No webhook URL configured"
240
+ responseMessage: i18n.t("channel.webhook.noUrl")
55
241
  };
56
242
  }
57
243
  try {
@@ -1,4 +1,16 @@
1
1
  // @bun
2
+ var __defProp = Object.defineProperty;
3
+ var __export = (target, all) => {
4
+ for (var name in all)
5
+ __defProp(target, name, {
6
+ get: all[name],
7
+ enumerable: true,
8
+ configurable: true,
9
+ set: (newValue) => all[name] = () => newValue
10
+ });
11
+ };
12
+ var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
13
+
2
14
  // src/contracts/index.ts
3
15
  import { defineCommand, defineQuery } from "@contractspec/lib.contracts-spec";
4
16
  import {
@@ -1,4 +1,16 @@
1
1
  // @bun
2
+ var __defProp = Object.defineProperty;
3
+ var __export = (target, all) => {
4
+ for (var name in all)
5
+ __defProp(target, name, {
6
+ get: all[name],
7
+ enumerable: true,
8
+ configurable: true,
9
+ set: (newValue) => all[name] = () => newValue
10
+ });
11
+ };
12
+ var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
13
+
2
14
  // src/entities/index.ts
3
15
  import {
4
16
  defineEntity,
@@ -0,0 +1,6 @@
1
+ /**
2
+ * English (en) translation catalog for @contractspec/module.notifications.
3
+ *
4
+ * @module i18n/catalogs/en
5
+ */
6
+ export declare const enMessages: import("@contractspec/lib.contracts-spec/translations").TranslationSpec;
@@ -0,0 +1,65 @@
1
+ // @bun
2
+ var __defProp = Object.defineProperty;
3
+ var __export = (target, all) => {
4
+ for (var name in all)
5
+ __defProp(target, name, {
6
+ get: all[name],
7
+ enumerable: true,
8
+ configurable: true,
9
+ set: (newValue) => all[name] = () => newValue
10
+ });
11
+ };
12
+ var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
13
+
14
+ // src/i18n/catalogs/en.ts
15
+ import { defineTranslation } from "@contractspec/lib.contracts-spec/translations";
16
+ var enMessages;
17
+ var init_en = __esm(() => {
18
+ enMessages = defineTranslation({
19
+ meta: {
20
+ key: "notifications.messages",
21
+ version: "1.0.0",
22
+ domain: "notifications",
23
+ description: "Template and channel strings for the notifications module",
24
+ owners: ["platform"],
25
+ stability: "experimental"
26
+ },
27
+ locale: "en",
28
+ fallback: "en",
29
+ messages: {
30
+ "template.welcome.name": {
31
+ value: "Welcome",
32
+ description: "Welcome template display name"
33
+ },
34
+ "template.welcome.description": {
35
+ value: "Sent when a user signs up.",
36
+ description: "Welcome template description"
37
+ },
38
+ "template.orgInvite.name": {
39
+ value: "Organization Invitation",
40
+ description: "Org invite template display name"
41
+ },
42
+ "template.orgInvite.description": {
43
+ value: "Sent when a user is invited to an organization.",
44
+ description: "Org invite template description"
45
+ },
46
+ "template.mention.name": {
47
+ value: "Mention",
48
+ description: "Mention template display name"
49
+ },
50
+ "template.mention.description": {
51
+ value: "Sent when a user is mentioned.",
52
+ description: "Mention template description"
53
+ },
54
+ "channel.webhook.noUrl": {
55
+ value: "No webhook URL configured",
56
+ description: "Error when webhook channel has no URL"
57
+ }
58
+ }
59
+ });
60
+ });
61
+ init_en();
62
+
63
+ export {
64
+ enMessages
65
+ };
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Spanish (es) translation catalog for @contractspec/module.notifications.
3
+ *
4
+ * @module i18n/catalogs/es
5
+ */
6
+ export declare const esMessages: import("@contractspec/lib.contracts-spec/translations").TranslationSpec;
@@ -0,0 +1,65 @@
1
+ // @bun
2
+ var __defProp = Object.defineProperty;
3
+ var __export = (target, all) => {
4
+ for (var name in all)
5
+ __defProp(target, name, {
6
+ get: all[name],
7
+ enumerable: true,
8
+ configurable: true,
9
+ set: (newValue) => all[name] = () => newValue
10
+ });
11
+ };
12
+ var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
13
+
14
+ // src/i18n/catalogs/es.ts
15
+ import { defineTranslation } from "@contractspec/lib.contracts-spec/translations";
16
+ var esMessages;
17
+ var init_es = __esm(() => {
18
+ esMessages = defineTranslation({
19
+ meta: {
20
+ key: "notifications.messages",
21
+ version: "1.0.0",
22
+ domain: "notifications",
23
+ description: "Template and channel strings (Spanish)",
24
+ owners: ["platform"],
25
+ stability: "experimental"
26
+ },
27
+ locale: "es",
28
+ fallback: "en",
29
+ messages: {
30
+ "template.welcome.name": {
31
+ value: "Bienvenida",
32
+ description: "Welcome template display name"
33
+ },
34
+ "template.welcome.description": {
35
+ value: "Enviado cuando un usuario se registra.",
36
+ description: "Welcome template description"
37
+ },
38
+ "template.orgInvite.name": {
39
+ value: "Invitaci\xF3n a la organizaci\xF3n",
40
+ description: "Org invite template display name"
41
+ },
42
+ "template.orgInvite.description": {
43
+ value: "Enviado cuando un usuario es invitado a una organizaci\xF3n.",
44
+ description: "Org invite template description"
45
+ },
46
+ "template.mention.name": {
47
+ value: "Menci\xF3n",
48
+ description: "Mention template display name"
49
+ },
50
+ "template.mention.description": {
51
+ value: "Enviado cuando un usuario es mencionado.",
52
+ description: "Mention template description"
53
+ },
54
+ "channel.webhook.noUrl": {
55
+ value: "No se ha configurado una URL de webhook",
56
+ description: "Error when webhook channel has no URL"
57
+ }
58
+ }
59
+ });
60
+ });
61
+ init_es();
62
+
63
+ export {
64
+ esMessages
65
+ };
@@ -0,0 +1,6 @@
1
+ /**
2
+ * French (fr) translation catalog for @contractspec/module.notifications.
3
+ *
4
+ * @module i18n/catalogs/fr
5
+ */
6
+ export declare const frMessages: import("@contractspec/lib.contracts-spec/translations").TranslationSpec;
@@ -0,0 +1,65 @@
1
+ // @bun
2
+ var __defProp = Object.defineProperty;
3
+ var __export = (target, all) => {
4
+ for (var name in all)
5
+ __defProp(target, name, {
6
+ get: all[name],
7
+ enumerable: true,
8
+ configurable: true,
9
+ set: (newValue) => all[name] = () => newValue
10
+ });
11
+ };
12
+ var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
13
+
14
+ // src/i18n/catalogs/fr.ts
15
+ import { defineTranslation } from "@contractspec/lib.contracts-spec/translations";
16
+ var frMessages;
17
+ var init_fr = __esm(() => {
18
+ frMessages = defineTranslation({
19
+ meta: {
20
+ key: "notifications.messages",
21
+ version: "1.0.0",
22
+ domain: "notifications",
23
+ description: "Template and channel strings (French)",
24
+ owners: ["platform"],
25
+ stability: "experimental"
26
+ },
27
+ locale: "fr",
28
+ fallback: "en",
29
+ messages: {
30
+ "template.welcome.name": {
31
+ value: "Bienvenue",
32
+ description: "Welcome template display name"
33
+ },
34
+ "template.welcome.description": {
35
+ value: "Envoy\xE9 lorsqu'un utilisateur s'inscrit.",
36
+ description: "Welcome template description"
37
+ },
38
+ "template.orgInvite.name": {
39
+ value: "Invitation \xE0 l'organisation",
40
+ description: "Org invite template display name"
41
+ },
42
+ "template.orgInvite.description": {
43
+ value: "Envoy\xE9 lorsqu'un utilisateur est invit\xE9 \xE0 une organisation.",
44
+ description: "Org invite template description"
45
+ },
46
+ "template.mention.name": {
47
+ value: "Mention",
48
+ description: "Mention template display name"
49
+ },
50
+ "template.mention.description": {
51
+ value: "Envoy\xE9 lorsqu'un utilisateur est mentionn\xE9.",
52
+ description: "Mention template description"
53
+ },
54
+ "channel.webhook.noUrl": {
55
+ value: "Aucune URL de webhook configur\xE9e",
56
+ description: "Error when webhook channel has no URL"
57
+ }
58
+ }
59
+ });
60
+ });
61
+ init_fr();
62
+
63
+ export {
64
+ frMessages
65
+ };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Translation catalog barrel exports.
3
+ *
4
+ * @module i18n/catalogs
5
+ */
6
+ export { enMessages } from './en';
7
+ export { frMessages } from './fr';
8
+ export { esMessages } from './es';
@@ -0,0 +1,166 @@
1
+ // @bun
2
+ var __defProp = Object.defineProperty;
3
+ var __export = (target, all) => {
4
+ for (var name in all)
5
+ __defProp(target, name, {
6
+ get: all[name],
7
+ enumerable: true,
8
+ configurable: true,
9
+ set: (newValue) => all[name] = () => newValue
10
+ });
11
+ };
12
+ var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
13
+
14
+ // src/i18n/catalogs/en.ts
15
+ import { defineTranslation } from "@contractspec/lib.contracts-spec/translations";
16
+ var enMessages;
17
+ var init_en = __esm(() => {
18
+ enMessages = defineTranslation({
19
+ meta: {
20
+ key: "notifications.messages",
21
+ version: "1.0.0",
22
+ domain: "notifications",
23
+ description: "Template and channel strings for the notifications module",
24
+ owners: ["platform"],
25
+ stability: "experimental"
26
+ },
27
+ locale: "en",
28
+ fallback: "en",
29
+ messages: {
30
+ "template.welcome.name": {
31
+ value: "Welcome",
32
+ description: "Welcome template display name"
33
+ },
34
+ "template.welcome.description": {
35
+ value: "Sent when a user signs up.",
36
+ description: "Welcome template description"
37
+ },
38
+ "template.orgInvite.name": {
39
+ value: "Organization Invitation",
40
+ description: "Org invite template display name"
41
+ },
42
+ "template.orgInvite.description": {
43
+ value: "Sent when a user is invited to an organization.",
44
+ description: "Org invite template description"
45
+ },
46
+ "template.mention.name": {
47
+ value: "Mention",
48
+ description: "Mention template display name"
49
+ },
50
+ "template.mention.description": {
51
+ value: "Sent when a user is mentioned.",
52
+ description: "Mention template description"
53
+ },
54
+ "channel.webhook.noUrl": {
55
+ value: "No webhook URL configured",
56
+ description: "Error when webhook channel has no URL"
57
+ }
58
+ }
59
+ });
60
+ });
61
+
62
+ // src/i18n/catalogs/fr.ts
63
+ import { defineTranslation as defineTranslation2 } from "@contractspec/lib.contracts-spec/translations";
64
+ var frMessages;
65
+ var init_fr = __esm(() => {
66
+ frMessages = defineTranslation2({
67
+ meta: {
68
+ key: "notifications.messages",
69
+ version: "1.0.0",
70
+ domain: "notifications",
71
+ description: "Template and channel strings (French)",
72
+ owners: ["platform"],
73
+ stability: "experimental"
74
+ },
75
+ locale: "fr",
76
+ fallback: "en",
77
+ messages: {
78
+ "template.welcome.name": {
79
+ value: "Bienvenue",
80
+ description: "Welcome template display name"
81
+ },
82
+ "template.welcome.description": {
83
+ value: "Envoy\xE9 lorsqu'un utilisateur s'inscrit.",
84
+ description: "Welcome template description"
85
+ },
86
+ "template.orgInvite.name": {
87
+ value: "Invitation \xE0 l'organisation",
88
+ description: "Org invite template display name"
89
+ },
90
+ "template.orgInvite.description": {
91
+ value: "Envoy\xE9 lorsqu'un utilisateur est invit\xE9 \xE0 une organisation.",
92
+ description: "Org invite template description"
93
+ },
94
+ "template.mention.name": {
95
+ value: "Mention",
96
+ description: "Mention template display name"
97
+ },
98
+ "template.mention.description": {
99
+ value: "Envoy\xE9 lorsqu'un utilisateur est mentionn\xE9.",
100
+ description: "Mention template description"
101
+ },
102
+ "channel.webhook.noUrl": {
103
+ value: "Aucune URL de webhook configur\xE9e",
104
+ description: "Error when webhook channel has no URL"
105
+ }
106
+ }
107
+ });
108
+ });
109
+
110
+ // src/i18n/catalogs/es.ts
111
+ import { defineTranslation as defineTranslation3 } from "@contractspec/lib.contracts-spec/translations";
112
+ var esMessages;
113
+ var init_es = __esm(() => {
114
+ esMessages = defineTranslation3({
115
+ meta: {
116
+ key: "notifications.messages",
117
+ version: "1.0.0",
118
+ domain: "notifications",
119
+ description: "Template and channel strings (Spanish)",
120
+ owners: ["platform"],
121
+ stability: "experimental"
122
+ },
123
+ locale: "es",
124
+ fallback: "en",
125
+ messages: {
126
+ "template.welcome.name": {
127
+ value: "Bienvenida",
128
+ description: "Welcome template display name"
129
+ },
130
+ "template.welcome.description": {
131
+ value: "Enviado cuando un usuario se registra.",
132
+ description: "Welcome template description"
133
+ },
134
+ "template.orgInvite.name": {
135
+ value: "Invitaci\xF3n a la organizaci\xF3n",
136
+ description: "Org invite template display name"
137
+ },
138
+ "template.orgInvite.description": {
139
+ value: "Enviado cuando un usuario es invitado a una organizaci\xF3n.",
140
+ description: "Org invite template description"
141
+ },
142
+ "template.mention.name": {
143
+ value: "Menci\xF3n",
144
+ description: "Mention template display name"
145
+ },
146
+ "template.mention.description": {
147
+ value: "Enviado cuando un usuario es mencionado.",
148
+ description: "Mention template description"
149
+ },
150
+ "channel.webhook.noUrl": {
151
+ value: "No se ha configurado una URL de webhook",
152
+ description: "Error when webhook channel has no URL"
153
+ }
154
+ }
155
+ });
156
+ });
157
+
158
+ // src/i18n/catalogs/index.ts
159
+ init_en();
160
+ init_fr();
161
+ init_es();
162
+ export {
163
+ frMessages,
164
+ esMessages,
165
+ enMessages
166
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Internationalization (i18n) module for @contractspec/module.notifications.
3
+ *
4
+ * @module i18n
5
+ */
6
+ export { createNotificationsI18n, getDefaultI18n, resetI18nRegistry, } from './messages';
7
+ export type { NotificationsI18n } from './messages';
8
+ export { resolveLocale, isSupportedLocale, DEFAULT_LOCALE, SUPPORTED_LOCALES, } from './locale';
9
+ export type { SupportedLocale } from './locale';
10
+ export { I18N_KEYS, TEMPLATE_KEYS, CHANNEL_KEYS } from './keys';
11
+ export type { NotificationsMessageKey } from './keys';
12
+ export { enMessages } from './catalogs/en';
13
+ export { frMessages } from './catalogs/fr';
14
+ export { esMessages } from './catalogs/es';