Refactor tasks translation file to have one placeholder per task-type

Fixes #979
This commit is contained in:
Alan Jean
2023-01-29 05:30:00 +04:00
parent 5e342cbbdf
commit ccf96fd843
2 changed files with 11 additions and 5 deletions
+5 -1
View File
@@ -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>
</>