mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-27 01:25:52 -05:00
Translate placeholder
This commit is contained in:
parent
26e821214a
commit
c134a95de3
2 changed files with 16 additions and 11 deletions
|
@ -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)."
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue