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.
This commit is contained in:
Shantur Rathore
2026-01-26 12:26:12 +00:00
parent 33939f4096
commit 5b1e21345f
88 changed files with 2080 additions and 822 deletions

View File

@@ -2,12 +2,12 @@ import type { ToolRenderer } from "../types"
export const questionRenderer: ToolRenderer = {
tools: ["question"],
getAction: () => "Awaiting answers...",
getTitle({ toolState }) {
getAction: ({ t }) => t("toolCall.question.action.awaitingAnswers"),
getTitle({ toolState, t }) {
const state = toolState()
if (!state) return "Questions"
if (state.status === "completed") return "Questions"
return "Asking questions"
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