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.deletedBanner": "Note: This project is in the trash folder",
"project.moderationInfoLabel": "Moderation Info", "project.moderationInfoLabel": "Moderation Info",
"project.numScripts": "{number} scripts", "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} handleUpdate={onUpdate}
name="instructions" name="instructions"
placeholder="Tell people how to use your project (such as which keys to press)." placeholder={intl.formatMessage({
id: 'project.descriptionPlaceholder'
})}
type="textarea" type="textarea"
validationErrors={{ validationErrors={{
maxLength: 'Sorry description is too long' maxLength: intl.formatMessage({
// maxLength: props.intl.formatMessage({ id: 'project.descriptionMaxLength'
// id: 'project.descriptionMaxLength' })
// })
}} }}
validations={{ validations={{
// TODO: actual 5000 // TODO: actual 5000
@ -390,13 +391,14 @@ const PreviewPresentation = ({
)} )}
handleUpdate={onUpdate} handleUpdate={onUpdate}
name="description" 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" type="textarea"
validationErrors={{ validationErrors={{
maxLength: 'Sorry description is too long' maxLength: intl.formatMessage({
// maxLength: props.intl.formatMessage({ id: 'project.descriptionMaxLength'
// id: 'project.descriptionMaxLength' })
// })
}} }}
validations={{ validations={{
// TODO: actual 5000 // TODO: actual 5000