Skip to content

Commit

Permalink
Merge pull request #197 from lookit/feature/translations
Browse files Browse the repository at this point in the history
Feature/translations
  • Loading branch information
Kim Scott committed Dec 22, 2020
2 parents 88e40ff + 5e3b8e4 commit f82ef3c
Show file tree
Hide file tree
Showing 35 changed files with 3,862 additions and 848 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
lts/carbon
lts/dubnium
50 changes: 25 additions & 25 deletions app/components/consent-template002/template.hbs
Original file line number Diff line number Diff line change
@@ -1,44 +1,44 @@
<div class="center-text">
<span class="exp-text-medium">
Consent to participate in research: {{experiment.name}}
{{t "consent-template-2.header" }}: {{experiment.name}}
</span>
</div>

<br>
<div class="video-consent-body">

<p> Researchers led by {{PIName}} at {{institution}} are running this study, "{{experiment.name}}," on Lookit. </p>
<p> {{t "consent-template-2.intro-sentence" name=PIName institution=institution experiment=experiment.name }}</p>

<p class="exp-text-medium"> Purpose </p>
<p class="exp-text-medium"> {{t "consent-template-2.purpose-header" }} </p>
<p> {{purpose}} </p>

<p class="exp-text-medium"> Procedures </p>
<p> This study takes about {{experiment.duration}} to complete. {{procedures}} </p>
<p class="exp-text-medium"> {{t "consent-template-2.procedures-header" }} </p>
<p> {{t "consent-template-2.duration-statement" duration=experiment.duration }} {{procedures}} </p>

<p class="exp-text-medium"> Participation </p>
<p> You and your child are free to choose whether to be in this study. If you and your child choose to participate, it's okay to stop at any point during the session. Please pause or stop the session if your child becomes very fussy or does not want to participate! If this is a study with multiple sessions, it's okay not to complete all the sessions.</p>
<p class="exp-text-medium"> {{t "consent-template-2.participation-header" }} </p>
<p> {{t "consent-template-2.participation-content" }}</p>

<p class="exp-text-medium"> Payment </p>
<p class="exp-text-medium"> {{t "consent-template-2.payment-header" }} </p>
<p> {{payment}} </p>

