Files
CodeNomad/packages/ui/src/components/tool-call/renderers/question.tsx
Shantur Rathore 5b1e21345f feat(ui): localize UI strings
Converts hardcoded UI copy to i18n keys across the app, adds global translation for non-component modules, and splits the English catalog into feature modules with duplicate-key detection.
2026-01-26 12:26:12 +00:00

18 lines
617 B
TypeScript

import type { ToolRenderer } from "../types"
export const questionRenderer: ToolRenderer = {
tools: ["question"],
getAction: ({ t }) => t("toolCall.question.action.awaitingAnswers"),
getTitle({ toolState, t }) {
const state = toolState()
if (!state) return t("toolCall.question.title.questions")
if (state.status === "completed") return t("toolCall.question.title.questions")
return t("toolCall.question.title.askingQuestions")
},
renderBody() {
// The question tool UI is rendered by ToolCall itself so
// it can share the same layout for pending/completed.
return null
},
}