fix(i18n): add input placeholder translations for multiple languages (#11320)

feat(i18n): add input placeholder translations for multiple languages

- Introduced a new placeholder for the input field in various language files, providing guidance on message entry and command selection.
- Updated English, Chinese (Simplified and Traditional), German, Greek, Spanish, French, Japanese, Portuguese, and Russian translations to include the new input placeholder text.
- Adjusted the reference in the AgentSessionInputbar component to use the new translation key for consistency.
This commit is contained in:
beyondkmp 2025-11-17 11:51:04 +08:00 committed by GitHub
parent 31eec403f7
commit 139950e193
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
11 changed files with 31 additions and 1 deletions

View File

@ -27,6 +27,9 @@
"null_id": "Agent ID is null." "null_id": "Agent ID is null."
} }
}, },
"input": {
"placeholder": "Enter your message here, send with {{key}} - @ select path, / select command"
},
"list": { "list": {
"error": { "error": {
"failed": "Failed to list agents." "failed": "Failed to list agents."

View File

@ -27,6 +27,9 @@
"null_id": "智能体 ID 为空。" "null_id": "智能体 ID 为空。"
} }
}, },
"input": {
"placeholder": "在这里输入消息,按 {{key}} 发送 - @ 选择路径, / 选择命令"
},
"list": { "list": {
"error": { "error": {
"failed": "获取智能体列表失败" "failed": "获取智能体列表失败"

View File

@ -27,6 +27,9 @@
"null_id": "代理程式 ID 為空。" "null_id": "代理程式 ID 為空。"
} }
}, },
"input": {
"placeholder": "[to be translated]:Enter your message here, send with {{key}} - @ select path, / select command"
},
"list": { "list": {
"error": { "error": {
"failed": "無法列出代理程式。" "failed": "無法列出代理程式。"

View File

@ -27,6 +27,9 @@
"null_id": "Agent ID ist leer." "null_id": "Agent ID ist leer."
} }
}, },
"input": {
"placeholder": "[to be translated]:Enter your message here, send with {{key}} - @ select path, / select command"
},
"list": { "list": {
"error": { "error": {
"failed": "Agent-Liste abrufen fehlgeschlagen" "failed": "Agent-Liste abrufen fehlgeschlagen"

View File

@ -27,6 +27,9 @@
"null_id": "Το ID του πράκτορα είναι null." "null_id": "Το ID του πράκτορα είναι null."
} }
}, },
"input": {
"placeholder": "[to be translated]:Enter your message here, send with {{key}} - @ select path, / select command"
},
"list": { "list": {
"error": { "error": {
"failed": "Αποτυχία καταχώρησης πρακτόρων." "failed": "Αποτυχία καταχώρησης πρακτόρων."

View File

@ -27,6 +27,9 @@
"null_id": "El ID del agente es nulo." "null_id": "El ID del agente es nulo."
} }
}, },
"input": {
"placeholder": "[to be translated]:Enter your message here, send with {{key}} - @ select path, / select command"
},
"list": { "list": {
"error": { "error": {
"failed": "Error al listar agentes." "failed": "Error al listar agentes."

View File

@ -27,6 +27,9 @@
"null_id": "L'ID de l'agent est nul." "null_id": "L'ID de l'agent est nul."
} }
}, },
"input": {
"placeholder": "[to be translated]:Enter your message here, send with {{key}} - @ select path, / select command"
},
"list": { "list": {
"error": { "error": {
"failed": "Échec de la liste des agents." "failed": "Échec de la liste des agents."

View File

@ -27,6 +27,9 @@
"null_id": "エージェント ID が null です。" "null_id": "エージェント ID が null です。"
} }
}, },
"input": {
"placeholder": "[to be translated]:Enter your message here, send with {{key}} - @ select path, / select command"
},
"list": { "list": {
"error": { "error": {
"failed": "エージェントの一覧取得に失敗しました。" "failed": "エージェントの一覧取得に失敗しました。"

View File

@ -27,6 +27,9 @@
"null_id": "O ID do agente é nulo." "null_id": "O ID do agente é nulo."
} }
}, },
"input": {
"placeholder": "[to be translated]:Enter your message here, send with {{key}} - @ select path, / select command"
},
"list": { "list": {
"error": { "error": {
"failed": "Falha ao listar agentes." "failed": "Falha ao listar agentes."

View File

@ -27,6 +27,9 @@
"null_id": "ID агента равен null." "null_id": "ID агента равен null."
} }
}, },
"input": {
"placeholder": "[to be translated]:Enter your message here, send with {{key}} - @ select path, / select command"
},
"list": { "list": {
"error": { "error": {
"failed": "Не удалось получить список агентов." "failed": "Не удалось получить список агентов."

View File

@ -470,7 +470,7 @@ const AgentSessionInputbarInner: FC<InnerProps> = ({ assistant, agentId, session
) )
const placeholderText = useMemo( const placeholderText = useMemo(
() => () =>
t('chat.input.placeholder', { t('agent.input.placeholder', {
key: getSendMessageShortcutLabel(sendMessageShortcut) key: getSendMessageShortcutLabel(sendMessageShortcut)
}), }),
[sendMessageShortcut, t] [sendMessageShortcut, t]