@@ -13,8 +13,8 @@ description: "Translation schemas of the ObjectStack System Protocol — each pr
1313## TypeScript Usage
1414
1515``` typescript
16- import { ActionResultDialogTranslationSchema , CoverageBreakdownEntrySchema , FieldTranslationSchema , LocaleSchema , ObjectTranslationDataSchema , PlatformTranslationBundleSchema , PlatformTranslationDataSchema , TranslationBundleSchema , TranslationConfigSchema , TranslationCoverageResultSchema , TranslationDataSchema , TranslationDiffItemSchema , TranslationDiffStatusSchema , TranslationItemSchema } from ' @objectstack/spec/system' ;
17- import type { ActionResultDialogTranslation , CoverageBreakdownEntry , FieldTranslation , Locale , ObjectTranslationData , PlatformTranslationBundle , PlatformTranslationData , TranslationBundle , TranslationConfig , TranslationCoverageResult , TranslationData , TranslationDiffItem , TranslationDiffStatus , TranslationItem } from ' @objectstack/spec/system' ;
16+ import { ActionResultDialogTranslationSchema , CoverageBreakdownEntrySchema , FieldTranslationSchema , LocaleSchema , ObjectTranslationDataSchema , PlatformTranslationBundleSchema , PlatformTranslationDataSchema , ServedTranslationDataSchema , TranslationBundleSchema , TranslationConfigSchema , TranslationCoverageResultSchema , TranslationDataSchema , TranslationDiffItemSchema , TranslationDiffStatusSchema , TranslationItemSchema } from ' @objectstack/spec/system' ;
17+ import type { ActionResultDialogTranslation , CoverageBreakdownEntry , FieldTranslation , Locale , ObjectTranslationData , PlatformTranslationBundle , PlatformTranslationData , ServedTranslationData , TranslationBundle , TranslationConfig , TranslationCoverageResult , TranslationData , TranslationDiffItem , TranslationDiffStatus , TranslationItem } from ' @objectstack/spec/system' ;
1818
1919// Validate data
2020const result = ActionResultDialogTranslationSchema .parse (data );
@@ -317,6 +317,153 @@ Translation data for a single object
317317| ** banners** | ` Record<string, { title?: string; text?: string }> ` | optional | Info banner translations keyed by the info_banner specifier id |
318318
319319
320+ ---
321+
322+ ## ServedTranslationData
323+
324+ Served translation data — the platform groups the browser reads, without the server-resolved ` metadataForms `
325+
326+ ### Properties
327+
328+ | Property | Type | Required | Description |
329+ | :--- | :--- | :--- | :--- |
330+ | ** objects** | ` Record<string, { label?: string; pluralLabel?: string; description?: string; fields?: Record<string, object>; … }> ` | optional | Object translations keyed by object name |
331+ | ** picklists** | ` Record<string, { label?: string; options: Record<string, string> }> ` | optional | Picklist translations keyed by picklist name |
332+ | ** apps** | ` Record<string, { label: string; description?: string; navigation?: Record<string, object> }> ` | optional | App translations keyed by app name |
333+ | ** messages** | ` Record<string, string> ` | optional | UI message translations keyed by message ID |
334+ | ** globalActions** | ` Record<string, { label?: string; description?: string; confirmText?: string; successMessage?: string; … }> ` | optional | Global action translations keyed by action name |
335+ | ** dashboards** | ` Record<string, { label?: string; description?: string; actions?: Record<string, object>; widgets?: Record<string, object>; … }> ` | optional | Dashboard translations keyed by dashboard name |
336+ | ** datasets** | ` Record<string, { label?: string; description?: string; dimensions?: Record<string, object>; measures?: Record<string, object> }> ` | optional | Analytics dataset translations keyed by dataset name |
337+ | ** reports** | ` Record<string, { label?: string; description?: string }> ` | optional | Report translations keyed by report name |
338+ | ** pages** | ` Record<string, { label?: string; description?: string; title?: string; subtitle?: string; … }> ` | optional | Page translations keyed by page name |
339+ | ** flows** | ` Record<string, { label?: string; successMessage?: string; errorMessage?: string; screens?: Record<string, object>; … }> ` | optional | Screen-flow translations keyed by flow name |
340+ | ** positions** | ` Record<string, { label?: string; description?: string }> ` | optional | Position translations keyed by position name |
341+ | ** permissions** | ` Record<string, { label?: string; description?: string }> ` | optional | Permission-set translations keyed by permission-set name |
342+ | ** settingsCommon** | ` { sourceLabels?: object } ` | optional | Cross-namespace Settings UI strings |
343+ | ** settings** | ` Record<string, { title?: string; description?: string; groups?: Record<string, object>; keys?: Record<string, object>; … }> ` | optional | Settings manifest translations keyed by namespace |
344+
345+ ### Nested Shape: ` ServedTranslationData.objects[string] `
346+
347+ Translation data for a single object
348+
349+ | Property | Type | Required | Description |
350+ | :--- | :--- | :--- | :--- |
351+ | ** label** | ` string ` | optional | Translated singular label |
352+ | ** pluralLabel** | ` string ` | optional | Translated plural label |
353+ | ** description** | ` string ` | optional | Translated object description |
354+ | ** fields** | ` Record<string, { label?: string; help?: string; placeholder?: string; options?: Record<string, string> }> ` | optional | Field-level translations |
355+ | ** _ views** | ` Record<string, { label?: string; description?: string; title?: string; emptyState?: object; … }> ` | optional | View translations keyed by view name |
356+ | ** _ actions** | ` Record<string, { label?: string; description?: string; confirmText?: string; successMessage?: string; … }> ` | optional | Action translations keyed by action name |
357+ | ** _ sections** | ` Record<string, { label?: string; description?: string; fields?: Record<string, object> }> ` | optional | Section translations keyed by section name |
358+ | ** _ tabs** | ` Record<string, { label?: string }> ` | optional | Filter-preset tab translations keyed by tab name |
359+ | ** _ validations** | ` Record<string, { message?: string }> ` | optional | Custom validation-rule messages keyed by rule name (` ValidationRuleSchema.name ` ) |
360+
361+ ### Nested Shape: ` ServedTranslationData.picklists[string] `
362+
363+ | Property | Type | Required | Description |
364+ | :--- | :--- | :--- | :--- |
365+ | ** label** | ` string ` | optional | Translated picklist label |
366+ | ** options** | ` Record<string, string> ` | ✅ | Option value to translated label map — inherited by every field that references the picklist |
367+
368+ ### Nested Shape: ` ServedTranslationData.apps[string] `
369+
370+ | Property | Type | Required | Description |
371+ | :--- | :--- | :--- | :--- |
372+ | ** label** | ` string ` | ✅ | Translated app label |
373+ | ** description** | ` string ` | optional | Translated app description |
374+ | ** navigation** | ` Record<string, { label: string }> ` | optional | Navigation group translations keyed by group ID |
375+
376+ ### Nested Shape: ` ServedTranslationData.globalActions[string] `
377+
378+ | Property | Type | Required | Description |
379+ | :--- | :--- | :--- | :--- |
380+ | ** label** | ` string ` | optional | Translated action label |
381+ | ** description** | ` string ` | optional | Translated action description — the explanatory line under the title in the action's param dialog |
382+ | ** confirmText** | ` string ` | optional | Translated confirmation prompt |
383+ | ** successMessage** | ` string ` | optional | Translated success toast/message |
384+ | ** outcomeMessages** | ` Record<string, string> ` | optional | Translated success copy per handler outcome, keyed by the snake_case outcome name the action's ` outcomeMessages ` declares |
385+ | ** params** | ` Record<string, { label?: string; helpText?: string; placeholder?: string; options?: Record<string, string> }> ` | optional | Action parameter translations keyed by parameter name |
386+ | ** resultDialog** | ` { title?: string; description?: string; acknowledge?: string; fields?: Record<string, string> } ` | optional | Translations for the action result dialog |
387+
388+ ### Nested Shape: ` ServedTranslationData.dashboards[string] `
389+
390+ | Property | Type | Required | Description |
391+ | :--- | :--- | :--- | :--- |
392+ | ** label** | ` string ` | optional | Translated dashboard title |
393+ | ** description** | ` string ` | optional | Translated dashboard description |
394+ | ** actions** | ` Record<string, { label?: string }> ` | optional | Header action label translations keyed by action url/key |
395+ | ** widgets** | ` Record<string, { title?: string; description?: string }> ` | optional | Widget translations keyed by widget id |
396+ | ** globalFilters** | ` Record<string, { label?: string; options?: Record<string, string> }> ` | optional | Global-filter translations keyed by the filter ` name ` (a filter that authors no ` name ` is keyed by its ` field ` ) |
397+
398+ ### Nested Shape: ` ServedTranslationData.datasets[string] `
399+
400+ | Property | Type | Required | Description |
401+ | :--- | :--- | :--- | :--- |
402+ | ** label** | ` string ` | optional | Translated dataset label |
403+ | ** description** | ` string ` | optional | Translated dataset description |
404+ | ** dimensions** | ` Record<string, { label?: string }> ` | optional | Dimension translations keyed by dimension name (` DatasetDimensionSchema.name ` ) |
405+ | ** measures** | ` Record<string, { label?: string }> ` | optional | Measure translations keyed by measure name (` DatasetMeasureSchema.name ` ) |
406+
407+ ### Nested Shape: ` ServedTranslationData.reports[string] `
408+
409+ | Property | Type | Required | Description |
410+ | :--- | :--- | :--- | :--- |
411+ | ** label** | ` string ` | optional | Translated report label — overlays the report's own ` label ` |
412+ | ** description** | ` string ` | optional | Translated report description — overlays the report's own ` description ` |
413+
414+ ### Nested Shape: ` ServedTranslationData.pages[string] `
415+
416+ | Property | Type | Required | Description |
417+ | :--- | :--- | :--- | :--- |
418+ | ** label** | ` string ` | optional | Translated page label (nav / breadcrumb) |
419+ | ** description** | ` string ` | optional | Translated page description |
420+ | ** title** | ` string ` | optional | Translated ` page:header ` title. When omitted the header keeps its authored title; ` label ` stands in only where the header authors no title or its title restates the page label |
421+ | ** subtitle** | ` string ` | optional | Translated ` page:header ` subtitle |
422+ | ** components** | ` Record<string, { title?: string; description?: string; label?: string; placeholder?: string; … }> ` | optional | Per-component copy keyed by component id (` PageComponentSchema.id ` ) |
423+
424+ ### Nested Shape: ` ServedTranslationData.flows[string] `
425+
426+ | Property | Type | Required | Description |
427+ | :--- | :--- | :--- | :--- |
428+ | ** label** | ` string ` | optional | Translated flow label |
429+ | ** successMessage** | ` string ` | optional | Translated completion toast — overlays the flow's own ` successMessage ` , a plain string the engine carries verbatim on the terminal result; only a flow that authors one is translated |
430+ | ** errorMessage** | ` string ` | optional | Translated failure toast — overlays the flow's own ` errorMessage ` , a plain string the engine carries verbatim on the terminal result; only a flow that authors one is translated |
431+ | ** screens** | ` Record<string, { title?: string; description?: string; fields?: Record<string, object> }> ` | optional | Screen translations keyed by screen node id (` FlowNode.id ` , the client's ` ScreenSpec.nodeId ` ) |
432+ | ** refusals** | ` Record<string, { message?: string }> ` | optional | Refusal translations keyed by the node id (` FlowNode.id ` ) of an ` end ` node declaring ` outcome: 'refused' ` |
433+ | ** approvals** | ` Record<string, { label?: string }> ` | optional | Approval-step translations keyed by the node id (` FlowNode.id ` ) of an ` approval ` node |
434+
435+ ### Nested Shape: ` ServedTranslationData.positions[string] `
436+
437+ | Property | Type | Required | Description |
438+ | :--- | :--- | :--- | :--- |
439+ | ** label** | ` string ` | optional | Translated position label — overlays the position's own ` label ` |
440+ | ** description** | ` string ` | optional | Translated position description — overlays the position's own ` description ` |
441+
442+ ### Nested Shape: ` ServedTranslationData.permissions[string] `
443+
444+ | Property | Type | Required | Description |
445+ | :--- | :--- | :--- | :--- |
446+ | ** label** | ` string ` | optional | Translated permission-set label — overlays the set's own ` label ` |
447+ | ** description** | ` string ` | optional | Translated permission-set description — overlays the set's own ` description ` |
448+
449+ ### Nested Shape: ` ServedTranslationData.settingsCommon `
450+
451+ | Property | Type | Required | Description |
452+ | :--- | :--- | :--- | :--- |
453+ | ** sourceLabels** | ` { env?: string; global?: string; tenant?: string; user?: string; … } ` | optional | Source badge labels by resolution layer |
454+
455+ ### Nested Shape: ` ServedTranslationData.settings[string] `
456+
457+ | Property | Type | Required | Description |
458+ | :--- | :--- | :--- | :--- |
459+ | ** title** | ` string ` | optional | Translated settings manifest title |
460+ | ** description** | ` string ` | optional | Translated settings manifest description |
461+ | ** groups** | ` Record<string, { title?: string; description?: string }> ` | optional | Group translations keyed by group key |
462+ | ** keys** | ` Record<string, { label?: string; help?: string; placeholder?: string; options?: Record<string, string> }> ` | optional | Per-setting field translations keyed by setting key |
463+ | ** actions** | ` Record<string, { label?: string; confirmText?: string; successMessage?: string }> ` | optional | Action button translations keyed by action id |
464+ | ** banners** | ` Record<string, { title?: string; text?: string }> ` | optional | Info banner translations keyed by the info_banner specifier id |
465+
466+
320467---
321468
322469## TranslationBundle
0 commit comments