Skip to content

Commit

Permalink
Merge pull request #10 from yeatmanlab/enh/add-task-name
Browse files Browse the repository at this point in the history
MP adding language
  • Loading branch information
richford authored Feb 22, 2024
2 parents b00d489 + 599d8d3 commit 3923417
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,18 @@ const preloadAudio = {
audio: [feedbackCorrect, feedbackIncorrect],
};

function getLanguage(language){
if(language === 'en'){
return 'English';
}
else{
return 'Spanish';
}
}

const getPid = {
type: surveyText,
preamble: `ROAR-MP <br> Language: ${getLanguage(language)}`,
questions: [
{
prompt: 'Participant ID:',
Expand Down

0 comments on commit 3923417

Please sign in to comment.