Files
deepseek-harness/packages/client/ui-question/src/client/locales.ts
T
Yif 7639f4cb68 feat(web): answerable ask_user_question flow with toolview verdict row
The pending question now owns exactly two surfaces: the redesigned
QuestionComposer takeover (footer pager, checkbox multi-select,
always-visible custom input, locale-injected bilingual chrome) collects
the answers, and a dedicated ask_user_question toolview row reports the
interaction outcome — waiting, N/M answered, cancelled (ASK_CANCELLED),
or interrupted with stopped semantics (ASK_ABORTED). PendingCard narrows
to approval waits only. Toolview leading icons and the hover chevron
unify on the tertiary label color, the checklist glyph matches the
14px figma extract, and dev-watch registers CSS modules so css-only
edits rebuild.
2026-07-29 14:12:01 +08:00

40 lines
1.4 KiB
TypeScript

/**
* Bilingual copy of the question composer, registered under the `question`
* namespace. Question/option text itself arrives from the model verbatim —
* these dictionaries cover only the chrome around it.
*/
import type { LocaleDict } from '@deepseek-ai/dsh-client-locale/client'
/** Namespace owning the question-composer copy. */
export const QUESTION_NS = 'question'
/** Simplified Chinese dictionary (the fallback locale). */
export const zh: LocaleDict = {
'dismiss': '放弃整组问题',
'pager.prev': '上一题',
'pager.next': '下一题',
'option.recommended': '推荐',
'custom.placeholder': '输入你的答案',
'error.incomplete': '请先完成这道问题。',
'error.empty': '请选择一个选项或填写自定义答案。',
'action.skip': '跳过本题',
'action.next': '下一题',
'action.submit': '提交',
'action.submitting': '正在提交…',
}
/** English dictionary. */
export const en: LocaleDict = {
'dismiss': 'Dismiss all questions',
'pager.prev': 'Previous question',
'pager.next': 'Next question',
'option.recommended': 'Recommended',
'custom.placeholder': 'Type your answer',
'error.incomplete': 'Please finish this question first.',
'error.empty': 'Choose an option or type a custom answer.',
'action.skip': 'Skip this question',
'action.next': 'Next',
'action.submit': 'Submit',
'action.submitting': 'Submitting…',
}