You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6a8399c
Browse filesBrowse the repository at this point in the historyBrowse files
feat(spec, lint, i18n): an action answer table's column headers have a translation bundle key
9
+
10
+
Clause-②: yes (widening) — `ActionResultDialogTranslationSchema` and the action `preflight` translation node accept a new optional `columns` map, `columns.<field path>.<column path>` (both keys literal, dots included), beside `fields`; every bundle that parsed before parses unchanged and reads the same.
A `format: 'table'` field in an action's `resultDialog.fields` or `preflight.fields` declares `columns: [{ path, label }]`, and each column's `label` is translatable, but no bundle key carried it, so a table's headers stayed in the authored language in every locale. The key is `objects.<object>._actions.<action>.resultDialog.columns.<field path>.<column path>` (and `….preflight.columns.…`; `globalActions.<action>.…` for an object-less action):
-`os i18n extract` lists one key per labelled column, `os validate` refuses a column key that names no declared table field or column (`translation-target-unknown`), and `resolveActionResultDialog` / `resolveActionPreflight` (so `translateAction` and the served metadata) and the console's `useObjectLabel` overlay the translated header; a column with no key keeps its authored label.
24
+
- The platform bundles carry the nine column headers of `sys_user.import_sso_users`'s result table in every shipped locale.
Copy file name to clipboardExpand all lines: content/docs/protocol/kernel/i18n-standard.mdx
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1155,6 +1155,7 @@ beneath an action entry are judged the same way under either.
1155
1155
|`{action}.params.{param}.options.{value}`| an option's stored **`value`** in that param's inline `options` — a warning, as on a field. A param that references a `field` and declares no inline `options` takes the field's list when the dialog renders, so its option keys are not judged |
1156
1156
|`{action}.outcomeMessages.{outcome}`| an outcome the action's own `outcomeMessages` declares |
1157
1157
|`{action}.resultDialog.fields.{path}`| the literal `path` of a field the action's `resultDialog.fields[]` declares — dots included, so `client.secret` is one key |
1158
+
|`{action}.resultDialog.columns.{path}.{column}` / `{action}.preflight.columns.{path}.{column}`| a column header of a table: `{path}` the literal `path` of a `format: 'table'` field in that block's `fields[]`, `{column}` the literal `path` of one of its `columns[]` — dots included at both levels, so `columns.rows["error.message"]` is two keys deep, not three |
1158
1159
|`{action}.resultDialog.title` / `.description` / `.acknowledge`| an action that declares a `resultDialog`, whether or not the dialog sets that text itself — for an action that declares none, nothing reads the dialog's copy |
1159
1160
|`apps.{app}`| an app declared, or one a `navigationContributions` entry anywhere in the artifact contributes into — including an app owned outside the artifact; under an app that is only contributed into, `apps.{app}.label` may be left out (the owning package's label survives the merge) |
1160
1161
|`apps.{app}.navigation.{id}`| a navigation item `id` the app declares (nested `children` and `areas[]` included) or one contributed into it; under an app that is only contributed into, the contributed ids alone |
|**fields**|`Record<string, string>`| optional | Result field labels keyed by the literal field path declared in the action metadata (keys may contain dots) |
37
+
|**columns**|`Record<string, Record<string, string>>`| optional | Table column header labels: keyed by the literal path of a `format: 'table'` field, then by the literal path of one of its `columns[]` (keys may contain dots) |
37
38
38
39
39
40
---
@@ -136,8 +137,8 @@ Translation data for a single field
136
137
|**cancelText**|`string`| optional | Translated label of the dismiss button on the action's confirm or param dialog (the action must declare `confirmText` or `params`) |
137
138
|**outcomeMessages**|`Record<string, string>`| optional | Translated success copy per handler outcome, keyed by the snake_case outcome name the action's `outcomeMessages` declares |
@@ -241,8 +242,8 @@ Translation data for a single object
241
242
|**cancelText**|`string`| optional | Translated label of the dismiss button on the action's confirm or param dialog (the action must declare `confirmText` or `params`) |
242
243
|**outcomeMessages**|`Record<string, string>`| optional | Translated success copy per handler outcome, keyed by the snake_case outcome name the action's `outcomeMessages` declares |
@@ -421,8 +422,8 @@ Translation data for a single object
421
422
|**cancelText**|`string`| optional | Translated label of the dismiss button on the action's confirm or param dialog (the action must declare `confirmText` or `params`) |
422
423
|**outcomeMessages**|`Record<string, string>`| optional | Translated success copy per handler outcome, keyed by the snake_case outcome name the action's `outcomeMessages` declares |
@@ -664,8 +665,8 @@ Translation data for a single object
664
665
|**cancelText**|`string`| optional | Translated label of the dismiss button on the action's confirm or param dialog (the action must declare `confirmText` or `params`) |
665
666
|**outcomeMessages**|`Record<string, string>`| optional | Translated success copy per handler outcome, keyed by the snake_case outcome name the action's `outcomeMessages` declares |
@@ -876,8 +877,8 @@ Translation data for a single object
876
877
|**cancelText**|`string`| optional | Translated label of the dismiss button on the action's confirm or param dialog (the action must declare `confirmText` or `params`) |
877
878
|**outcomeMessages**|`Record<string, string>`| optional | Translated success copy per handler outcome, keyed by the snake_case outcome name the action's `outcomeMessages` declares |
Copy file name to clipboardExpand all lines: content/docs/ui/translations.mdx
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -76,6 +76,7 @@ export default defineStack({
76
76
| Bulk-action copy on a list view (button, confirm prompt, dialog fields) |`objects.<name>._views.<view>.bulkActions.<def>.label` / `.confirmText` / `.confirmLabel` / `.params.<param>.label` / `.help` / `.placeholder` — a bulk param's hint is `help`, not `helpText`|
| Action result dialogs (title / description / acknowledge / field labels) |`objects.<name>._actions.<action>.resultDialog`|
79
+
| Column headers of a table in an action's result dialog or preflight panel |`objects.<name>._actions.<action>.resultDialog.columns.<field path>.<column path>` / `.preflight.columns.<field path>.<column path>` — a sibling of `fields`, both paths written literally, dots included |
79
80
| Form sections |`objects.<name>._sections.<section>`|
0 commit comments