Change messaging on welcome step of registration for under 13

This commit is contained in:
Georgi Angelov 2024-08-16 17:39:29 +03:00
parent 0fb18c4650
commit 7c67d95085
3 changed files with 9 additions and 2 deletions

View file

@ -307,6 +307,7 @@ class JoinFlow extends React.Component {
email={this.state.formData.email} email={this.state.formData.email}
sendAnalytics={this.sendAnalytics} sendAnalytics={this.sendAnalytics}
username={this.state.formData.username} username={this.state.formData.username}
under13={this.isUnder13()}
onNextStep={this.props.onCompleteRegistration} onNextStep={this.props.onCompleteRegistration}
/> />
</Progression> </Progression>

View file

@ -75,7 +75,11 @@ class WelcomeStep extends React.Component {
</div> </div>
<div className="join-flow-instructions"> <div className="join-flow-instructions">
<FormattedMessage <FormattedMessage
id="registration.welcomeStepInstructions" id={
this.props.under13 ?
"registration.welcomeStepInstructionsUnder13" :
"registration.welcomeStepInstructions"
}
values={{ values={{
email: this.props.email email: this.props.email
}} }}
@ -95,7 +99,8 @@ WelcomeStep.propTypes = {
intl: intlShape, intl: intlShape,
onNextStep: PropTypes.func, onNextStep: PropTypes.func,
sendAnalytics: PropTypes.func, sendAnalytics: PropTypes.func,
username: PropTypes.string username: PropTypes.string,
under13: PropTypes.bool
}; };
module.exports = injectIntl(WelcomeStep); module.exports = injectIntl(WelcomeStep);

View file

@ -263,6 +263,7 @@
"registration.welcomeStepDescription": "You have successfully set up a Scratch account! You are now a member of the class:", "registration.welcomeStepDescription": "You have successfully set up a Scratch account! You are now a member of the class:",
"registration.welcomeStepDescriptionNonEducator": "Youre now logged in! You can start exploring and creating projects.", "registration.welcomeStepDescriptionNonEducator": "Youre now logged in! You can start exploring and creating projects.",
"registration.welcomeStepInstructions": "Want to share and comment? Click the link on the email we sent to {email}.", "registration.welcomeStepInstructions": "Want to share and comment? Click the link on the email we sent to {email}.",
"registration.welcomeStepInstructionsUnder13": "Your parent/guardian needs to confirm your account within 10 days or you will lose access to Scratch. They need to click the link on the email we sent to {email}.",
"registration.welcomeStepPrompt": "To get started, click on the button below.", "registration.welcomeStepPrompt": "To get started, click on the button below.",
"registration.welcomeStepTitle": "Hurray! Welcome to Scratch!", "registration.welcomeStepTitle": "Hurray! Welcome to Scratch!",
"registration.welcomeStepTitleNonEducator": "Welcome to Scratch, {username}!", "registration.welcomeStepTitleNonEducator": "Welcome to Scratch, {username}!",