Skip to content

Commit

Permalink
Remove knowledge of HTML
Browse files Browse the repository at this point in the history
Refs #1817, 8ecf324; reverts eb0a35e
  • Loading branch information
thewilkybarkid committed Dec 10, 2024
1 parent eb0a35e commit 95c3afe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions locales/en-US/write-review.json
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@
"message": "Continue"
},
"asYouHaveAlreadyStarted": {
"message": "As you’ve already started a PREreview of <cite>{preprintTitle}</cite>, we’ll take you to the next step so you can carry&nbsp;on."
"message": "As you’ve already started a PREreview of <cite>{preprintTitle}</cite>, we’ll take you to the next step so you can carry on."
},
"authorsTitle": {
"message": "Did you review this preprint with anyone else? – PREreview of “{preprintTitle}”"
Expand All @@ -273,7 +273,7 @@
"message": "Confirm that the other authors have read and approved the PREreview"
},
"didYouReviewWithAnyoneElse": {
"message": "Did you review this preprint with anyone&nbsp;else?"
"message": "Did you review this preprint with anyone else?"
},
"thisCanIncludePeopleWho": {
"message": "This can include people who contributed to the discussion or wrote the review."
Expand Down Expand Up @@ -336,13 +336,13 @@
"message": "Code of Conduct – PREreview of “{preprintTitle}”"
},
"confirmCodeOfConduct": {
"message": "Confirm that you are following the Code&nbsp;of&nbsp;Conduct"
"message": "Confirm that you are following the Code of Conduct"
},
"codeOfConduct": {
"message": "Code of Conduct"
},
"expectYouToAbideByCodeOfConduct": {
"message": "As a member of our community, we expect you to abide by the <link>PREreview Code&nbsp;of&nbsp;Conduct</link>."
"message": "As a member of our community, we expect you to abide by the <link>PREreview Code of Conduct</link>."
},
"examplesOfExpectedBehaviour": {
"message": "Examples of expected behaviors"
Expand Down Expand Up @@ -387,6 +387,6 @@
"message": "Other conduct which could reasonably be considered inappropriate in a professional setting."
},
"iAmFollowingCodeOfConduct": {
"message": "I’m following the Code&nbsp;of&nbsp;Conduct"
"message": "I’m following the Code of Conduct"
}
}
6 changes: 3 additions & 3 deletions src/write-review/write-review-conduct.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ function codeOfConductForm(preprint: PreprintTitle, form: CodeOfConductForm, use
<div class="error-message" id="conduct-error">
<span class="visually-hidden">${t('write-review', 'error')()}</span>
${match(form.conduct.left)
.with({ _tag: 'MissingE' }, () => rawHtml(t('write-review', 'confirmCodeOfConduct')()))
.with({ _tag: 'MissingE' }, t('write-review', 'confirmCodeOfConduct'))
.exhaustive()}
</div>
`
Expand All @@ -199,7 +199,7 @@ function codeOfConductForm(preprint: PreprintTitle, form: CodeOfConductForm, use
.with({ right: 'yes' }, () => 'checked')
.otherwise(() => '')}
/>
<span>${rawHtml(t('write-review', 'iAmFollowingCodeOfConduct')())}</span>
<span>${t('write-review', 'iAmFollowingCodeOfConduct')()}</span>
</label>
</fieldset>
</div>
Expand All @@ -221,7 +221,7 @@ const toErrorItems = (locale: SupportedLocale) => (form: CodeOfConductForm) => h
<li>
<a href="#conduct-yes">
${match(form.conduct.left)
.with({ _tag: 'MissingE' }, () => rawHtml(translate(locale, 'write-review', 'confirmCodeOfConduct')()))
.with({ _tag: 'MissingE' }, translate(locale, 'write-review', 'confirmCodeOfConduct'))
.exhaustive()}
</a>
</li>
Expand Down

0 comments on commit 95c3afe

Please sign in to comment.