Skip to content

Commit a697a52

Browse files
committed
fix: pass request context to resolveI18nService in form hydration
1 parent 7361fad commit a697a52

2 files changed

Lines changed: 1 addition & 21 deletions

File tree

examples/app-crm/dist/objectstack.json

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5758,26 +5758,6 @@
57585758
"multiple": false,
57595759
"unique": false,
57605760
"deleteBehavior": "set_null",
5761-
"fileAttachmentConfig": {
5762-
"virusScan": false,
5763-
"virusScanOnUpload": true,
5764-
"quarantineOnThreat": true,
5765-
"imageValidation": {
5766-
"aspectRatio": "1:1",
5767-
"generateThumbnails": false,
5768-
"preserveMetadata": false,
5769-
"autoRotate": true
5770-
},
5771-
"allowMultiple": false,
5772-
"allowReplace": true,
5773-
"allowDelete": true,
5774-
"requireUpload": false,
5775-
"extractMetadata": true,
5776-
"extractText": false,
5777-
"versioningEnabled": false,
5778-
"publicRead": false,
5779-
"presignedUrlExpiry": 3600
5780-
},
57815761
"auditTrail": false,
57825762
"group": "branding",
57835763
"hidden": false,

packages/rest/src/rest-server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2207,7 +2207,7 @@ export class RestServer {
22072207
// form payload is otherwise un-translated (resolveFormBySlug
22082208
// returns the raw view spec), so we hydrate the schema here.
22092209
try {
2210-
const i18n = await this.resolveI18nService(projectId);
2210+
const i18n = await this.resolveI18nService(projectId, req);
22112211
const bundle = this.buildTranslationBundle(i18n);
22122212
const locale = this.extractLocale(req, i18n);
22132213
if (bundle && locale) {

0 commit comments

Comments
 (0)