Translate placeholder

This commit is contained in:
apple502j 2018-12-11 20:41:49 +09:00
parent 26e821214a
commit c134a95de3
2 changed files with 16 additions and 11 deletions

View file

@ -29,5 +29,8 @@
"project.deletedBanner": "Note: This project is in the trash folder",
"project.moderationInfoLabel": "Moderation Info",
"project.numScripts": "{number} scripts",
"project.numSprites": "{number} sprites"
"project.numSprites": "{number} sprites",
"project.descriptionMaxLength": "Description is too long",
"project.notesPlaceholder": "How did you make this project? Did you use ideas, scripts or artwork from other people? Thank them here.",
"project.descriptionPlaceholder": "Tell people how to use your project (such as which keys to press)."
}

View file

@ -349,13 +349,14 @@ const PreviewPresentation = ({
)}
handleUpdate={onUpdate}
name="instructions"
placeholder="Tell people how to use your project (such as which keys to press)."
placeholder={intl.formatMessage({
id: 'project.descriptionPlaceholder'
})}
type="textarea"
validationErrors={{
maxLength: 'Sorry description is too long'
// maxLength: props.intl.formatMessage({
// id: 'project.descriptionMaxLength'
// })
maxLength: intl.formatMessage({
id: 'project.descriptionMaxLength'
})
}}
validations={{
// TODO: actual 5000
@ -390,13 +391,14 @@ const PreviewPresentation = ({
)}
handleUpdate={onUpdate}
name="description"
placeholder="How did you make this project? Did you use ideas scripts or artwork from other people? Thank them here."
placeholder={intl.formatMessage({
id: 'project.notesPlaceholder'
})}
type="textarea"
validationErrors={{
maxLength: 'Sorry description is too long'
// maxLength: props.intl.formatMessage({
// id: 'project.descriptionMaxLength'
// })
maxLength: intl.formatMessage({
id: 'project.descriptionMaxLength'
})
}}
validations={{
// TODO: actual 5000