mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-07-17 11:23:49 +08:00
Refactor tasks translation file to have one placeholder per task-type
Fixes #979
This commit is contained in:
@@ -58,7 +58,11 @@ export const CreateTask = ({
|
||||
text={inputText}
|
||||
onTextChange={textChangeHandler}
|
||||
thresholds={{ low: 20, medium: 40, goal: 50 }}
|
||||
textareaProps={{ placeholder: t("tasks:write_initial_prompt"), isDisabled, isReadOnly: !isEditable }}
|
||||
textareaProps={{
|
||||
placeholder: t(getTypeSafei18nKey(`tasks:${taskType.id}.response_placeholder`)),
|
||||
isDisabled,
|
||||
isReadOnly: !isEditable,
|
||||
}}
|
||||
/>
|
||||
</Stack>
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user