@raketa-cloud/admin 0.0.69 → 0.0.71
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/package.json +1 -1
- package/src/handlers/articles/TranslationsHandler.js +129 -44
- package/src/handlers/events/TranslationsHandler.js +132 -49
- package/src/tests/handlers/articles/TranslationHandler.test/create.test.js +291 -0
- package/src/tests/handlers/articles/TranslationHandler.test/create_form.test.js +71 -0
- package/src/tests/handlers/articles/TranslationHandler.test/index.test.js +91 -0
- package/src/tests/handlers/events/TranslationHandler.test/create.test.js +297 -0
- package/src/tests/handlers/events/TranslationHandler.test/create_form.test.js +71 -0
- package/src/tests/handlers/events/TranslationHandler.test/index.test.js +91 -0
- package/src/tests/handlers/pages/TranslationHandler.test/create.test.js +1 -1
- package/src/views/_auth/login.ejs +72 -82
- package/src/views/articles/_shared/_history_toolbar.ejs +2 -2
- package/src/views/articles/show.ejs +15 -4
- package/src/views/articles/translations/_translation_toolbar.ejs +18 -0
- package/src/views/articles/translations/create_form.ejs +68 -4
- package/src/views/articles/translations/index.ejs +39 -0
- package/src/views/events/_shared/_history_toolbar.ejs +2 -2
- package/src/views/events/show.ejs +15 -4
- package/src/views/events/translations/_translation_toolbar.ejs +18 -0
- package/src/views/events/translations/create_form.ejs +68 -4
- package/src/views/events/translations/index.ejs +39 -0
- package/src/views/pages/_shared/_history_toolbar.ejs +2 -2
- package/src/views/pages/show.ejs +2 -4
- package/src/views/pages/translations/_translation_toolbar.ejs +18 -0
- package/src/views/pages/translations/index.ejs +2 -19
- package/src/views/articles/translations/_form.ejs +0 -31
- package/src/views/events/translations/_form.ejs +0 -33
|
@@ -0,0 +1,297 @@
|
|
|
1
|
+
import EventRevisions from "../../../../cloud/EventRevisions";
|
|
2
|
+
import Events from "../../../../cloud/Events";
|
|
3
|
+
import TranslationsHandler from "../../../../handlers/events/TranslationsHandler";
|
|
4
|
+
import Factory from "../../../support/factory";
|
|
5
|
+
|
|
6
|
+
function buildCtx(params, event) {
|
|
7
|
+
return {
|
|
8
|
+
client: {
|
|
9
|
+
events: new Events(() => ({}), "token"),
|
|
10
|
+
eventRevisions: new EventRevisions(() => ({}), "token"),
|
|
11
|
+
},
|
|
12
|
+
params: { parent_id: event.id },
|
|
13
|
+
resourceParams: {
|
|
14
|
+
resource: params,
|
|
15
|
+
},
|
|
16
|
+
locale: "en",
|
|
17
|
+
resourceConfig: {
|
|
18
|
+
eventType: "event",
|
|
19
|
+
eventTypePlural: "events",
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
describe("Events Translation Handler", () => {
|
|
25
|
+
test("create fails with translation errors", async () => {
|
|
26
|
+
const event = Factory.build("event", {
|
|
27
|
+
translations: {},
|
|
28
|
+
categories: [{ id: "cat1" }],
|
|
29
|
+
});
|
|
30
|
+
const params = {
|
|
31
|
+
languages: ["fr"],
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
const ctx = buildCtx(params, event);
|
|
35
|
+
|
|
36
|
+
const mockFind = jest
|
|
37
|
+
.spyOn(ctx.client.events, "find")
|
|
38
|
+
.mockImplementation(() => event);
|
|
39
|
+
|
|
40
|
+
const translationErrors = [{ key: "title", message: "cannot be blank" }];
|
|
41
|
+
const mockTranslate = jest
|
|
42
|
+
.spyOn(ctx.client.events, "translate")
|
|
43
|
+
.mockImplementation(() => ({
|
|
44
|
+
event: null,
|
|
45
|
+
errors: translationErrors,
|
|
46
|
+
}));
|
|
47
|
+
|
|
48
|
+
const mockFormatErrors = jest
|
|
49
|
+
.spyOn(ctx.client.events, "formatErrors")
|
|
50
|
+
.mockImplementation(() => ({ title: "cannot be blank" }));
|
|
51
|
+
|
|
52
|
+
const result = await TranslationsHandler.create(ctx);
|
|
53
|
+
|
|
54
|
+
expect(mockFind).toHaveBeenCalledWith(event.id, "en");
|
|
55
|
+
expect(mockTranslate).toHaveBeenCalled();
|
|
56
|
+
expect(mockFormatErrors).toHaveBeenCalledWith(translationErrors);
|
|
57
|
+
|
|
58
|
+
expect(result).toEqual({
|
|
59
|
+
assigns: {
|
|
60
|
+
resource: {
|
|
61
|
+
title: event.title,
|
|
62
|
+
tags: [],
|
|
63
|
+
visibility: "private",
|
|
64
|
+
slug: event.slug,
|
|
65
|
+
settings: event.settings,
|
|
66
|
+
widgets: event.widgets,
|
|
67
|
+
categories: ["cat1"],
|
|
68
|
+
publishAt: event.publishAt,
|
|
69
|
+
startsAt: event.startsAt,
|
|
70
|
+
endsAt: event.endsAt,
|
|
71
|
+
translations: {},
|
|
72
|
+
languages: ["fr"],
|
|
73
|
+
},
|
|
74
|
+
blueprint: event,
|
|
75
|
+
targetLocale: "fr",
|
|
76
|
+
errors: { resource: { title: "cannot be blank" } },
|
|
77
|
+
},
|
|
78
|
+
});
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
test("create successfully multiple translations with already one is existing", async () => {
|
|
82
|
+
const event = Factory.build("event", {
|
|
83
|
+
translations: { de: "de-id" },
|
|
84
|
+
categories: [{ id: "cat1" }],
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
const params = {
|
|
88
|
+
languages: ["fr", "es", "de"],
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
const ctx = buildCtx(params, event);
|
|
92
|
+
|
|
93
|
+
const mockFind = jest
|
|
94
|
+
.spyOn(ctx.client.events, "find")
|
|
95
|
+
.mockImplementation(() => event);
|
|
96
|
+
|
|
97
|
+
const mockTranslate = jest
|
|
98
|
+
.spyOn(ctx.client.events, "translate")
|
|
99
|
+
.mockImplementation((parentId, locale) => ({
|
|
100
|
+
event: { id: `translated-event-${locale}` },
|
|
101
|
+
errors: null,
|
|
102
|
+
}));
|
|
103
|
+
|
|
104
|
+
const mockCreateRevision = jest
|
|
105
|
+
.spyOn(ctx.client.eventRevisions, "create")
|
|
106
|
+
.mockImplementation(() => ({ errors: null }));
|
|
107
|
+
|
|
108
|
+
const result = await TranslationsHandler.create(ctx);
|
|
109
|
+
|
|
110
|
+
expect(mockFind).toHaveBeenCalledWith(event.id, "en");
|
|
111
|
+
|
|
112
|
+
expect(mockTranslate).toHaveBeenCalledTimes(2);
|
|
113
|
+
expect(mockTranslate).toHaveBeenCalledWith(
|
|
114
|
+
event.id,
|
|
115
|
+
"fr",
|
|
116
|
+
expect.objectContaining({
|
|
117
|
+
title: event.title,
|
|
118
|
+
tags: [],
|
|
119
|
+
visibility: "private",
|
|
120
|
+
slug: event.slug,
|
|
121
|
+
})
|
|
122
|
+
);
|
|
123
|
+
expect(mockTranslate).toHaveBeenCalledWith(
|
|
124
|
+
event.id,
|
|
125
|
+
"es",
|
|
126
|
+
expect.objectContaining({
|
|
127
|
+
title: event.title,
|
|
128
|
+
tags: [],
|
|
129
|
+
visibility: "private",
|
|
130
|
+
slug: event.slug,
|
|
131
|
+
})
|
|
132
|
+
);
|
|
133
|
+
|
|
134
|
+
expect(mockCreateRevision).toHaveBeenCalledTimes(2);
|
|
135
|
+
expect(mockCreateRevision).toHaveBeenCalledWith(
|
|
136
|
+
"translated-event-fr",
|
|
137
|
+
"fr"
|
|
138
|
+
);
|
|
139
|
+
expect(mockCreateRevision).toHaveBeenCalledWith(
|
|
140
|
+
"translated-event-es",
|
|
141
|
+
"es"
|
|
142
|
+
);
|
|
143
|
+
|
|
144
|
+
expect(result).toEqual({
|
|
145
|
+
redirect: `/en/events/${event.id}/translations?translations=fr:translated-event-fr;es:translated-event-es`,
|
|
146
|
+
});
|
|
147
|
+
});
|
|
148
|
+
|
|
149
|
+
test("create translations fails if any translation fails", async () => {
|
|
150
|
+
const event = Factory.build("event", {
|
|
151
|
+
translations: {},
|
|
152
|
+
categories: [{ id: "some-category-uno" }],
|
|
153
|
+
});
|
|
154
|
+
|
|
155
|
+
const params = {
|
|
156
|
+
languages: ["fr", "es"],
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
const ctx = buildCtx(params, event);
|
|
160
|
+
|
|
161
|
+
const mockFind = jest
|
|
162
|
+
.spyOn(ctx.client.events, "find")
|
|
163
|
+
.mockImplementation(() => event);
|
|
164
|
+
|
|
165
|
+
const translationResponses = {
|
|
166
|
+
fr: { event: { id: "translated-event-fr" }, errors: null },
|
|
167
|
+
es: {
|
|
168
|
+
event: null,
|
|
169
|
+
errors: [{ key: "title", message: "invalid for spanish" }],
|
|
170
|
+
},
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
const mockTranslate = jest
|
|
174
|
+
.spyOn(ctx.client.events, "translate")
|
|
175
|
+
.mockImplementation((parentId, locale) => translationResponses[locale]);
|
|
176
|
+
|
|
177
|
+
const mockFormatErrors = jest
|
|
178
|
+
.spyOn(ctx.client.events, "formatErrors")
|
|
179
|
+
.mockImplementation(() => ({
|
|
180
|
+
title: "invalid for spanish",
|
|
181
|
+
}));
|
|
182
|
+
|
|
183
|
+
const mockCreateRevision = jest
|
|
184
|
+
.spyOn(ctx.client.eventRevisions, "create")
|
|
185
|
+
.mockImplementation(() => ({ errors: null }));
|
|
186
|
+
|
|
187
|
+
const result = await TranslationsHandler.create(ctx);
|
|
188
|
+
|
|
189
|
+
expect(mockFind).toHaveBeenCalledWith(event.id, "en");
|
|
190
|
+
|
|
191
|
+
expect(mockTranslate).toHaveBeenCalledWith(
|
|
192
|
+
event.id,
|
|
193
|
+
"fr",
|
|
194
|
+
expect.objectContaining({
|
|
195
|
+
title: event.title,
|
|
196
|
+
tags: [],
|
|
197
|
+
visibility: "private",
|
|
198
|
+
slug: event.slug,
|
|
199
|
+
})
|
|
200
|
+
);
|
|
201
|
+
|
|
202
|
+
expect(mockTranslate).toHaveBeenCalledWith(
|
|
203
|
+
event.id,
|
|
204
|
+
"es",
|
|
205
|
+
expect.objectContaining({
|
|
206
|
+
title: event.title,
|
|
207
|
+
tags: [],
|
|
208
|
+
visibility: "private",
|
|
209
|
+
slug: event.slug,
|
|
210
|
+
})
|
|
211
|
+
);
|
|
212
|
+
|
|
213
|
+
expect(result).toEqual({
|
|
214
|
+
assigns: {
|
|
215
|
+
resource: {
|
|
216
|
+
title: event.title,
|
|
217
|
+
tags: [],
|
|
218
|
+
visibility: "private",
|
|
219
|
+
slug: event.slug,
|
|
220
|
+
settings: event.settings,
|
|
221
|
+
widgets: event.widgets,
|
|
222
|
+
categories: ["some-category-uno"],
|
|
223
|
+
publishAt: event.publishAt,
|
|
224
|
+
startsAt: event.startsAt,
|
|
225
|
+
endsAt: event.endsAt,
|
|
226
|
+
translations: {},
|
|
227
|
+
languages: ["fr", "es"],
|
|
228
|
+
},
|
|
229
|
+
blueprint: event,
|
|
230
|
+
targetLocale: "es",
|
|
231
|
+
errors: { resource: { title: "invalid for spanish" } },
|
|
232
|
+
},
|
|
233
|
+
});
|
|
234
|
+
});
|
|
235
|
+
|
|
236
|
+
test("create translation fails with revision errors", async () => {
|
|
237
|
+
const event = Factory.build("event", {
|
|
238
|
+
translations: {},
|
|
239
|
+
categories: [{ id: "cat1" }],
|
|
240
|
+
});
|
|
241
|
+
const params = {
|
|
242
|
+
languages: ["fr"],
|
|
243
|
+
};
|
|
244
|
+
|
|
245
|
+
const ctx = buildCtx(params, event);
|
|
246
|
+
|
|
247
|
+
const mockFind = jest
|
|
248
|
+
.spyOn(ctx.client.events, "find")
|
|
249
|
+
.mockImplementation(() => event);
|
|
250
|
+
|
|
251
|
+
const mockTranslate = jest
|
|
252
|
+
.spyOn(ctx.client.events, "translate")
|
|
253
|
+
.mockImplementation(() => ({
|
|
254
|
+
event: { id: "translated-event-id" },
|
|
255
|
+
errors: null,
|
|
256
|
+
}));
|
|
257
|
+
|
|
258
|
+
const revisionErrors = [{ key: "base", message: "something went wrong" }];
|
|
259
|
+
const mockCreateRevision = jest
|
|
260
|
+
.spyOn(ctx.client.eventRevisions, "create")
|
|
261
|
+
.mockImplementation(() => ({ errors: revisionErrors }));
|
|
262
|
+
|
|
263
|
+
const mockFormatErrors = jest
|
|
264
|
+
.spyOn(ctx.client.events, "formatErrors")
|
|
265
|
+
.mockImplementation(() => ({ base: "something went wrong" }));
|
|
266
|
+
|
|
267
|
+
const result = await TranslationsHandler.create(ctx);
|
|
268
|
+
|
|
269
|
+
expect(mockCreateRevision).toHaveBeenCalledWith(
|
|
270
|
+
"translated-event-id",
|
|
271
|
+
"fr"
|
|
272
|
+
);
|
|
273
|
+
expect(mockFormatErrors).toHaveBeenCalledWith(revisionErrors);
|
|
274
|
+
|
|
275
|
+
expect(result).toEqual({
|
|
276
|
+
assigns: {
|
|
277
|
+
resource: {
|
|
278
|
+
title: event.title,
|
|
279
|
+
tags: [],
|
|
280
|
+
visibility: "private",
|
|
281
|
+
slug: event.slug,
|
|
282
|
+
settings: event.settings,
|
|
283
|
+
widgets: event.widgets,
|
|
284
|
+
categories: ["cat1"],
|
|
285
|
+
publishAt: event.publishAt,
|
|
286
|
+
startsAt: event.startsAt,
|
|
287
|
+
endsAt: event.endsAt,
|
|
288
|
+
translations: {},
|
|
289
|
+
languages: ["fr"],
|
|
290
|
+
},
|
|
291
|
+
blueprint: event,
|
|
292
|
+
targetLocale: "fr",
|
|
293
|
+
errors: { resource: { base: "something went wrong" } },
|
|
294
|
+
},
|
|
295
|
+
});
|
|
296
|
+
});
|
|
297
|
+
});
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import Events from "../../../../cloud/Events";
|
|
2
|
+
import TranslationsHandler from "../../../../handlers/events/TranslationsHandler";
|
|
3
|
+
import Factory from "../../../support/factory";
|
|
4
|
+
|
|
5
|
+
function buildCtx(event) {
|
|
6
|
+
return {
|
|
7
|
+
client: {
|
|
8
|
+
events: new Events(() => ({}), "token"),
|
|
9
|
+
},
|
|
10
|
+
params: { parent_id: event.id },
|
|
11
|
+
query: { target_locale: "" },
|
|
12
|
+
locale: "en",
|
|
13
|
+
resourceConfig: {
|
|
14
|
+
eventType: "event",
|
|
15
|
+
eventTypePlural: "events",
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
describe("Event translation form", () => {
|
|
21
|
+
test("create_form when a event exists with target locale", async () => {
|
|
22
|
+
const event = Factory.build("event");
|
|
23
|
+
const ctx = buildCtx(event);
|
|
24
|
+
ctx.query.target_locale = "fr";
|
|
25
|
+
|
|
26
|
+
const mockFindEvent = jest
|
|
27
|
+
.spyOn(ctx.client.events, "find")
|
|
28
|
+
.mockImplementation(() => event);
|
|
29
|
+
|
|
30
|
+
const result = await TranslationsHandler.create_form(ctx);
|
|
31
|
+
|
|
32
|
+
expect(mockFindEvent).toHaveBeenCalledWith(event.id, "en");
|
|
33
|
+
|
|
34
|
+
const expectedResource = structuredClone(event);
|
|
35
|
+
|
|
36
|
+
expect(result).toEqual({
|
|
37
|
+
assigns: {
|
|
38
|
+
resource: expectedResource,
|
|
39
|
+
blueprint: event,
|
|
40
|
+
targetLocale: "fr",
|
|
41
|
+
errors: {},
|
|
42
|
+
_translations: [],
|
|
43
|
+
},
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
test("create_form when a event exists without target locale", async () => {
|
|
48
|
+
const event = Factory.build("event");
|
|
49
|
+
const ctx = buildCtx(event);
|
|
50
|
+
|
|
51
|
+
const mockFindEvent = jest
|
|
52
|
+
.spyOn(ctx.client.events, "find")
|
|
53
|
+
.mockImplementation(() => event);
|
|
54
|
+
|
|
55
|
+
const result = await TranslationsHandler.create_form(ctx);
|
|
56
|
+
|
|
57
|
+
expect(mockFindEvent).toHaveBeenCalledWith(event.id, "en");
|
|
58
|
+
|
|
59
|
+
const expectedResource = structuredClone(event);
|
|
60
|
+
|
|
61
|
+
expect(result).toEqual({
|
|
62
|
+
assigns: {
|
|
63
|
+
resource: expectedResource,
|
|
64
|
+
blueprint: event,
|
|
65
|
+
targetLocale: "",
|
|
66
|
+
errors: {},
|
|
67
|
+
_translations: [],
|
|
68
|
+
},
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
});
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import EventRevisions from "../../../../cloud/EventRevisions";
|
|
2
|
+
import Events from "../../../../cloud/Events";
|
|
3
|
+
import TranslationsHandler from "../../../../handlers/events/TranslationsHandler";
|
|
4
|
+
import Factory from "../../../support/factory";
|
|
5
|
+
|
|
6
|
+
function buildCtx() {
|
|
7
|
+
const originalEvent = Factory.build("event", {
|
|
8
|
+
id: "original-event-id",
|
|
9
|
+
title: "Test Event Title",
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
return {
|
|
13
|
+
client: {
|
|
14
|
+
events: new Events(() => ({}), "token"),
|
|
15
|
+
eventRevisions: new EventRevisions(() => ({}), "token"),
|
|
16
|
+
},
|
|
17
|
+
params: { parent_id: originalEvent.id },
|
|
18
|
+
query: { translations: "fr:fr-event-id;es:es-event-id" },
|
|
19
|
+
locale: "en",
|
|
20
|
+
resourceConfig: {
|
|
21
|
+
eventType: "event",
|
|
22
|
+
eventTypePlural: "events",
|
|
23
|
+
},
|
|
24
|
+
originalEvent,
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
describe("Translations Handler", () => {
|
|
29
|
+
test("index", async () => {
|
|
30
|
+
const frEvent = Factory.build("event", { id: "fr-event-id" });
|
|
31
|
+
const esEvent = Factory.build("event", { id: "es-event-id" });
|
|
32
|
+
const esRevision = Factory.build("event_revision", {
|
|
33
|
+
id: "es-revision-id",
|
|
34
|
+
});
|
|
35
|
+
const frRevision = Factory.build("event_revision", {
|
|
36
|
+
id: "fr-revision-id",
|
|
37
|
+
});
|
|
38
|
+
const ctx = buildCtx();
|
|
39
|
+
|
|
40
|
+
const mockedFind = jest
|
|
41
|
+
.spyOn(ctx.client.events, "find")
|
|
42
|
+
.mockImplementation((id, locale) => {
|
|
43
|
+
if (locale === "fr") return frEvent;
|
|
44
|
+
if (locale === "es") return esEvent;
|
|
45
|
+
if (id === "original-event-id") return ctx.originalEvent;
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
const mockedRevisions = jest
|
|
49
|
+
.spyOn(ctx.client.eventRevisions, "all")
|
|
50
|
+
.mockImplementation((id, locale) => ({
|
|
51
|
+
list: locale === "fr" ? [frRevision] : [esRevision],
|
|
52
|
+
}));
|
|
53
|
+
|
|
54
|
+
const mockedList = jest
|
|
55
|
+
.spyOn(ctx.client.events, "list")
|
|
56
|
+
.mockImplementation(() => ({}));
|
|
57
|
+
|
|
58
|
+
const result = await TranslationsHandler.index(ctx);
|
|
59
|
+
|
|
60
|
+
expect(mockedFind).toHaveBeenCalledWith("fr-event-id", "fr");
|
|
61
|
+
expect(mockedFind).toHaveBeenCalledWith("es-event-id", "es");
|
|
62
|
+
expect(mockedRevisions).toHaveBeenCalledWith("fr-event-id", "fr");
|
|
63
|
+
expect(mockedRevisions).toHaveBeenCalledWith("es-event-id", "es");
|
|
64
|
+
expect(mockedList).toHaveBeenCalledWith(
|
|
65
|
+
{ translations: "fr:fr-event-id;es:es-event-id" },
|
|
66
|
+
"en",
|
|
67
|
+
"event"
|
|
68
|
+
);
|
|
69
|
+
|
|
70
|
+
expect(result).toEqual({
|
|
71
|
+
assigns: {
|
|
72
|
+
items: {},
|
|
73
|
+
visibilityOptions: ctx.client.events.visibilityOptions(),
|
|
74
|
+
translations: [
|
|
75
|
+
{
|
|
76
|
+
...frEvent,
|
|
77
|
+
translationLocale: "fr",
|
|
78
|
+
revisionId: "fr-revision-id",
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
...esEvent,
|
|
82
|
+
translationLocale: "es",
|
|
83
|
+
revisionId: "es-revision-id",
|
|
84
|
+
},
|
|
85
|
+
],
|
|
86
|
+
parent_id: "original-event-id",
|
|
87
|
+
eventTitle: "Test Event Title",
|
|
88
|
+
},
|
|
89
|
+
});
|
|
90
|
+
});
|
|
91
|
+
});
|
|
@@ -21,7 +21,7 @@ function buildCtx(params, page) {
|
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
describe("Translation Handler", () => {
|
|
24
|
+
describe("Pages Translation Handler", () => {
|
|
25
25
|
test("create fails with translation errors", async () => {
|
|
26
26
|
const page = Factory.build("page", {
|
|
27
27
|
translations: {},
|