@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.
- package/dist/browser/channels/index.js +187 -1
- package/dist/browser/contracts/index.js +12 -0
- package/dist/browser/entities/index.js +12 -0
- package/dist/browser/i18n/catalogs/en.js +64 -0
- package/dist/browser/i18n/catalogs/es.js +64 -0
- package/dist/browser/i18n/catalogs/fr.js +64 -0
- package/dist/browser/i18n/catalogs/index.js +165 -0
- package/dist/browser/i18n/index.js +225 -0
- package/dist/browser/i18n/keys.js +33 -0
- package/dist/browser/i18n/locale.js +25 -0
- package/dist/browser/i18n/messages.js +186 -0
- package/dist/browser/index.js +279 -3
- package/dist/browser/notifications.capability.js +12 -0
- package/dist/browser/notifications.feature.js +12 -0
- package/dist/browser/templates/index.js +104 -2
- package/dist/channels/index.d.ts +4 -0
- package/dist/channels/index.js +187 -1
- package/dist/contracts/index.js +12 -0
- package/dist/entities/index.js +12 -0
- package/dist/i18n/catalogs/en.d.ts +6 -0
- package/dist/i18n/catalogs/en.js +65 -0
- package/dist/i18n/catalogs/es.d.ts +6 -0
- package/dist/i18n/catalogs/es.js +65 -0
- package/dist/i18n/catalogs/fr.d.ts +6 -0
- package/dist/i18n/catalogs/fr.js +65 -0
- package/dist/i18n/catalogs/index.d.ts +8 -0
- package/dist/i18n/catalogs/index.js +166 -0
- package/dist/i18n/i18n.test.d.ts +1 -0
- package/dist/i18n/index.d.ts +14 -0
- package/dist/i18n/index.js +226 -0
- package/dist/i18n/keys.d.ts +29 -0
- package/dist/i18n/keys.js +34 -0
- package/dist/i18n/locale.d.ts +8 -0
- package/dist/i18n/locale.js +26 -0
- package/dist/i18n/messages.d.ts +14 -0
- package/dist/i18n/messages.js +187 -0
- package/dist/index.js +279 -3
- package/dist/node/channels/index.js +187 -1
- package/dist/node/contracts/index.js +12 -0
- package/dist/node/entities/index.js +12 -0
- package/dist/node/i18n/catalogs/en.js +64 -0
- package/dist/node/i18n/catalogs/es.js +64 -0
- package/dist/node/i18n/catalogs/fr.js +64 -0
- package/dist/node/i18n/catalogs/index.js +165 -0
- package/dist/node/i18n/index.js +225 -0
- package/dist/node/i18n/keys.js +33 -0
- package/dist/node/i18n/locale.js +25 -0
- package/dist/node/i18n/messages.js +186 -0
- package/dist/node/index.js +279 -3
- package/dist/node/notifications.capability.js +12 -0
- package/dist/node/notifications.feature.js +12 -0
- package/dist/node/templates/index.js +104 -2
- package/dist/notifications.capability.js +12 -0
- package/dist/notifications.feature.js +12 -0
- package/dist/templates/index.d.ts +17 -7
- package/dist/templates/index.js +104 -2
- package/package.json +147 -6
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __export = (target, all) => {
|
|
3
|
+
for (var name in all)
|
|
4
|
+
__defProp(target, name, {
|
|
5
|
+
get: all[name],
|
|
6
|
+
enumerable: true,
|
|
7
|
+
configurable: true,
|
|
8
|
+
set: (newValue) => all[name] = () => newValue
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
12
|
+
|
|
13
|
+
// src/i18n/catalogs/en.ts
|
|
14
|
+
import { defineTranslation } from "@contractspec/lib.contracts-spec/translations";
|
|
15
|
+
var enMessages;
|
|
16
|
+
var init_en = __esm(() => {
|
|
17
|
+
enMessages = defineTranslation({
|
|
18
|
+
meta: {
|
|
19
|
+
key: "notifications.messages",
|
|
20
|
+
version: "1.0.0",
|
|
21
|
+
domain: "notifications",
|
|
22
|
+
description: "Template and channel strings for the notifications module",
|
|
23
|
+
owners: ["platform"],
|
|
24
|
+
stability: "experimental"
|
|
25
|
+
},
|
|
26
|
+
locale: "en",
|
|
27
|
+
fallback: "en",
|
|
28
|
+
messages: {
|
|
29
|
+
"template.welcome.name": {
|
|
30
|
+
value: "Welcome",
|
|
31
|
+
description: "Welcome template display name"
|
|
32
|
+
},
|
|
33
|
+
"template.welcome.description": {
|
|
34
|
+
value: "Sent when a user signs up.",
|
|
35
|
+
description: "Welcome template description"
|
|
36
|
+
},
|
|
37
|
+
"template.orgInvite.name": {
|
|
38
|
+
value: "Organization Invitation",
|
|
39
|
+
description: "Org invite template display name"
|
|
40
|
+
},
|
|
41
|
+
"template.orgInvite.description": {
|
|
42
|
+
value: "Sent when a user is invited to an organization.",
|
|
43
|
+
description: "Org invite template description"
|
|
44
|
+
},
|
|
45
|
+
"template.mention.name": {
|
|
46
|
+
value: "Mention",
|
|
47
|
+
description: "Mention template display name"
|
|
48
|
+
},
|
|
49
|
+
"template.mention.description": {
|
|
50
|
+
value: "Sent when a user is mentioned.",
|
|
51
|
+
description: "Mention template description"
|
|
52
|
+
},
|
|
53
|
+
"channel.webhook.noUrl": {
|
|
54
|
+
value: "No webhook URL configured",
|
|
55
|
+
description: "Error when webhook channel has no URL"
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
// src/i18n/catalogs/fr.ts
|
|
62
|
+
import { defineTranslation as defineTranslation2 } from "@contractspec/lib.contracts-spec/translations";
|
|
63
|
+
var frMessages;
|
|
64
|
+
var init_fr = __esm(() => {
|
|
65
|
+
frMessages = defineTranslation2({
|
|
66
|
+
meta: {
|
|
67
|
+
key: "notifications.messages",
|
|
68
|
+
version: "1.0.0",
|
|
69
|
+
domain: "notifications",
|
|
70
|
+
description: "Template and channel strings (French)",
|
|
71
|
+
owners: ["platform"],
|
|
72
|
+
stability: "experimental"
|
|
73
|
+
},
|
|
74
|
+
locale: "fr",
|
|
75
|
+
fallback: "en",
|
|
76
|
+
messages: {
|
|
77
|
+
"template.welcome.name": {
|
|
78
|
+
value: "Bienvenue",
|
|
79
|
+
description: "Welcome template display name"
|
|
80
|
+
},
|
|
81
|
+
"template.welcome.description": {
|
|
82
|
+
value: "Envoyé lorsqu'un utilisateur s'inscrit.",
|
|
83
|
+
description: "Welcome template description"
|
|
84
|
+
},
|
|
85
|
+
"template.orgInvite.name": {
|
|
86
|
+
value: "Invitation à l'organisation",
|
|
87
|
+
description: "Org invite template display name"
|
|
88
|
+
},
|
|
89
|
+
"template.orgInvite.description": {
|
|
90
|
+
value: "Envoyé lorsqu'un utilisateur est invité à une organisation.",
|
|
91
|
+
description: "Org invite template description"
|
|
92
|
+
},
|
|
93
|
+
"template.mention.name": {
|
|
94
|
+
value: "Mention",
|
|
95
|
+
description: "Mention template display name"
|
|
96
|
+
},
|
|
97
|
+
"template.mention.description": {
|
|
98
|
+
value: "Envoyé lorsqu'un utilisateur est mentionné.",
|
|
99
|
+
description: "Mention template description"
|
|
100
|
+
},
|
|
101
|
+
"channel.webhook.noUrl": {
|
|
102
|
+
value: "Aucune URL de webhook configurée",
|
|
103
|
+
description: "Error when webhook channel has no URL"
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
// src/i18n/catalogs/es.ts
|
|
110
|
+
import { defineTranslation as defineTranslation3 } from "@contractspec/lib.contracts-spec/translations";
|
|
111
|
+
var esMessages;
|
|
112
|
+
var init_es = __esm(() => {
|
|
113
|
+
esMessages = defineTranslation3({
|
|
114
|
+
meta: {
|
|
115
|
+
key: "notifications.messages",
|
|
116
|
+
version: "1.0.0",
|
|
117
|
+
domain: "notifications",
|
|
118
|
+
description: "Template and channel strings (Spanish)",
|
|
119
|
+
owners: ["platform"],
|
|
120
|
+
stability: "experimental"
|
|
121
|
+
},
|
|
122
|
+
locale: "es",
|
|
123
|
+
fallback: "en",
|
|
124
|
+
messages: {
|
|
125
|
+
"template.welcome.name": {
|
|
126
|
+
value: "Bienvenida",
|
|
127
|
+
description: "Welcome template display name"
|
|
128
|
+
},
|
|
129
|
+
"template.welcome.description": {
|
|
130
|
+
value: "Enviado cuando un usuario se registra.",
|
|
131
|
+
description: "Welcome template description"
|
|
132
|
+
},
|
|
133
|
+
"template.orgInvite.name": {
|
|
134
|
+
value: "Invitación a la organización",
|
|
135
|
+
description: "Org invite template display name"
|
|
136
|
+
},
|
|
137
|
+
"template.orgInvite.description": {
|
|
138
|
+
value: "Enviado cuando un usuario es invitado a una organización.",
|
|
139
|
+
description: "Org invite template description"
|
|
140
|
+
},
|
|
141
|
+
"template.mention.name": {
|
|
142
|
+
value: "Mención",
|
|
143
|
+
description: "Mention template display name"
|
|
144
|
+
},
|
|
145
|
+
"template.mention.description": {
|
|
146
|
+
value: "Enviado cuando un usuario es mencionado.",
|
|
147
|
+
description: "Mention template description"
|
|
148
|
+
},
|
|
149
|
+
"channel.webhook.noUrl": {
|
|
150
|
+
value: "No se ha configurado una URL de webhook",
|
|
151
|
+
description: "Error when webhook channel has no URL"
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
});
|
|
155
|
+
});
|
|
156
|
+
|
|
157
|
+
// src/i18n/messages.ts
|
|
158
|
+
var exports_messages = {};
|
|
159
|
+
__export(exports_messages, {
|
|
160
|
+
resetI18nRegistry: () => resetI18nRegistry,
|
|
161
|
+
getDefaultI18n: () => getDefaultI18n,
|
|
162
|
+
createNotificationsI18n: () => createNotificationsI18n
|
|
163
|
+
});
|
|
164
|
+
import {
|
|
165
|
+
createI18nFactory
|
|
166
|
+
} from "@contractspec/lib.contracts-spec/translations";
|
|
167
|
+
var factory, createNotificationsI18n, getDefaultI18n, resetI18nRegistry;
|
|
168
|
+
var init_messages = __esm(() => {
|
|
169
|
+
init_en();
|
|
170
|
+
init_fr();
|
|
171
|
+
init_es();
|
|
172
|
+
factory = createI18nFactory({
|
|
173
|
+
specKey: "notifications.messages",
|
|
174
|
+
catalogs: [enMessages, frMessages, esMessages]
|
|
175
|
+
});
|
|
176
|
+
createNotificationsI18n = factory.create;
|
|
177
|
+
getDefaultI18n = factory.getDefault;
|
|
178
|
+
resetI18nRegistry = factory.resetRegistry;
|
|
179
|
+
});
|
|
180
|
+
|
|
181
|
+
// src/i18n/locale.ts
|
|
182
|
+
import {
|
|
183
|
+
DEFAULT_LOCALE,
|
|
184
|
+
SUPPORTED_LOCALES,
|
|
185
|
+
resolveLocale,
|
|
186
|
+
isSupportedLocale
|
|
187
|
+
} from "@contractspec/lib.contracts-spec/translations";
|
|
188
|
+
|
|
189
|
+
// src/i18n/keys.ts
|
|
190
|
+
var TEMPLATE_KEYS = {
|
|
191
|
+
"template.welcome.name": "template.welcome.name",
|
|
192
|
+
"template.welcome.description": "template.welcome.description",
|
|
193
|
+
"template.orgInvite.name": "template.orgInvite.name",
|
|
194
|
+
"template.orgInvite.description": "template.orgInvite.description",
|
|
195
|
+
"template.mention.name": "template.mention.name",
|
|
196
|
+
"template.mention.description": "template.mention.description"
|
|
197
|
+
};
|
|
198
|
+
var CHANNEL_KEYS = {
|
|
199
|
+
"channel.webhook.noUrl": "channel.webhook.noUrl"
|
|
200
|
+
};
|
|
201
|
+
var I18N_KEYS = {
|
|
202
|
+
...TEMPLATE_KEYS,
|
|
203
|
+
...CHANNEL_KEYS
|
|
204
|
+
};
|
|
205
|
+
|
|
206
|
+
// src/i18n/index.ts
|
|
207
|
+
init_messages();
|
|
208
|
+
init_en();
|
|
209
|
+
init_fr();
|
|
210
|
+
init_es();
|
|
211
|
+
export {
|
|
212
|
+
resolveLocale,
|
|
213
|
+
resetI18nRegistry,
|
|
214
|
+
isSupportedLocale,
|
|
215
|
+
getDefaultI18n,
|
|
216
|
+
frMessages,
|
|
217
|
+
esMessages,
|
|
218
|
+
enMessages,
|
|
219
|
+
createNotificationsI18n,
|
|
220
|
+
TEMPLATE_KEYS,
|
|
221
|
+
SUPPORTED_LOCALES,
|
|
222
|
+
I18N_KEYS,
|
|
223
|
+
DEFAULT_LOCALE,
|
|
224
|
+
CHANNEL_KEYS
|
|
225
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __export = (target, all) => {
|
|
3
|
+
for (var name in all)
|
|
4
|
+
__defProp(target, name, {
|
|
5
|
+
get: all[name],
|
|
6
|
+
enumerable: true,
|
|
7
|
+
configurable: true,
|
|
8
|
+
set: (newValue) => all[name] = () => newValue
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
12
|
+
|
|
13
|
+
// src/i18n/keys.ts
|
|
14
|
+
var TEMPLATE_KEYS = {
|
|
15
|
+
"template.welcome.name": "template.welcome.name",
|
|
16
|
+
"template.welcome.description": "template.welcome.description",
|
|
17
|
+
"template.orgInvite.name": "template.orgInvite.name",
|
|
18
|
+
"template.orgInvite.description": "template.orgInvite.description",
|
|
19
|
+
"template.mention.name": "template.mention.name",
|
|
20
|
+
"template.mention.description": "template.mention.description"
|
|
21
|
+
};
|
|
22
|
+
var CHANNEL_KEYS = {
|
|
23
|
+
"channel.webhook.noUrl": "channel.webhook.noUrl"
|
|
24
|
+
};
|
|
25
|
+
var I18N_KEYS = {
|
|
26
|
+
...TEMPLATE_KEYS,
|
|
27
|
+
...CHANNEL_KEYS
|
|
28
|
+
};
|
|
29
|
+
export {
|
|
30
|
+
TEMPLATE_KEYS,
|
|
31
|
+
I18N_KEYS,
|
|
32
|
+
CHANNEL_KEYS
|
|
33
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __export = (target, all) => {
|
|
3
|
+
for (var name in all)
|
|
4
|
+
__defProp(target, name, {
|
|
5
|
+
get: all[name],
|
|
6
|
+
enumerable: true,
|
|
7
|
+
configurable: true,
|
|
8
|
+
set: (newValue) => all[name] = () => newValue
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
12
|
+
|
|
13
|
+
// src/i18n/locale.ts
|
|
14
|
+
import {
|
|
15
|
+
DEFAULT_LOCALE,
|
|
16
|
+
SUPPORTED_LOCALES,
|
|
17
|
+
resolveLocale,
|
|
18
|
+
isSupportedLocale
|
|
19
|
+
} from "@contractspec/lib.contracts-spec/translations";
|
|
20
|
+
export {
|
|
21
|
+
resolveLocale,
|
|
22
|
+
isSupportedLocale,
|
|
23
|
+
SUPPORTED_LOCALES,
|
|
24
|
+
DEFAULT_LOCALE
|
|
25
|
+
};
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __export = (target, all) => {
|
|
3
|
+
for (var name in all)
|
|
4
|
+
__defProp(target, name, {
|
|
5
|
+
get: all[name],
|
|
6
|
+
enumerable: true,
|
|
7
|
+
configurable: true,
|
|
8
|
+
set: (newValue) => all[name] = () => newValue
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
12
|
+
|
|
13
|
+
// src/i18n/catalogs/en.ts
|
|
14
|
+
import { defineTranslation } from "@contractspec/lib.contracts-spec/translations";
|
|
15
|
+
var enMessages;
|
|
16
|
+
var init_en = __esm(() => {
|
|
17
|
+
enMessages = defineTranslation({
|
|
18
|
+
meta: {
|
|
19
|
+
key: "notifications.messages",
|
|
20
|
+
version: "1.0.0",
|
|
21
|
+
domain: "notifications",
|
|
22
|
+
description: "Template and channel strings for the notifications module",
|
|
23
|
+
owners: ["platform"],
|
|
24
|
+
stability: "experimental"
|
|
25
|
+
},
|
|
26
|
+
locale: "en",
|
|
27
|
+
fallback: "en",
|
|
28
|
+
messages: {
|
|
29
|
+
"template.welcome.name": {
|
|
30
|
+
value: "Welcome",
|
|
31
|
+
description: "Welcome template display name"
|
|
32
|
+
},
|
|
33
|
+
"template.welcome.description": {
|
|
34
|
+
value: "Sent when a user signs up.",
|
|
35
|
+
description: "Welcome template description"
|
|
36
|
+
},
|
|
37
|
+
"template.orgInvite.name": {
|
|
38
|
+
value: "Organization Invitation",
|
|
39
|
+
description: "Org invite template display name"
|
|
40
|
+
},
|
|
41
|
+
"template.orgInvite.description": {
|
|
42
|
+
value: "Sent when a user is invited to an organization.",
|
|
43
|
+
description: "Org invite template description"
|
|
44
|
+
},
|
|
45
|
+
"template.mention.name": {
|
|
46
|
+
value: "Mention",
|
|
47
|
+
description: "Mention template display name"
|
|
48
|
+
},
|
|
49
|
+
"template.mention.description": {
|
|
50
|
+
value: "Sent when a user is mentioned.",
|
|
51
|
+
description: "Mention template description"
|
|
52
|
+
},
|
|
53
|
+
"channel.webhook.noUrl": {
|
|
54
|
+
value: "No webhook URL configured",
|
|
55
|
+
description: "Error when webhook channel has no URL"
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
// src/i18n/catalogs/fr.ts
|
|
62
|
+
import { defineTranslation as defineTranslation2 } from "@contractspec/lib.contracts-spec/translations";
|
|
63
|
+
var frMessages;
|
|
64
|
+
var init_fr = __esm(() => {
|
|
65
|
+
frMessages = defineTranslation2({
|
|
66
|
+
meta: {
|
|
67
|
+
key: "notifications.messages",
|
|
68
|
+
version: "1.0.0",
|
|
69
|
+
domain: "notifications",
|
|
70
|
+
description: "Template and channel strings (French)",
|
|
71
|
+
owners: ["platform"],
|
|
72
|
+
stability: "experimental"
|
|
73
|
+
},
|
|
74
|
+
locale: "fr",
|
|
75
|
+
fallback: "en",
|
|
76
|
+
messages: {
|
|
77
|
+
"template.welcome.name": {
|
|
78
|
+
value: "Bienvenue",
|
|
79
|
+
description: "Welcome template display name"
|
|
80
|
+
},
|
|
81
|
+
"template.welcome.description": {
|
|
82
|
+
value: "Envoyé lorsqu'un utilisateur s'inscrit.",
|
|
83
|
+
description: "Welcome template description"
|
|
84
|
+
},
|
|
85
|
+
"template.orgInvite.name": {
|
|
86
|
+
value: "Invitation à l'organisation",
|
|
87
|
+
description: "Org invite template display name"
|
|
88
|
+
},
|
|
89
|
+
"template.orgInvite.description": {
|
|
90
|
+
value: "Envoyé lorsqu'un utilisateur est invité à une organisation.",
|
|
91
|
+
description: "Org invite template description"
|
|
92
|
+
},
|
|
93
|
+
"template.mention.name": {
|
|
94
|
+
value: "Mention",
|
|
95
|
+
description: "Mention template display name"
|
|
96
|
+
},
|
|
97
|
+
"template.mention.description": {
|
|
98
|
+
value: "Envoyé lorsqu'un utilisateur est mentionné.",
|
|
99
|
+
description: "Mention template description"
|
|
100
|
+
},
|
|
101
|
+
"channel.webhook.noUrl": {
|
|
102
|
+
value: "Aucune URL de webhook configurée",
|
|
103
|
+
description: "Error when webhook channel has no URL"
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
// src/i18n/catalogs/es.ts
|
|
110
|
+
import { defineTranslation as defineTranslation3 } from "@contractspec/lib.contracts-spec/translations";
|
|
111
|
+
var esMessages;
|
|
112
|
+
var init_es = __esm(() => {
|
|
113
|
+
esMessages = defineTranslation3({
|
|
114
|
+
meta: {
|
|
115
|
+
key: "notifications.messages",
|
|
116
|
+
version: "1.0.0",
|
|
117
|
+
domain: "notifications",
|
|
118
|
+
description: "Template and channel strings (Spanish)",
|
|
119
|
+
owners: ["platform"],
|
|
120
|
+
stability: "experimental"
|
|
121
|
+
},
|
|
122
|
+
locale: "es",
|
|
123
|
+
fallback: "en",
|
|
124
|
+
messages: {
|
|
125
|
+
"template.welcome.name": {
|
|
126
|
+
value: "Bienvenida",
|
|
127
|
+
description: "Welcome template display name"
|
|
128
|
+
},
|
|
129
|
+
"template.welcome.description": {
|
|
130
|
+
value: "Enviado cuando un usuario se registra.",
|
|
131
|
+
description: "Welcome template description"
|
|
132
|
+
},
|
|
133
|
+
"template.orgInvite.name": {
|
|
134
|
+
value: "Invitación a la organización",
|
|
135
|
+
description: "Org invite template display name"
|
|
136
|
+
},
|
|
137
|
+
"template.orgInvite.description": {
|
|
138
|
+
value: "Enviado cuando un usuario es invitado a una organización.",
|
|
139
|
+
description: "Org invite template description"
|
|
140
|
+
},
|
|
141
|
+
"template.mention.name": {
|
|
142
|
+
value: "Mención",
|
|
143
|
+
description: "Mention template display name"
|
|
144
|
+
},
|
|
145
|
+
"template.mention.description": {
|
|
146
|
+
value: "Enviado cuando un usuario es mencionado.",
|
|
147
|
+
description: "Mention template description"
|
|
148
|
+
},
|
|
149
|
+
"channel.webhook.noUrl": {
|
|
150
|
+
value: "No se ha configurado una URL de webhook",
|
|
151
|
+
description: "Error when webhook channel has no URL"
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
});
|
|
155
|
+
});
|
|
156
|
+
|
|
157
|
+
// src/i18n/messages.ts
|
|
158
|
+
var exports_messages = {};
|
|
159
|
+
__export(exports_messages, {
|
|
160
|
+
resetI18nRegistry: () => resetI18nRegistry,
|
|
161
|
+
getDefaultI18n: () => getDefaultI18n,
|
|
162
|
+
createNotificationsI18n: () => createNotificationsI18n
|
|
163
|
+
});
|
|
164
|
+
import {
|
|
165
|
+
createI18nFactory
|
|
166
|
+
} from "@contractspec/lib.contracts-spec/translations";
|
|
167
|
+
var factory, createNotificationsI18n, getDefaultI18n, resetI18nRegistry;
|
|
168
|
+
var init_messages = __esm(() => {
|
|
169
|
+
init_en();
|
|
170
|
+
init_fr();
|
|
171
|
+
init_es();
|
|
172
|
+
factory = createI18nFactory({
|
|
173
|
+
specKey: "notifications.messages",
|
|
174
|
+
catalogs: [enMessages, frMessages, esMessages]
|
|
175
|
+
});
|
|
176
|
+
createNotificationsI18n = factory.create;
|
|
177
|
+
getDefaultI18n = factory.getDefault;
|
|
178
|
+
resetI18nRegistry = factory.resetRegistry;
|
|
179
|
+
});
|
|
180
|
+
init_messages();
|
|
181
|
+
|
|
182
|
+
export {
|
|
183
|
+
resetI18nRegistry,
|
|
184
|
+
getDefaultI18n,
|
|
185
|
+
createNotificationsI18n
|
|
186
|
+
};
|