diff --git a/locales/en-US/add-author-form.json b/locales/en-US/add-author-form.json
deleted file mode 100644
index 8be09251e..000000000
--- a/locales/en-US/add-author-form.json
+++ /dev/null
@@ -1,35 +0,0 @@
-{
- "title": {
- "message": "Add an author – PREreview of “{preprintTitle}”"
- },
- "enterTheirName": {
- "message": "Enter their name"
- },
- "enterTheirEmail": {
- "message": "Enter their email address"
- },
- "invalidEmail": {
- "message": "Enter an email address in the correct format, like name@example.com"
- },
- "addAuthor": {
- "message": "Add an author"
- },
- "nameInputLabel": {
- "message": "Name"
- },
- "theyWillChooseTheirName": {
- "message": "They will be able to choose their published name."
- },
- "emailAddress": {
- "message": "Email address"
- },
- "useOfEmail": {
- "message": "We’ll only use this to contact them about this PREreview."
- },
- "error": {
- "message": "Error"
- },
- "saveAndContinue": {
- "message": "Save and continue"
- }
-}
diff --git a/locales/en-US/add-authors-form.json b/locales/en-US/add-authors-form.json
deleted file mode 100644
index e80733337..000000000
--- a/locales/en-US/add-authors-form.json
+++ /dev/null
@@ -1,47 +0,0 @@
-{
- "title": {
- "message": "Error: You have added {authorCount, number} other {authorCount, plural, one {author} other {authors}} – PREreview of “{preprintTitle}”"
- },
- "back": {
- "message": "Back"
- },
- "errorSummaryTitle": {
- "message": "There is a problem"
- },
- "yesIfAnotherAuthor": {
- "message": "Select yes if you need to add another author"
- },
- "addedAuthorCount": {
- "message": "You have added {authorCount, number} other {authorCount, plural, one {author} other {authors}}"
- },
- "authorNumber": {
- "message": "Author {number, number}"
- },
- "changeAuthorDetails": {
- "message": "Change {name}’s details"
- },
- "removeAuthor": {
- "message": "Remove {name}"
- },
- "name": {
- "message": "Name"
- },
- "emailAddress": {
- "message": "Email address"
- },
- "needToAddAuthor": {
- "message": "Do you need to add another author?"
- },
- "error": {
- "message": "Error:"
- },
- "no": {
- "message": "No"
- },
- "yes": {
- "message": "Yes"
- },
- "continueButton": {
- "message": "Continue"
- }
-}
diff --git a/locales/en-US/change-author-form.json b/locales/en-US/change-author-form.json
deleted file mode 100644
index b6b111b1e..000000000
--- a/locales/en-US/change-author-form.json
+++ /dev/null
@@ -1,32 +0,0 @@
-{
- "title": {
- "message": "Change {name}’s details – PREreview of “{preprintTitle}”"
- },
- "enterName": {
- "message": "Enter their name"
- },
- "enterEmail": {
- "message": "Enter their email address"
- },
- "invalidEmail": {
- "message": "Enter an email address in the correct format, like name@example.com"
- },
- "changeAuthorDetails": {
- "message": "Change {name}’s details"
- },
- "name": {
- "message": "Name"
- },
- "ableToChoseName": {
- "message": "They will be able to choose their published name."
- },
- "error": {
- "message": "Error"
- },
- "emailAddress": {
- "message": "Email address"
- },
- "useOfEmail": {
- "message": "We’ll only use this to contact them about this PREreview."
- }
-}
diff --git a/locales/en-US/publish-form.json b/locales/en-US/publish-form.json
deleted file mode 100644
index d1ba6b796..000000000
--- a/locales/en-US/publish-form.json
+++ /dev/null
@@ -1,104 +0,0 @@
-{
- "title": {
- "message": "Publish your PREreview of “{preprintTitle}”"
- },
- "checkPrereview": {
- "message": "Check your PREreview"
- },
- "preprintDetails": {
- "message": "Preprint details"
- },
- "preprintTitle": {
- "message": "Title"
- },
- "preprintServer": {
- "message": "Preprint server"
- },
- "authorDetails": {
- "message": "Author details"
- },
- "yourDetails": {
- "message": "Your details"
- },
- "yourPublishedName": {
- "message": "Your published name"
- },
- "publishedName": {
- "message": "Published name"
- },
- "changeName": {
- "message": "Change name"
- },
- "changeInvitedAuthors": {
- "message": "Change invited authors"
- },
- "changeCompetingInterests": {
- "message": "Change competing interests"
- },
- "changePrereview": {
- "message": "Change PREreview"
- },
- "doesIntroductionExplain": {
- "message": "Does the introduction explain the objective of the research presented in the preprint?"
- },
- "changeIfIntroExplains": {
- "message": "Change if the introduction explains the objective of the research presented in the preprint"
- },
- "methodsWellSuited": {
- "message": "Are the methods well-suited for this research?"
- },
- "changeMethodsWellSuited": {
- "message": "Change if the methods are well-suited for this research"
- },
- "conclusionsSupported": {
- "message": "Are the conclusions supported by the data?"
- },
- "changeConclusionsSupported": {
- "message": "Change if the conclusions are supported by the data"
- },
- "dataPresentationWellSuited": {
- "message": "Are the data presentations, including visualizations, well-suited to represent the data?"
- },
- "changeDataPresentationWellSuited": {
- "message": "Change if the data presentations are well-suited to represent the data?"
- },
- "clearDiscussion": {
- "message": "How clearly do the authors discuss, explain, and interpret their findings and potential next steps for the research?"
- },
- "changeClearDiscussion": {
- "message": "Change how clearly the authors discuss their findings and next steps"
- },
- "advanceKnowledge": {
- "message": "Is the preprint likely to advance academic knowledge?"
- },
- "changeAdvanceKnowledge": {
- "message": "Change if the preprint is likely to advance academic knowledge"
- },
- "benefitFromEditing": {
- "message": "Would it benefit from language editing?"
- },
- "changeBenefitFromEditing": {
- "message": "Change if it would benefit from language editing"
- },
- "wouldRecommend": {
- "message": "Would you recommend this preprint to others?"
- },
- "changeWouldRecommend": {
- "message": "Change if you would recommend this preprint to others"
- },
- "readyForAttention": {
- "message": "Is it ready for attention from an editor, publisher or broader audience?"
- },
- "changeReadyForAttention": {
- "message": "Change it it is ready for attention from an editor, publisher or broader audience"
- },
- "nowPublish": {
- "message": "Now publish your PREreview"
- },
- "weWillAssignLicense": {
- "message": "We will assign your PREreview a DOI (a permanent identifier) and make it publicly available under a {licenseLink} license."
- },
- "publishButton": {
- "message": "Publish PREreview"
- }
-}
diff --git a/locales/en-US/published-page.json b/locales/en-US/published-page.json
deleted file mode 100644
index 558802ffc..000000000
--- a/locales/en-US/published-page.json
+++ /dev/null
@@ -1,53 +0,0 @@
-{
- "title": {
- "message": "PREreview published"
- },
- "yourDoi": {
- "message": "Your DOI"
- },
- "whatHappensNext": {
- "message": "What happens next"
- },
- "whereYouCanSeeYourPrereview": {
- "message": "You’ll be able to see your PREreview shortly. It’ll also appear on our {communitySlackLink}{isScietyPreprint, boolean, true { and {scietyLink}} false {}}."
- },
- "communitySlack": {
- "message": "Community Slack"
- },
- "opensInNewTab": {
- "message": "opens in a new tab"
- },
- "letUsKnowAuthorDetails": {
- "message": "Please let us know the other authors’ details (names and ORCID iDs), and we’ll add them to the PREreview. Our email address is {mailtoHelp}."
- },
- "sentEmailsToAuthors": {
- "message": "We’ve sent emails to the other authors, inviting them to appear."
- },
- "shareYourReview": {
- "message": "Share your review"
- },
- "letCommunityKnow": {
- "message": "Let the community know that you published your review."
- },
- "writeATweet": {
- "message": "Write a Tweet"
- },
- "shareOnLinkedin": {
- "message": "Share it on LinkedIn"
- },
- "listOnSciety": {
- "message": "List it on Sciety"
- },
- "howItWent": {
- "message": "Let us know how it went"
- },
- "scheduleAnInterview": {
- "message": "Schedule an interview with our product team to discuss your experience on PREreview. We gladly compensate interviewees in appreciation for their help!"
- },
- "backToPreprint": {
- "message": "Back to preprint"
- },
- "skipToMain": {
- "message": "Skip to main content"
- }
-}
diff --git a/locales/en-US/write-review-shared.json b/locales/en-US/write-review-shared.json
deleted file mode 100644
index 9785f736c..000000000
--- a/locales/en-US/write-review-shared.json
+++ /dev/null
@@ -1,14 +0,0 @@
-{
- "errorPrefix": {
- "message": "Error: "
- },
- "backNav": {
- "message": "Back"
- },
- "errorSummaryTitle": {
- "message": "There is a problem"
- },
- "saveAndContinue": {
- "message": "Save and continue"
- }
-}
diff --git a/locales/en-US/write-review.json b/locales/en-US/write-review.json
new file mode 100644
index 000000000..6a43589f0
--- /dev/null
+++ b/locales/en-US/write-review.json
@@ -0,0 +1,248 @@
+{
+ "addAuthorTitle": {
+ "message": "Add an author – PREreview of “{preprintTitle}”"
+ },
+ "enterTheirName": {
+ "message": "Enter their name"
+ },
+ "enterTheirEmail": {
+ "message": "Enter their email address"
+ },
+ "invalidEmail": {
+ "message": "Enter an email address in the correct format, like name@example.com"
+ },
+ "addAuthor": {
+ "message": "Add an author"
+ },
+ "nameInputLabel": {
+ "message": "Name"
+ },
+ "theyWillChooseTheirName": {
+ "message": "They will be able to choose their published name."
+ },
+ "emailAddress": {
+ "message": "Email address"
+ },
+ "useOfEmail": {
+ "message": "We’ll only use this to contact them about this PREreview."
+ },
+ "saveAndContinue": {
+ "message": "Save and continue"
+ },
+ "addAuthorsTitle": {
+ "message": "Error: You have added {authorCount, number} other {authorCount, plural, one {author} other {authors}} – PREreview of “{preprintTitle}”"
+ },
+ "back": {
+ "message": "Back"
+ },
+ "errorSummaryTitle": {
+ "message": "There is a problem"
+ },
+ "yesIfAnotherAuthor": {
+ "message": "Select yes if you need to add another author"
+ },
+ "addedAuthorCount": {
+ "message": "You have added {authorCount, number} other {authorCount, plural, one {author} other {authors}}"
+ },
+ "authorNumber": {
+ "message": "Author {number, number}"
+ },
+ "changeAuthorDetailsLink": {
+ "message": "Change {name}’s details"
+ },
+ "removeAuthor": {
+ "message": "Remove {name}"
+ },
+ "name": {
+ "message": "Name"
+ },
+ "needToAddAuthor": {
+ "message": "Do you need to add another author?"
+ },
+ "no": {
+ "message": "No"
+ },
+ "yes": {
+ "message": "Yes"
+ },
+ "continueButton": {
+ "message": "Continue"
+ },
+ "changeAuthorTitle": {
+ "message": "Change {name}’s details – PREreview of “{preprintTitle}”"
+ },
+ "enterName": {
+ "message": "Enter their name"
+ },
+ "enterEmail": {
+ "message": "Enter their email address"
+ },
+ "changeAuthorDetailsHeading": {
+ "message": "Change {name}’s details"
+ },
+ "ableToChoseName": {
+ "message": "They will be able to choose their published name."
+ },
+ "error": {
+ "message": "Error"
+ },
+ "errorPrefix": {
+ "message": "Error: "
+ },
+ "backNav": {
+ "message": "Back"
+ },
+ "prereviewPublishedTitle": {
+ "message": "PREreview published"
+ },
+ "yourDoi": {
+ "message": "Your DOI"
+ },
+ "whatHappensNext": {
+ "message": "What happens next"
+ },
+ "whereYouCanSeeYourPrereview": {
+ "message": "You’ll be able to see your PREreview shortly. It’ll also appear on our {communitySlackLink}{isScietyPreprint, boolean, true { and {scietyLink}} false {}}."
+ },
+ "communitySlack": {
+ "message": "Community Slack"
+ },
+ "opensInNewTab": {
+ "message": "opens in a new tab"
+ },
+ "letUsKnowAuthorDetails": {
+ "message": "Please let us know the other authors’ details (names and ORCID iDs), and we’ll add them to the PREreview. Our email address is {mailtoHelp}."
+ },
+ "sentEmailsToAuthors": {
+ "message": "We’ve sent emails to the other authors, inviting them to appear."
+ },
+ "shareYourReview": {
+ "message": "Share your review"
+ },
+ "letCommunityKnow": {
+ "message": "Let the community know that you published your review."
+ },
+ "writeATweet": {
+ "message": "Write a Tweet"
+ },
+ "shareOnLinkedin": {
+ "message": "Share it on LinkedIn"
+ },
+ "listOnSciety": {
+ "message": "List it on Sciety"
+ },
+ "howItWent": {
+ "message": "Let us know how it went"
+ },
+ "scheduleAnInterview": {
+ "message": "Schedule an interview with our product team to discuss your experience on PREreview. We gladly compensate interviewees in appreciation for their help!"
+ },
+ "backToPreprint": {
+ "message": "Back to preprint"
+ },
+ "skipToMain": {
+ "message": "Skip to main content"
+ },
+ "publishTitle": {
+ "message": "Publish your PREreview of “{preprintTitle}”"
+ },
+ "checkPrereview": {
+ "message": "Check your PREreview"
+ },
+ "preprintDetails": {
+ "message": "Preprint details"
+ },
+ "preprintTitle": {
+ "message": "Title"
+ },
+ "preprintServer": {
+ "message": "Preprint server"
+ },
+ "authorDetails": {
+ "message": "Author details"
+ },
+ "yourDetails": {
+ "message": "Your details"
+ },
+ "yourPublishedName": {
+ "message": "Your published name"
+ },
+ "publishedName": {
+ "message": "Published name"
+ },
+ "changeName": {
+ "message": "Change name"
+ },
+ "changeInvitedAuthors": {
+ "message": "Change invited authors"
+ },
+ "changeCompetingInterests": {
+ "message": "Change competing interests"
+ },
+ "changePrereview": {
+ "message": "Change PREreview"
+ },
+ "doesIntroductionExplain": {
+ "message": "Does the introduction explain the objective of the research presented in the preprint?"
+ },
+ "changeIfIntroExplains": {
+ "message": "Change if the introduction explains the objective of the research presented in the preprint"
+ },
+ "methodsWellSuited": {
+ "message": "Are the methods well-suited for this research?"
+ },
+ "changeMethodsWellSuited": {
+ "message": "Change if the methods are well-suited for this research"
+ },
+ "conclusionsSupported": {
+ "message": "Are the conclusions supported by the data?"
+ },
+ "changeConclusionsSupported": {
+ "message": "Change if the conclusions are supported by the data"
+ },
+ "dataPresentationWellSuited": {
+ "message": "Are the data presentations, including visualizations, well-suited to represent the data?"
+ },
+ "changeDataPresentationWellSuited": {
+ "message": "Change if the data presentations are well-suited to represent the data?"
+ },
+ "clearDiscussion": {
+ "message": "How clearly do the authors discuss, explain, and interpret their findings and potential next steps for the research?"
+ },
+ "changeClearDiscussion": {
+ "message": "Change how clearly the authors discuss their findings and next steps"
+ },
+ "advanceKnowledge": {
+ "message": "Is the preprint likely to advance academic knowledge?"
+ },
+ "changeAdvanceKnowledge": {
+ "message": "Change if the preprint is likely to advance academic knowledge"
+ },
+ "benefitFromEditing": {
+ "message": "Would it benefit from language editing?"
+ },
+ "changeBenefitFromEditing": {
+ "message": "Change if it would benefit from language editing"
+ },
+ "wouldRecommend": {
+ "message": "Would you recommend this preprint to others?"
+ },
+ "changeWouldRecommend": {
+ "message": "Change if you would recommend this preprint to others"
+ },
+ "readyForAttention": {
+ "message": "Is it ready for attention from an editor, publisher or broader audience?"
+ },
+ "changeReadyForAttention": {
+ "message": "Change it it is ready for attention from an editor, publisher or broader audience"
+ },
+ "nowPublish": {
+ "message": "Now publish your PREreview"
+ },
+ "weWillAssignLicense": {
+ "message": "We will assign your PREreview a DOI (a permanent identifier) and make it publicly available under a {licenseLink} license."
+ },
+ "publishButton": {
+ "message": "Publish PREreview"
+ }
+}
diff --git a/src/write-review/add-author-page/add-author-form.ts b/src/write-review/add-author-page/add-author-form.ts
index 0f78123fb..b1bbad3ba 100644
--- a/src/write-review/add-author-page/add-author-form.ts
+++ b/src/write-review/add-author-page/add-author-form.ts
@@ -31,7 +31,7 @@ export function addAuthorForm({
return StreamlinePageResponse({
status: error ? Status.BadRequest : Status.OK,
title: pipe(
- t('add-author-form', 'title')({ preprintTitle: preprint.title.toString() }),
+ t('write-review', 'addAuthorTitle')({ preprintTitle: preprint.title.toString() }),
errorPrefix(locale, error),
plainText,
),
@@ -40,20 +40,18 @@ export function addAuthorForm({
`,
diff --git a/src/write-review/published-page/published-page.ts b/src/write-review/published-page/published-page.ts
index 9d670a5b5..81f4391f1 100644
--- a/src/write-review/published-page/published-page.ts
+++ b/src/write-review/published-page/published-page.ts
@@ -22,9 +22,9 @@ export const publishedPage = ({
locale: SupportedLocale
}) => {
const t = translate(locale)
- const opensInNewTab = t('published-page', 'opensInNewTab')()
+ const opensInNewTab = t('write-review', 'opensInNewTab')()
const communitySlackLink = html`${t('published-page', 'communitySlack')()} (${opensInNewTab})${t('write-review', 'communitySlack')()} (${opensInNewTab})`.toString()
const scietyLink = html`Sciety (${opensInNewTab})`.toString()
return templatePage({
- title: plainText(t('published-page', 'title')()),
+ title: plainText(t('write-review', 'prereviewPublishedTitle')()),
content: html`
-
${t('published-page', 'title')()}
+
${t('write-review', 'prereviewPublishedTitle')()}
- ${t('published-page', 'yourDoi')()}
+ ${t('write-review', 'yourDoi')()}
${doi}
- ${t('published-page', 'whatHappensNext')()}
+ ${t('write-review', 'whatHappensNext')()}
${rawHtml(
t(
- 'published-page',
+ 'write-review',
'whereYouCanSeeYourPrereview',
)({ communitySlackLink, scietyLink, isScietyPreprint: isScietyPreprint(preprint.id) }),
)}
@@ -60,16 +60,16 @@ export const publishedPage = ({
${form.moreAuthors === 'yes' && form.otherAuthors.length === 0
? html`
-
${t('published-page', 'letUsKnowAuthorDetails')({ mailtoHelp })}
+
${t('write-review', 'letUsKnowAuthorDetails')({ mailtoHelp })}
`
: form.moreAuthors === 'yes' && form.otherAuthors.length > 0
- ? html`${t('published-page', 'sentEmailsToAuthors')()}
`
+ ? html`${t('write-review', 'sentEmailsToAuthors')()}
`
: ''}
- ${t('published-page', 'shareYourReview')()}
+ ${t('write-review', 'shareYourReview')()}
- ${t('published-page', 'letCommunityKnow')()}
+ ${t('write-review', 'letCommunityKnow')()}
- ${t('published-page', 'howItWent')()}
+ ${t('write-review', 'howItWent')()}
${rawHtml(
t(
- 'published-page',
+ 'write-review',
'scheduleAnInterview',
)({
link: (s: string) =>
@@ -122,11 +122,11 @@ export const publishedPage = ({
${t('published-page', 'backToPreprint')()}${t('write-review', 'backToPreprint')()}
`,
- skipLinks: [[html`${t('published-page', 'skipToMain')()}`, '#main-content']],
+ skipLinks: [[html`${t('write-review', 'skipToMain')()}`, '#main-content']],
type: 'streamline',
user,
})
diff --git a/src/write-review/shared-elements.ts b/src/write-review/shared-elements.ts
index 4b5a5f6f2..9df681796 100644
--- a/src/write-review/shared-elements.ts
+++ b/src/write-review/shared-elements.ts
@@ -3,14 +3,14 @@ import { type Html, html } from '../html.js'
import { type SupportedLocale, translate } from '../locales/index.js'
export const errorPrefix = (locale: SupportedLocale, error: boolean) => (s: string) =>
- pipe(error ? translate(locale)('write-review-shared', 'errorPrefix')() : '', prefix => `${prefix}${s}`)
+ pipe(error ? translate(locale)('write-review', 'errorPrefix')() : '', prefix => `${prefix}${s}`)
export const backNav = (locale: SupportedLocale, href: string) =>
- html`${translate(locale)('write-review-shared', 'backNav')()}`
+ html`${translate(locale, 'write-review', 'backNav')()}`
export const errorSummary = (locale: SupportedLocale) => (errorItems: Html) => html`
- ${translate(locale)('write-review-shared', 'errorSummaryTitle')()}
+ ${translate(locale, 'write-review', 'errorSummaryTitle')()}
@@ -18,4 +18,4 @@ export const errorSummary = (locale: SupportedLocale) => (errorItems: Html) => h
`
export const saveAndContinueButton = (locale: SupportedLocale) =>
- html``
+ html``