diff --git a/src/views/preview/l10n.json b/src/views/preview/l10n.json index 270d15aa1..5935afaba 100644 --- a/src/views/preview/l10n.json +++ b/src/views/preview/l10n.json @@ -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)." } diff --git a/src/views/preview/presentation.jsx b/src/views/preview/presentation.jsx index 1190b5bfd..96f83e201 100644 --- a/src/views/preview/presentation.jsx +++ b/src/views/preview/presentation.jsx @@ -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