<p class="exp-text-medium"> Data collection and webcam recording </p>
<p> During the session, you and your child will be recorded via your computer's webcam and microphone. Video recordings and other data you enter are sent securely to the Lookit platform and stored indefinitely. At the end of the session, you will be prompted to choose a privacy level for your webcam recordings. You will have the option to withdraw your video data at this point. You can view your past recordings on Lookit under "Studies" -> "Your past studies" at any time.</p>
<p>Data is stored securely on Lookit servers and by researchers. However, there is always a small risk that data transmitted over the internet may be intercepted or that the security of stored data may be compromised.</p>
<p>No video clips will be published or shared unless you allow this when selecting a privacy level. If we do not receive a consent recording (the video you'll make to the right) for this session and cannot verify that you agreed to participate, no other video from your session will be viewed.</p>
<p class="exp-text-medium"> {{t "consent-template-2.data-collection-header" }} </p>
<p> {{t "consent-template-2.data-collection-1" }}</p>
<p> {{t "consent-template-2.data-collection-2" }}</p>
<p> {{t "consent-template-2.data-collection-3" }}</p>

<p class="exp-text-medium"> Use of data by study researchers </p>
<p>The research group led by {{PIName}} at {{institution}} will have access to video and other data collected during this session. We will also have access to your account profile, demographic survey, and the child profile for the child who is participating, including changes you make in the future to any of this information. We may study your child's responses in connection with his or her previous responses to this or other studies run by our group, siblings' responses to this or other studies run by our group, or demographic survey responses.</p>
<p class="exp-text-medium"> {{t "consent-template-2.data-use-researchers-header" }} </p>
<p>{{t "consent-template-2.data-use-researchers-content" name=PIName institution=institution }}</p>
{{#if datause}}
<p>
{{datause}}
</p>
{{/if}}

<p class="exp-text-medium"> Use of data by Lookit </p>
<p> Because this study is being run on the Lookit platform, researchers working on the Lookit project at MIT will also have access to the data collected during this session, in addition to your account data, child profiles, and demographic survey responses. This data may be used by Lookit to detect and fix technical problems or identify new features that would be helpful; provide support to study researchers; assess data quality (for instance, how well an observer can tell which direction children are looking); evaluate the site's success in reaching a diverse population; and characterize family engagement (for instance, looking at what aspects of a study make parents more interested in coming back later). </p>
<p class="exp-text-medium"> {{t "consent-template-2.data-use-Lookit-header" }} </p>
<p> {{t "consent-template-2.data-use-Lookit-content" }} </p>

<p class="exp-text-medium"> Publication of results </p>
<p> The results of the research may be presented at scientific meetings or published in scientific journals. Raw data (for instance, looking times to the left and right of the screen) may be published when it cannot identify children. We never publish children's birthdates or names, and we never publish your demographic data in conjunction with your child's video. </p>
<p class="exp-text-medium"> {{t "consent-template-2.publication-header" }}</p>
<p> {{t "consent-template-2.publication-contents" }}</p>

{{#if additional_segments}}
{{#each additional_segments as |segment|}}
Expand All @@ -47,19 +47,19 @@
{{/each}}
{{/if}}

<p class="exp-text-medium"> Rights of research subjects </p>
<p class="exp-text-medium"> {{t "consent-template-2.research-subject-rights-header" }} </p>
<p> {{research_rights_statement}} </p>

{{#if gdpr}}
<p class="exp-text-medium"> General Data Protection Regulation (GDPR) information </p>
<p> As part of your participation, we will collect certain personal information about you, including: {{gdpr_personal_data}}. In addition, we will collect special category data, your personal information that is especially sensitive: {{gdpr_sensitive_data}}</p>
<p class="exp-text-medium"> {{t "consent-template-2.gdpr-header" }} </p>
<p> {{t "consent-template-2.gdpr-personal" }}: {{gdpr_personal_data}}. {{t "consent-template-2.gdpr-sensitive" }}: {{gdpr_sensitive_data}}</p>

<p>Your personal information will be transferred to the United States. You understand that the data protection and privacy laws of the United States may not offer you the same level of protection as those in your country of origin.</p>
<p> {{t "consent-template-2.gdpr-2" }} </p>
{{/if}}


<p class="exp-text-medium"> Researcher contact information </p>
<p> This study is run by {{PIName}} at {{institution}}. If you or your child have any questions or concerns about this study, or in the very unlikely event of a research-related injury, please contact {{PIContact}}. </p>
<p>If you or your child have any questions or concerns about the Lookit platform, please contact Kim Scott at kimscott@mit.edu or 617 324 4859.</p>
<p class="exp-text-medium"> {{t "consent-template-2.contact-header" }}</p>
<p> {{t "consent-template-2.contact-statement-1" name=PIName institution=institution contact=PIContact }} </p>
<p> {{t "consent-template-2.contact-statement-2" }}</p>

</div>
105 changes: 35 additions & 70 deletions app/components/consent-template005/template.hbs
Original file line number Diff line number Diff line change
@@ -1,25 +1,23 @@
<div class="center-text">
<span class="exp-text-medium">
Consent to participate in research: {{experiment.name}}
{{t "consent-template-5.header" }}: {{experiment.name}}
</span>
</div>

<br>
<div class="video-consent-body">

<p> Researchers led by {{PIName}} at {{institution}} are running this study, "{{experiment.name}}," on Lookit. </p>
<p> {{t "consent-template-5.intro-sentence" name=PIName institution=institution experiment=experiment.name }}</p>

<h2> Why we are running this study </h2>
<h2> {{t "consent-template-5.purpose-header" }}</h2>
<p> {{ exp-format purpose }} </p>

<h2> What happens during this study </h2>
<p> This study takes about {{ experiment.duration }} to complete. {{ exp-format procedures }} </p>
<h2> {{t "consent-template-5.procedures-header" }}</h2>
<p> {{t "consent-template-5.duration-statement" duration=experiment.duration }}</p>

<h2> Participation is voluntary </h2>
<h2> {{t "consent-template-5.participation-header" }}</h2>
<p>
You and your child are free to choose whether to be in this study. If you do choose to participate, it's okay to
stop at any point during the session. Please do pause or stop the session if your child becomes fussy or does
not want to participate!
{{t "consent-template-5.participation-content" }}
</p>
{{#if voluntary_participation}}<p> {{ exp-format voluntary_participation }} </p>{{/if}}

Expand All @@ -31,50 +29,34 @@
<h2> {{ benefits_header }} </h2>
<p> {{ exp-format payment }} </p>

<h2> Data collection and webcam recording </h2>
<h2> {{t "consent-template-5.data-collection-header" }} </h2>
<p>
During the session, you and your child will be recorded by your computer's webcam and microphone. These webcam
recordings, and other data like answers you enter in forms, are sent securely to the Lookit platform. You can
view your past recordings on Lookit under "Studies" -> "Your past studies" at any time.
{{t "consent-template-5.data-collection-1" }}
</p>
<p>
Data are stored securely on Lookit servers and by researchers, and are only shared as described in this
document. However, there is always a small risk that data transmitted over the internet may be intercepted or
that the security of stored data may be compromised.
{{t "consent-template-5.data-collection-2" }}
</p>

<h2> Who will be able to see your webcam recordings?</h2>
<h2> {{t "consent-template-5.video-privacy-header" }}</h2>
<p>
We will first check that you really agreed to participate by watching your consent recording. If we cannot
confirm that you agreed to participate, no one will view any other recordings from this session.
{{t "consent-template-5.video-privacy-consent" }}
</p>

<p>
At the end of the session, you will choose a privacy level for your webcam recordings. You can choose one of the
following privacy levels for your videos:
{{t "consent-template-5.video-privacy-overview" }}:
<ul>
<li>"Private": Researchers with access to your recordings will not share them with anyone else.</li>
<li>"Scientific": Researchers with access to your recordings may share them for scientific or educational
purposes, for instance showing an example in a class or during a scientific conference.
<li>"{{t "consent-template-5.video-privacy-Private" }}": {{t "consent-template-5.video-privacy-private-description" }}</li>
<li>"{{t "consent-template-5.video-privacy-Scientific" }}": {{t "consent-template-5.video-privacy-scientific-description" }}
</li>
<li>"Publicity": Researchers with access to your recordings may also share them for publicity, for instance in a
news segment about the research or to recruit more participants.
<li>"{{t "consent-template-5.video-privacy-Publicity" }}": {{t "consent-template-5.video-privacy-publicity-description" }}
</li>
</ul>
You will also have the option to withdraw your recordings. If you do, only your consent recording will be kept
and all other recordings will be deleted.
{{t "consent-template-5.video-privacy-withdraw" }}
</p>

{{#if include_databrary}}
<p>
Separately, you can opt in to give access to your recordings and other data to authorized users of the
secure data library Databrary. This means that other researchers besides the ones running this study will
have access to your recordings, and may be able to use them to answer other questions about
child development. Data sharing can lead to faster progress in research on human development and behavior.
Authorized Databrary researchers have to agree to maintain confidentiality and not use the data for
commercial purposes. If you have any questions about this data-sharing library, visit
<a href="https://nyu.databrary.org/" target="_blank" rel="noopener">Databrary</a> or email
ethics@databrary.org.
{{t "consent-template-5.databrary" htmlSafe=true }}
</p>
{{/if}}
{{#if additional_video_privacy_statement}}
Expand All @@ -83,40 +65,30 @@
</p>
{{/if}}

<h2> How we use your data </h2>
<h2> {{t "consent-template-5.data-use-researchers-header" }} </h2>
<p>
If you participate in this study, we (the research group led by {{PIName}} at {{institution}})
will have access to:
{{t "consent-template-5.data-use-researchers-content-1" name=PIName institution=institution }}
<ul>
<li> webcam recordings and other data collected during this session</li>
<li> your account profile and demographic survey</li>
<li> the child profile for the child who is participating</li>
<li> {{t "consent-template-5.data-use-researchers-item-1" }}</li>
<li> {{t "consent-template-5.data-use-researchers-item-2" }}</li>
<li> {{t "consent-template-5.data-use-researchers-item-3" }}</li>
</ul>
This includes changes you make in the future to any of this information. We may put different types of information
together to learn more about child development. For instance, if your child participates in multiple studies from
our group, we may look at how his or her responses compare across studies, or we may look at whether siblings tend
to respond similarly. We may also study connections between children’s responses and family demographic survey data.
{{t "consent-template-5.data-use-researchers-content-2" }}
</p>
{{#if datause}}
<p>
{{exp-format datause}}
</p>
{{/if}}

<h2> How Lookit uses your data </h2>
<h2> {{t "consent-template-5.data-use-Lookit-header" }}</h2>
<p>
The Lookit core team at MIT will also have access to the data collected during this session, in addition to your
account data. They use this data to run and improve Lookit, for instance to provide technical support, check how
well data collection is working, or see whether Lookit is reaching a diverse group of families. Lookit stores
data indefinitely unless you withdraw your recordings at the end of the study.
{{t "consent-template-5.data-use-Lookit-content" }}
</p>

<h2> Publishing the results of this study </h2>
<h2> {{t "consent-template-5.publication-header" }}</h2>
<p>
The results of this study may be presented at scientific meetings or published in scientific journals. We may
publish individual responses that cannot identify children, like looking times or sequences of button presses.
We never publish children’s birthdates or names. Even if you choose to share your recordings, we never publish
information that would make it possible to link recordings with your demographic data.
{{t "consent-template-5.publication-contents" }}
</p>

{{#if additional_segments}}
Expand All @@ -126,31 +98,24 @@
{{/each}}
{{/if}}

<h2> Your rights as a participant </h2>
<h2> {{t "consent-template-5.research-subject-rights-header" }}</h2>
<p> {{research_rights_statement}} </p>

{{#if gdpr}}
<h2> General Data Protection Regulation (GDPR) information </h2>
<p> As part of your participation, we will collect certain personal information about you,
including: {{exp-format gdpr_personal_data}}. In addition, we will collect special category data, your
personal information that is especially sensitive: {{exp-format gdpr_sensitive_data}}
</p>
<h2> {{t "consent-template-5.gdpr-header" }} </h2>
<p> {{t "consent-template-5.gdpr-personal" }}: {{exp-format gdpr_personal_data}}. {{t "consent-template-5.gdpr-sensitive" }}: {{exp-format gdpr_sensitive_data}} </p>
<p>
Your personal information will be transferred to the United States. The data protection
and privacy laws of the United States may not offer you the same level of protection as those in your
country of origin.
{{t "consent-template-5.gdpr-2" }}
</p>
{{/if}}


<h2> How to reach us </h2>
<h2> {{t "consent-template-5.contact-header" }}</h2>
<p>
This study is run by {{PIName}} at {{institution}}. If you or your child have any questions or concerns about
this study, or in the very unlikely event of a research-related injury, please contact {{PIContact}}.
{{t "consent-template-5.contact-statement-1" name=PIName institution=institution contact=PIContact }}
</p>
<p>
If you or your child have any questions or concerns about the Lookit platform, please contact Kim Scott at
lookit@mit.edu.
{{t "consent-template-5.contact-statement-2" }}
</p>

</div>
14 changes: 14 additions & 0 deletions app/components/exp-frame-base/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import SessionRecord from '../../mixins/session-record';
next=(action 'next')
exit=(action 'exit')
setLanguage=(action 'setLanguage')
previous=(action 'previous')
saveHandler=(action 'saveFrame')
extra=extra
Expand Down Expand Up @@ -490,6 +491,15 @@ let ExpFrameBase = Ember.Component.extend(FullScreen, SessionRecord, {
console.error(`Failed to compile frameSchemaProperties to use for validating researcher usage of frame type '${this.get('kind')}.`);
}

// Set the language (do this after generating properties to allow use of a generated language property)
if (this.get('language')) {
try {
this.sendAction('setLanguage', this.get('language'));
} catch (error) {
console.error(`Failed to set language to ISO code ${this.get('language')}`);
}
}

this.set('_oldFrameIndex', currentFrameIndex);
},

Expand Down Expand Up @@ -544,6 +554,10 @@ let ExpFrameBase = Ember.Component.extend(FullScreen, SessionRecord, {
return defaultParams;
},

_translate(text) {
return this.get('parentView').get('intl').lookup(text);
},

/**
* Any properties generated via a custom generateProperties function provided to this
* frame (e.g., a score you computed to decide on feedback). In general will be null.
Expand Down

0 comments on commit f82ef3c

Please sign in to comment.