Skip to content

Commit 9a2cd4c

Browse files
authored
feat(i18n): update skipHint text for clarity in multiple languages (#801)
1 parent 17743dd commit 9a2cd4c

File tree

7 files changed

+11
-7
lines changed

7 files changed

+11
-7
lines changed

webview-ui/src/components/chat/MultipleChoiceForm.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { Button } from "@/components/ui"
33
import { cn } from "@/lib/utils"
44
import { useAppTranslation } from "@src/i18n/TranslationContext"
55
import type { MultipleChoiceData, MultipleChoiceResponse } from "@roo-code/types"
6+
import { Trans } from "react-i18next"
67

78
interface MultipleChoiceFormProps {
89
data: MultipleChoiceData
@@ -261,7 +262,10 @@ export const MultipleChoiceForm = ({ data, onSubmit, isAnswered = false }: Multi
261262
{/* Hint text */}
262263
{!submitted && (
263264
<div className="text-[10px] text-vscode-descriptionForeground leading-snug opacity-75">
264-
{t("chat:multipleChoice.skipHint")}
265+
<Trans
266+
i18nKey="chat:multipleChoice.skipHint"
267+
components={{ code: <span style={{ color: "#E64545" }}></span> }}
268+
/>
265269
</div>
266270
)}
267271
</div>

webview-ui/src/i18n/costrict-i18n/locales/en/chat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@
141141
"headerTitle": "CoStrict has the following questions for you:",
142142
"userSkipped": "Skipped",
143143
"userConfirmed": "Confirmed",
144-
"skipHint": "If none of the options meet your needs, you can click \"Skip\" or type your requirements in the input box below",
144+
"skipHint": "If none of the options meet your needs, <code>you can directly describe your requirements in the input box below</code>; <code>click \"Skip\" to skip this questionnaire</code>",
145145
"loading": "Preparing questions..."
146146
}
147147
}

webview-ui/src/i18n/costrict-i18n/locales/zh-CN/chat.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webview-ui/src/i18n/costrict-i18n/locales/zh-TW/chat.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webview-ui/src/i18n/locales/en/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@
460460
"capabilities": "Configure the capabilities and pricing for your custom OpenAI-compatible model. Be careful when specifying the model capabilities, as they can affect how Roo Code performs.",
461461
"maxTokens": {
462462
"label": "Max Output Tokens",
463-
"description": "Maximum number of tokens the model can generate in a response. (Specify -1 to allow the server to set the max tokens.)"
463+
"description": "Maximum number of tokens the model can generate in a response."
464464
},
465465
"contextWindow": {
466466
"label": "Context Window Size",

webview-ui/src/i18n/locales/zh-CN/settings.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webview-ui/src/i18n/locales/zh-TW/settings.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)