Skip to content

Commit 5536a4a

Browse files
committed
feat(platform-objects): the Studio action form's submit-button label row, translated
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibzPbVCsG2npDkDqikd
1 parent b37222d commit 5536a4a

5 files changed

Lines changed: 17 additions & 1 deletion

File tree

‎packages/platform-objects/src/apps/translations/en.metadata-forms.generated.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1807,6 +1807,10 @@ export const enMetadataForms: NonNullable<TranslationData['metadataForms']> = {
18071807
label: "Description",
18081808
helpText: "Explanatory line under the title of this action's param dialog. On an action that collects params, the confirm question goes here rather than in confirmText — one dialog, not two. Not ai.description, which is the text an AI agent reads."
18091809
},
1810+
submitText: {
1811+
label: "Submit button label",
1812+
helpText: "Label of the submit button in this action's param dialog, the verb the button performs (e.g. \"Send\", \"Log Call\"). Only for an action that collects params. Leave empty to show \"Confirm\"."
1813+
},
18101814
confirmText: {
18111815
label: "Confirm Text",
18121816
helpText: "Confirmation message (e.g., \"Are you sure?\")"

‎packages/platform-objects/src/apps/translations/es-ES.metadata-forms.generated.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1807,6 +1807,10 @@ export const esESMetadataForms: NonNullable<TranslationData['metadataForms']> =
18071807
label: "Descripción",
18081808
helpText: "Línea explicativa bajo el título del diálogo de parámetros de esta acción. En una acción que recoge parámetros, la pregunta de confirmación va aquí y no en confirmText: un diálogo, no dos. No es ai.description, que es el texto que lee un agente de IA."
18091809
},
1810+
submitText: {
1811+
label: "Etiqueta del botón de envío",
1812+
helpText: "Etiqueta del botón de envío en el diálogo de parámetros de esta acción, el verbo que ejecuta el botón (p. ej., \"Enviar\", \"Registrar llamada\"). Solo para una acción que recoge parámetros. Déjalo vacío para mostrar \"Confirmar\"."
1813+
},
18101814
confirmText: {
18111815
label: "Texto de confirmación",
18121816
helpText: "Mensaje de confirmación (p. ej., \"Are you sure?\")"

‎packages/platform-objects/src/apps/translations/ja-JP.metadata-forms.generated.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1807,6 +1807,10 @@ export const jaJPMetadataForms: NonNullable<TranslationData['metadataForms']> =
18071807
label: "説明",
18081808
helpText: "このアクションのパラメーターダイアログのタイトル下に表示される説明文。パラメーターを収集するアクションでは、確認の問いを confirmText ではなくここに書きます(ダイアログは 2 つではなく 1 つ)。AI エージェントが読む ai.description とは別物です。"
18091809
},
1810+
submitText: {
1811+
label: "送信ボタンのラベル",
1812+
helpText: "このアクションのパラメーターダイアログにある送信ボタンのラベル。ボタンが行う操作を表す動詞です(例:「送信」「通話を記録」)。パラメーターを収集するアクションでのみ使用します。空のままにすると「確認」と表示されます。"
1813+
},
18101814
confirmText: {
18111815
label: "確認文",
18121816
helpText: "確認メッセージ(例: \"Are you sure?\")"

‎packages/platform-objects/src/apps/translations/zh-CN.metadata-forms.generated.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1807,6 +1807,10 @@ export const zhCNMetadataForms: NonNullable<TranslationData['metadataForms']> =
18071807
label: "描述",
18081808
helpText: "显示在此动作参数对话框标题下方的说明文字。对于会收集参数的动作,确认问题应写在这里而不是 confirmText 中——一个对话框,而不是两个。它不是 ai.description,后者是 AI 智能体读取的文字。"
18091809
},
1810+
submitText: {
1811+
label: "提交按钮文字",
1812+
helpText: "此动作参数对话框中提交按钮的文字,即按钮执行的动作(例如“发送”“记录通话”)。仅用于需要收集参数的动作。留空则显示“确认”。"
1813+
},
18101814
confirmText: {
18111815
label: "确认文本",
18121816
helpText: "执行前的确认提示(如 \"确定要执行吗?\")"

‎packages/spec/src/ui/action.form.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export const actionForm = defineForm({
118118
// so it takes the same plain row and the renderer derives the same face.
119119
// Not gated on `params`: the parse refuses the key beside an empty
120120
// `params` by name, so a misplaced label is refused, never kept unshown.
121-
{ field: 'submitText', helpText: 'Label of the submit button in this action\'s param dialog, the verb the button performs (e.g. "Send", "Log Call"). Only for an action that collects params. Leave empty to show "Confirm".' },
121+
{ field: 'submitText', label: 'Submit button label', helpText: 'Label of the submit button in this action\'s param dialog, the verb the button performs (e.g. "Send", "Log Call"). Only for an action that collects params. Leave empty to show "Confirm".' },
122122
{ field: 'confirmText', helpText: 'Confirmation message (e.g., "Are you sure?")' },
123123
{ field: 'successMessage', helpText: 'Success message after completion' },
124124
// `errorMessage` is the twin of the row above: same node (I18nLabel), same

0 commit comments

Comments
 (0)