diff --git a/public/globals.js b/public/globals.js
index 534456d40..d9508bcc3 100644
--- a/public/globals.js
+++ b/public/globals.js
@@ -148,9 +148,9 @@ window.pkp = {
*/
window.$.pkp = {
app: {
- currentLocale: 'en_US',
- primaryLocale: 'en_US',
- rtlLocales: ['ar_AR']
+ currentLocale: 'en',
+ primaryLocale: 'en',
+ rtlLocales: ['ar']
},
pkpHandler() {
alert(
diff --git a/public/mailable.json b/public/mailable.json
index 3c58a015e..398aabf9c 100644
--- a/public/mailable.json
+++ b/public/mailable.json
@@ -40,36 +40,36 @@
"alternateTo": null,
"body": {
"fr_CA": "Prière de saisir votre message.",
- "en_US": "Please enter your message."
+ "en": "Please enter your message."
},
"contextId": null,
"id": null,
"key": "DISCUSSION_NOTIFICATION_COPYEDITING",
"name": {
"fr_CA": "",
- "en_US": "Discussion (Copyediting)"
+ "en": "Discussion (Copyediting)"
},
"subject": {
"fr_CA": "Un message à propos de la revue {$journalName}",
- "en_US": "A message regarding {$journalName}"
+ "en": "A message regarding {$journalName}"
}
},
{
"_href": "http://localhost:8000/pu/api/v1/emailTemplates/CITATION_EDITOR_AUTHOR_QUERY",
"alternateTo": "DISCUSSION_NOTIFICATION_COPYEDITING",
"body": {
- "en_US": "{$recipientName},
\n
\nCould you please verify or provide us with the proper citation for the following reference from your article, {$submissionTitle}:
\n
\n{$rawCitation}
\n
\nThanks!
\n
\n{$senderName}
\nCopy-Editor, {$journalName}
\n",
+ "en": "{$recipientName},
\n
\nCould you please verify or provide us with the proper citation for the following reference from your article, {$submissionTitle}:
\n
\n{$rawCitation}
\n
\nThanks!
\n
\n{$senderName}
\nCopy-Editor, {$journalName}
\n",
"fr_CA": "{$recipientName},
\n
\nPourriez-vous vérifier ou nous fournir la référence bibliographique complète pour la référence suivante, provenant de votre article « {$submissionTitle} » :
\n
\n{$rawCitation}
\n
\nMerci!
\n
\n{$senderName}
\nRéviseur-e, revue {$journalName}
\n"
},
"contextId": 1,
"id": 2,
"key": "CITATION_EDITOR_AUTHOR_QUERY",
"name": {
- "en_US": "Question About Citation",
+ "en": "Question About Citation",
"fr_CA": ""
},
"subject": {
- "en_US": "Citation Editing",
+ "en": "Citation Editing",
"fr_CA": "Modification des références bibliographiques"
}
},
@@ -77,18 +77,18 @@
"_href": "http://localhost:8000/pu/api/v1/emailTemplates/COPYEDIT_REQUEST",
"alternateTo": "DISCUSSION_NOTIFICATION_COPYEDITING",
"body": {
- "en_US": "
Dear {$recipientName},
A new submission is ready to be copyedited:
{$submissionId} {$submissionTitle}
{$journalName}
Please follow these steps to complete this task:
If you are unable to undertake this work at this time or have any questions, please contact me. Thank you for your contribution to this journal.
Kind regards,
{$signature}", + "en": "Dear {$recipientName},
A new submission is ready to be copyedited:
{$submissionId} {$submissionTitle}
{$journalName}
Please follow these steps to complete this task:
If you are unable to undertake this work at this time or have any questions, please contact me. Thank you for your contribution to this journal.
Kind regards,
{$signature}", "fr_CA": "{$recipientName},Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
', fr_CA: '', - ar_AR: '', + ar: '', }, isMultilingual: true, wordCountLabel: 'Word Count: {$count}/{$limit}', diff --git a/src/docs/components/Form/helpers/field-rich-textarea-bio.js b/src/docs/components/Form/helpers/field-rich-textarea-bio.js index 67234b827..eceb5e5c5 100644 --- a/src/docs/components/Form/helpers/field-rich-textarea-bio.js +++ b/src/docs/components/Form/helpers/field-rich-textarea-bio.js @@ -8,9 +8,9 @@ export default { tooltip: 'Your biographical statement will usually include your department and rank, and may include research interests or key publications.', value: { - en_US: '', + en: '', fr_CA: '', - ar_AR: '', + ar: '', }, isMultilingual: true, }; diff --git a/src/docs/components/Form/helpers/field-rich-textarea-signature.js b/src/docs/components/Form/helpers/field-rich-textarea-signature.js index 422e310a1..4c37373b2 100644 --- a/src/docs/components/Form/helpers/field-rich-textarea-signature.js +++ b/src/docs/components/Form/helpers/field-rich-textarea-signature.js @@ -2,11 +2,11 @@ export default { name: 'signature', component: 'field-rich-textarea', label: { - en_US: 'Signature', + en: 'Signature', fr_CA: 'Signature', }, description: { - en_US: + en: 'Add a personal signature you would like to be included with any emails we send on your behalf.', fr_CA: 'Ajoutez une signature personnelle que vous souhaitez inclure dans les courriels que nous envoyons en votre nom.', @@ -16,7 +16,7 @@ export default { plugins: 'paste,link,noneditable', toolbar: 'bold italic superscript subscript | link', value: { - en_US: '', + en: '', fr_CA: '', }, }; diff --git a/src/docs/components/Form/helpers/field-text-affiliation.js b/src/docs/components/Form/helpers/field-text-affiliation.js index 4af2c80c9..e3569ec9a 100644 --- a/src/docs/components/Form/helpers/field-text-affiliation.js +++ b/src/docs/components/Form/helpers/field-text-affiliation.js @@ -6,8 +6,8 @@ export default { groupId: 'identity', isMultilingual: true, value: { - en_US: '', + en: '', fr_CA: '', - ar_AR: '', + ar: '', }, }; diff --git a/src/docs/components/Form/helpers/field-text-prefix.js b/src/docs/components/Form/helpers/field-text-prefix.js index 06afda28d..017a5b099 100644 --- a/src/docs/components/Form/helpers/field-text-prefix.js +++ b/src/docs/components/Form/helpers/field-text-prefix.js @@ -6,9 +6,9 @@ export default { description: 'Examples: A, The', size: 'small', value: { - en_US: 'The', + en: 'The', fr_CA: '', - ar_AR: '', + ar: '', }, isMultilingual: true, }; diff --git a/src/docs/components/Form/helpers/field-text-subtitle.js b/src/docs/components/Form/helpers/field-text-subtitle.js index aaacb7b49..fcee1a048 100644 --- a/src/docs/components/Form/helpers/field-text-subtitle.js +++ b/src/docs/components/Form/helpers/field-text-subtitle.js @@ -5,9 +5,9 @@ export default { label: 'Subtitle', size: 'large', value: { - en_US: 'A comparative analysis of functionality and roles', + en: 'A comparative analysis of functionality and roles', fr_CA: '', - ar_AR: '', + ar: '', }, isMultilingual: true, }; diff --git a/src/docs/components/Form/helpers/field-text-title.js b/src/docs/components/Form/helpers/field-text-title.js index 46a144b83..70b834c3a 100644 --- a/src/docs/components/Form/helpers/field-text-title.js +++ b/src/docs/components/Form/helpers/field-text-title.js @@ -6,9 +6,9 @@ export default { isRequired: true, size: 'large', value: { - en_US: 'Effect of Data Modelling and Conceptual Modelling', + en: 'Effect of Data Modelling and Conceptual Modelling', fr_CA: '', - ar_AR: '', + ar: '', }, isMultilingual: true, }; diff --git a/src/docs/components/Form/helpers/form-announcement.js b/src/docs/components/Form/helpers/form-announcement.js index 3e202564b..b2940a875 100644 --- a/src/docs/components/Form/helpers/form-announcement.js +++ b/src/docs/components/Form/helpers/form-announcement.js @@ -9,9 +9,9 @@ export default { { ...FieldTextTitle, value: { - en_US: '', + en: '', fr_CA: '', - ar_AR: '', + ar: '', }, groupId: 'default', }, @@ -23,9 +23,9 @@ export default { plugins: 'paste,link,noneditable', toolbar: 'bold italic superscript subscript | link', value: { - en_US: '', + en: '', fr_CA: '', - ar_AR: '', + ar: '', }, groupId: 'default', }, @@ -38,9 +38,9 @@ export default { plugins: 'paste,link,noneditable', toolbar: 'bold italic superscript subscript | link', value: { - en_US: '', + en: '', fr_CA: '', - ar_AR: '', + ar: '', }, groupId: 'default', }, @@ -84,7 +84,7 @@ export default { label: 'Français (Canada)', }, { - key: 'ar_AR', + key: 'ar', label: 'عربى', }, ], diff --git a/src/docs/components/Form/helpers/form-base.js b/src/docs/components/Form/helpers/form-base.js index 89c470aa1..110e30c74 100644 --- a/src/docs/components/Form/helpers/form-base.js +++ b/src/docs/components/Form/helpers/form-base.js @@ -28,7 +28,7 @@ export default { label: 'Français (Canada)', }, { - key: 'ar_AR', + key: 'ar', label: 'عربى', }, ], diff --git a/src/docs/components/Form/helpers/form-citations.js b/src/docs/components/Form/helpers/form-citations.js index e8a1cc383..aa2293225 100644 --- a/src/docs/components/Form/helpers/form-citations.js +++ b/src/docs/components/Form/helpers/form-citations.js @@ -27,7 +27,7 @@ export default { label: 'Français (Canada)', }, { - key: 'ar_AR', + key: 'ar', label: 'عربى', }, ], diff --git a/src/docs/components/Form/helpers/form-confirm.js b/src/docs/components/Form/helpers/form-confirm.js index 7e745d079..750f1a5ac 100644 --- a/src/docs/components/Form/helpers/form-confirm.js +++ b/src/docs/components/Form/helpers/form-confirm.js @@ -28,7 +28,7 @@ export default { label: 'Français (Canada)', }, { - key: 'ar_AR', + key: 'ar', label: 'عربى', }, ], diff --git a/src/docs/components/Form/helpers/form-email-template.js b/src/docs/components/Form/helpers/form-email-template.js index 59d323d87..f8c8dafce 100644 --- a/src/docs/components/Form/helpers/form-email-template.js +++ b/src/docs/components/Form/helpers/form-email-template.js @@ -12,7 +12,7 @@ export default { label: 'Name', name: 'name', value: { - en_US: '', + en: '', fr_CA: '', }, isMultilingual: true, @@ -24,7 +24,7 @@ export default { label: 'Subject', isMultilingual: true, value: { - en_US: '', + en: '', fr_CA: '', }, groupId: 'default', @@ -41,7 +41,7 @@ export default { toolbar: 'bold italic superscript subscript | link | blockquote bullist numlist', value: { - en_US: '', + en: '', fr_CA: '', }, insertLabel: 'Insert', diff --git a/src/docs/components/Form/helpers/form-for-the-editors.js b/src/docs/components/Form/helpers/form-for-the-editors.js index 4bd9f66f3..bec49d9fc 100644 --- a/src/docs/components/Form/helpers/form-for-the-editors.js +++ b/src/docs/components/Form/helpers/form-for-the-editors.js @@ -43,7 +43,7 @@ export default { label: 'Français (Canada)', }, { - key: 'ar_AR', + key: 'ar', label: 'عربى', }, ], diff --git a/src/docs/components/Form/helpers/form-groups.js b/src/docs/components/Form/helpers/form-groups.js index d6692db1a..ffa53deca 100644 --- a/src/docs/components/Form/helpers/form-groups.js +++ b/src/docs/components/Form/helpers/form-groups.js @@ -27,7 +27,7 @@ export default { label: 'Français (Canada)', }, { - key: 'ar_AR', + key: 'ar', label: 'عربى', }, ], diff --git a/src/docs/components/Form/helpers/form-institution.js b/src/docs/components/Form/helpers/form-institution.js index 8ee95c6c4..8cf6dca39 100644 --- a/src/docs/components/Form/helpers/form-institution.js +++ b/src/docs/components/Form/helpers/form-institution.js @@ -13,9 +13,9 @@ export default { isRequired: true, size: 'large', value: { - en_US: '', + en: '', fr_CA: '', - ar_AR: '', + ar: '', }, isMultilingual: true, groupId: 'default', @@ -45,7 +45,7 @@ export default { label: 'Français (Canada)', }, { - key: 'ar_AR', + key: 'ar', label: 'عربى', }, ], diff --git a/src/docs/components/Form/helpers/form-metadata.js b/src/docs/components/Form/helpers/form-metadata.js index a7d59d84a..c1b51082b 100644 --- a/src/docs/components/Form/helpers/form-metadata.js +++ b/src/docs/components/Form/helpers/form-metadata.js @@ -27,7 +27,7 @@ export default { label: 'Français (Canada)', }, { - key: 'ar_AR', + key: 'ar', label: 'عربى', }, ], diff --git a/src/docs/components/Form/helpers/form-multilingual.js b/src/docs/components/Form/helpers/form-multilingual.js index eb8c25a66..56088566a 100644 --- a/src/docs/components/Form/helpers/form-multilingual.js +++ b/src/docs/components/Form/helpers/form-multilingual.js @@ -25,7 +25,7 @@ export default { label: 'Français (Canada)', }, { - key: 'ar_AR', + key: 'ar', label: 'عربى', }, ], diff --git a/src/docs/components/Form/helpers/form-relations.js b/src/docs/components/Form/helpers/form-relations.js index 1ff0ff992..d49b65abb 100644 --- a/src/docs/components/Form/helpers/form-relations.js +++ b/src/docs/components/Form/helpers/form-relations.js @@ -40,7 +40,7 @@ export default { label: 'Français (Canada)', }, { - key: 'ar_AR', + key: 'ar', label: 'عربى', }, ], diff --git a/src/docs/components/Form/helpers/form-test.js b/src/docs/components/Form/helpers/form-test.js index 8d4abf47b..77f650498 100644 --- a/src/docs/components/Form/helpers/form-test.js +++ b/src/docs/components/Form/helpers/form-test.js @@ -35,7 +35,7 @@ export default { label: 'Français (Canada)', }, { - key: 'ar_AR', + key: 'ar', label: 'عربى', }, ], diff --git a/src/docs/components/Form/helpers/form-title-abstract.js b/src/docs/components/Form/helpers/form-title-abstract.js index 1ff0ff992..d49b65abb 100644 --- a/src/docs/components/Form/helpers/form-title-abstract.js +++ b/src/docs/components/Form/helpers/form-title-abstract.js @@ -40,7 +40,7 @@ export default { label: 'Français (Canada)', }, { - key: 'ar_AR', + key: 'ar', label: 'عربى', }, ], diff --git a/src/docs/components/Form/helpers/form-user.js b/src/docs/components/Form/helpers/form-user.js index 8f9f939df..4f8af08c6 100644 --- a/src/docs/components/Form/helpers/form-user.js +++ b/src/docs/components/Form/helpers/form-user.js @@ -81,7 +81,7 @@ export default { label: 'Français (Canada)', }, { - key: 'ar_AR', + key: 'ar', label: 'عربى', }, ], diff --git a/src/docs/components/Form/helpers/form.js b/src/docs/components/Form/helpers/form.js index cde5fbc89..b095449be 100644 --- a/src/docs/components/Form/helpers/form.js +++ b/src/docs/components/Form/helpers/form.js @@ -13,11 +13,11 @@ export default { }, }, ], - primaryLocale: 'en_US', - visibleLocales: ['en_US'], + primaryLocale: 'en', + visibleLocales: ['en'], supportedFormLocales: [ { - key: 'en_US', + key: 'en', label: 'English', }, ], diff --git a/src/docs/components/Form/previews/PreviewErrors.vue b/src/docs/components/Form/previews/PreviewErrors.vue index 6f0181147..3dd20a608 100644 --- a/src/docs/components/Form/previews/PreviewErrors.vue +++ b/src/docs/components/Form/previews/PreviewErrors.vue @@ -17,9 +17,9 @@ export default { errors: { email: ['Please provide a valid email address'], affiliation: { - en_US: ['You must enter your affiliation in English.'], + en: ['You must enter your affiliation in English.'], fr_CA: ['You must enter your affiliation in French.'], - ar_AR: ['You must enter your affiliation in Arabic.'], + ar: ['You must enter your affiliation in Arabic.'], }, 'user-locales': ['You must select at least two options.'], bio: { diff --git a/src/docs/components/ListPanel/previews/PreviewAnnouncementsListPanel.vue b/src/docs/components/ListPanel/previews/PreviewAnnouncementsListPanel.vue index 7a959eae3..7779ba873 100644 --- a/src/docs/components/ListPanel/previews/PreviewAnnouncementsListPanel.vue +++ b/src/docs/components/ListPanel/previews/PreviewAnnouncementsListPanel.vue @@ -31,9 +31,9 @@ export default { datePosted: '2020-01-29', id: 1, title: { - en_US: 'Eros in cursus turpis massa tincidunt dui ut ornare lectus', + en: 'Eros in cursus turpis massa tincidunt dui ut ornare lectus', fr_CA: 'Eros in cursus turpis massa tincidunt dui ut ornare lectus', - ar_AR: 'Eros in cursus turpis massa tincidunt dui ut ornare lectus', + ar: 'Eros in cursus turpis massa tincidunt dui ut ornare lectus', }, }, { @@ -42,11 +42,11 @@ export default { datePosted: '2019-12-12', id: 2, title: { - en_US: + en: 'Elit ullamcorper dignissim cras tincidunt lobortis feugiat vivamus at turpis massa tincidunt dui ut ornare lectus', fr_CA: 'Elit ullamcorper dignissim cras tincidunt lobortis feugiat vivamus at turpis massa tincidunt dui ut ornare lectus', - ar_AR: + ar: 'Elit ullamcorper dignissim cras tincidunt lobortis feugiat vivamus at turpis massa tincidunt dui ut ornare lectus', }, }, @@ -56,9 +56,9 @@ export default { datePosted: '2019-11-09', id: 3, title: { - en_US: 'Risus feugiat in ante metus dictum at', + en: 'Risus feugiat in ante metus dictum at', fr_CA: 'Risus feugiat in ante metus dictum at', - ar_AR: 'Risus feugiat in ante metus dictum at', + ar: 'Risus feugiat in ante metus dictum at', }, }, { @@ -67,11 +67,11 @@ export default { datePosted: '2019-09-21', id: 4, title: { - en_US: + en: 'Morbi tincidunt ornare massa eget egestas purus viverra accumsan', fr_CA: 'Morbi tincidunt ornare massa eget egestas purus viverra accumsan', - ar_AR: + ar: 'Morbi tincidunt ornare massa eget egestas purus viverra accumsan', }, }, @@ -81,9 +81,9 @@ export default { datePosted: '2019-05-15', id: 5, title: { - en_US: 'Nibh praesent tristique magna sit amet purus gravida quis', + en: 'Nibh praesent tristique magna sit amet purus gravida quis', fr_CA: 'Nibh praesent tristique magna sit amet purus gravida quis', - ar_AR: 'Nibh praesent tristique magna sit amet purus gravida quis', + ar: 'Nibh praesent tristique magna sit amet purus gravida quis', }, }, ]; diff --git a/src/docs/components/ListPanel/previews/PreviewCatalogListPanel.vue b/src/docs/components/ListPanel/previews/PreviewCatalogListPanel.vue index 3eab262c9..6026be1cf 100644 --- a/src/docs/components/ListPanel/previews/PreviewCatalogListPanel.vue +++ b/src/docs/components/ListPanel/previews/PreviewCatalogListPanel.vue @@ -105,11 +105,11 @@ export default { }, }, ], - primaryLocale: 'en_US', - visibleLocales: ['en_US'], + primaryLocale: 'en', + visibleLocales: ['en'], supportedFormLocales: [ { - key: 'en_US', + key: 'en', label: 'English', }, ], diff --git a/src/docs/components/ListPanel/previews/PreviewInstitutionsListPanel.vue b/src/docs/components/ListPanel/previews/PreviewInstitutionsListPanel.vue index 77fd15a1e..9d3e2652a 100644 --- a/src/docs/components/ListPanel/previews/PreviewInstitutionsListPanel.vue +++ b/src/docs/components/ListPanel/previews/PreviewInstitutionsListPanel.vue @@ -26,35 +26,35 @@ export default { { id: 1, name: { - en_US: 'Institution 1 Name EN', + en: 'Institution 1 Name EN', fr_CA: 'Institution 1 Name FR', - ar_AR: 'Institution 1 Name AR', + ar: 'Institution 1 Name AR', }, ipRanges: ['142.60.*.*'], }, { id: 2, name: { - en_US: 'Institution 2 Name EN', + en: 'Institution 2 Name EN', fr_CA: 'Institution 2 Name FR', - ar_AR: 'Institution 2 Name AR', + ar: 'Institution 2 Name AR', }, ipRanges: ['142.58.103.1 - 142.58.103.4', '142.59.*.*'], }, { id: 3, name: { - en_US: 'Institution 3 Name EN', + en: 'Institution 3 Name EN', fr_CA: 'Institution 3 Name FR', - ar_AR: 'Institution 3 Name AR', + ar: 'Institution 3 Name AR', }, }, { id: 4, name: { - en_US: 'Institution 4 Name EN', + en: 'Institution 4 Name EN', fr_CA: 'Institution 4 Name FR', - ar_AR: 'Institution 4 Name AR', + ar: 'Institution 4 Name AR', }, }, ]; diff --git a/src/docs/components/ListPanel/previews/PreviewSelectReviewerListPanel.vue b/src/docs/components/ListPanel/previews/PreviewSelectReviewerListPanel.vue index 449326895..fa0c826a9 100644 --- a/src/docs/components/ListPanel/previews/PreviewSelectReviewerListPanel.vue +++ b/src/docs/components/ListPanel/previews/PreviewSelectReviewerListPanel.vue @@ -67,7 +67,7 @@ export default { reviewerRating: 5, orcid: 'http://orcid.org/0000-0002-1825-0097', biography: { - en_US: + en: 'Professor Aisla McCrae is a senior research fellow in the Publishing Studies Department in the School of Publishing at the University of Manitoba. She is the deputy chair of the Manitoba Publishing Institute and the author of Publishing Now and Forever: Recent Developments in Archival Permanence.
', }, gossip: diff --git a/src/docs/components/ListPanel/previews/PreviewSubmissionFilesListPanel.vue b/src/docs/components/ListPanel/previews/PreviewSubmissionFilesListPanel.vue index 870e08cfc..2e8717558 100644 --- a/src/docs/components/ListPanel/previews/PreviewSubmissionFilesListPanel.vue +++ b/src/docs/components/ListPanel/previews/PreviewSubmissionFilesListPanel.vue @@ -13,7 +13,7 @@ :items="components.preview.items" :options="components.preview.options" otherLabel="Other" - primaryLocale="en_US" + primaryLocale="en" removeConfirmLabel="Are you sure you want to remove this file?" :stageId="1" title="Files" @@ -44,7 +44,7 @@ export default { id: 235, fileId: 1234, name: { - en_US: 'file-with-no-genre-assignment-yet.docx', + en: 'file-with-no-genre-assignment-yet.docx', fr_CA: 'french-file-with-no-genre-assignment-yet.docx', }, genre: null, diff --git a/src/docs/components/Page/previews/PreviewPage.vue b/src/docs/components/Page/previews/PreviewPage.vue index eed997eaa..6071c66d0 100644 --- a/src/docs/components/Page/previews/PreviewPage.vue +++ b/src/docs/components/Page/previews/PreviewPage.vue @@ -63,7 +63,7 @@Dear {$senderName},
+ en: `Dear {$senderName},
I am delighted to inform you that your submission, {$submissionTitle}, has been accepted for publication. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Sincerely,
{$senderName}
{$journalName}
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
', fr_CA: 'FR Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
', @@ -17,29 +17,29 @@ export default { categoryIds: [2, 3], citations: { fr_CA: '', - en_US: '', + en: '', }, copyrightHolder: { fr_CA: '', - en_US: '', + en: '', }, copyrightYear: null, coverImage: { fr_CA: null, - en_US: null, + en: null, }, coverage: { fr_CA: '', - en_US: '', + en: '', }, datePublished: null, disciplines: { fr_CA: [], - en_US: [], + en: [], }, doiObject: {...doi}, fullTitle: { - en_US: + en: 'The Lorem ipsum dolor sit amet: Excepteur sint occaecat cupidatat non proident', fr_CA: 'Le Frorem ipsum dolor sit amet: Frexcepteur sint occaecat cupidatat non proident', @@ -50,7 +50,7 @@ export default { id: 7, isApproved: false, label: 'PDF', - locale: 'en_US', + locale: 'en', doiObject: {...doi}, publicationId: 17, seq: 0, @@ -62,7 +62,7 @@ export default { id: 8, isApproved: false, label: 'Remote', - locale: 'en_US', + locale: 'en', doiObject: {...doi}, publicationId: 17, seq: 1, @@ -74,7 +74,7 @@ export default { id: 9, isApproved: false, label: 'Supplementaru', - locale: 'en_US', + locale: 'en', doiObject: {...doi}, publicationId: 17, seq: 2, @@ -87,56 +87,56 @@ export default { isPublished: false, issueId: null, keywords: { - en_US: ['new keyword', 'and second keyword'], + en: ['new keyword', 'and second keyword'], fr_CA: ['fr keyword one', 'fr keyword two'], }, language: null, lastModified: '2019-06-06 15:00:37', licenseUrl: null, - locale: 'en_US', + locale: 'en', pages: null, prefix: { fr_CA: 'Le', - en_US: 'The', + en: 'The', }, primaryContactId: 20, 'pub-id::publisher-id': 'lorem-ipsum', publicationDateType: 'pub', publicationSummary: { fr_CA: '', - en_US: '', + en: '', }, publicationType: 'publication', rights: { fr_CA: '', - en_US: '', + en: '', }, sectionId: 1, seq: 0, source: { fr_CA: '', - en_US: '', + en: '', }, subjects: { fr_CA: [], - en_US: [], + en: [], }, submissionId: 17, subtitle: { - en_US: 'Excepteur sint occaecat cupidatat non proident', + en: 'Excepteur sint occaecat cupidatat non proident', fr_CA: 'Frexcepteur sint occaecat cupidatat non proident', }, supportingAgencies: { fr_CA: [], - en_US: [], + en: [], }, title: { - en_US: 'Lorem ipsum dolor sit amet', + en: 'Lorem ipsum dolor sit amet', fr_CA: 'Frorem ipsum dolor sit amet', }, type: { fr_CA: '', - en_US: '', + en: '', }, urlPublished: 'http://localhost:8000/publicknowledge/article/view/lorem-ipsum/version/17', diff --git a/src/docs/data/reviewer.js b/src/docs/data/reviewer.js index a38319cbd..cbba517ff 100644 --- a/src/docs/data/reviewer.js +++ b/src/docs/data/reviewer.js @@ -4,16 +4,16 @@ export default { userName: 'exampleuser', fullName: 'Jane Doe', affiliation: { - en_US: 'University of Nowhere', + en: 'University of Nowhere', }, groups: [ { id: 1, name: { - en_US: 'Reviewer', + en: 'Reviewer', }, abbrev: { - en_US: 'RV', + en: 'RV', }, roleId: 4096, // reviewer showTitle: true, diff --git a/src/docs/data/submissionFiles.js b/src/docs/data/submissionFiles.js index 48ed21746..5d13f5f8b 100644 --- a/src/docs/data/submissionFiles.js +++ b/src/docs/data/submissionFiles.js @@ -3,12 +3,12 @@ export default [ id: 232, fileId: 1232, name: { - en_US: 'influence-lactation-final-v2-edited-final.docx', + en: 'influence-lactation-final-v2-edited-final.docx', fr_CA: 'french-influence-lactation-final-v2-edited-final.docx', }, genreId: 1, genreName: { - en_US: 'Book Manuscript', + en: 'Book Manuscript', fr_CA: 'FR Book Manuscript', }, genreIsDependent: false, @@ -21,12 +21,12 @@ export default [ id: 233, fileId: 1233, name: { - en_US: 'ccorino-disclosure-statement.docx', + en: 'ccorino-disclosure-statement.docx', fr_CA: 'french-ccorino-disclosure-statement.docx', }, genreId: 1, genreName: { - en_US: 'Other', + en: 'Other', fr_CA: 'FR Other', }, genreIsDependent: false, @@ -40,12 +40,12 @@ export default [ id: 234, fileId: 1234, name: { - en_US: 'influence-lactation-dataset-approved.xls', + en: 'influence-lactation-dataset-approved.xls', fr_CA: 'french-influence-lactation-dataset-approved.xls', }, genreId: 1, genreName: { - en_US: 'Dataset', + en: 'Dataset', fr_CA: 'FR Dataset', }, genreIsDependent: false, diff --git a/src/docs/data/submissions.js b/src/docs/data/submissions.js index 731a77ab4..d25d75145 100644 --- a/src/docs/data/submissions.js +++ b/src/docs/data/submissions.js @@ -21,7 +21,7 @@ export default [ crossref_failedMsg: 'This is a sample failure message', }, fullTitle: { - en_US: + en: 'Quisque vel ultrices ut vel sollicitudin vel varius suscipit phasellus', }, isPublished: true, @@ -50,7 +50,7 @@ export default [ authorsString: 'Domatilia Sokoloff', authorsStringShort: 'Sokoloff', fullTitle: { - en_US: 'Metus ut elit est ultrices vivamus mauris est quisque arcu', + en: 'Metus ut elit est ultrices vivamus mauris est quisque arcu', }, }, ], @@ -81,7 +81,7 @@ export default [ authorsString: '', authorsStringShort: '', fullTitle: { - en_US: + en: 'Submission title when current user is assigned as reviewer and editor', }, }, @@ -128,7 +128,7 @@ export default [ authorsString: 'Convallis Tellus', authorsStringShort: 'Tellus', fullTitle: { - en_US: + en: 'Scelerisque felis imperdiet proin fermentum: Pretium quam vulputate dignissim suspendisse in est', }, }, @@ -188,7 +188,7 @@ export default [ authorsString: 'Curabitur Eget', authorsStringShort: 'Eget', fullTitle: { - en_US: 'Mi eget mauris pharetra et ultrices neque ornare aenean', + en: 'Mi eget mauris pharetra et ultrices neque ornare aenean', }, }, ], @@ -247,7 +247,7 @@ export default [ authorsString: 'Sed Aenean', authorsStringShort: 'Aenean', fullTitle: { - en_US: 'Sed sed mattis amet eget aenean leo est nam sit', + en: 'Sed sed mattis amet eget aenean leo est nam sit', }, }, ], @@ -295,7 +295,7 @@ export default [ authorsString: 'Lacus Agittis', authorsStringShort: 'Agittis', fullTitle: { - en_US: 'Lacus ut leo dolor nam neque nam dolor aenean sagittis', + en: 'Lacus ut leo dolor nam neque nam dolor aenean sagittis', }, }, ], @@ -343,7 +343,7 @@ export default [ authorsString: 'Ullamco Excepteur', authorsStringShort: 'Excepteur', fullTitle: { - en_US: + en: 'Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur', }, }, @@ -390,7 +390,7 @@ export default [ authorsString: '', authorsStringShort: '', fullTitle: { - en_US: 'Submission title when current user has completed a review', + en: 'Submission title when current user has completed a review', }, }, ], diff --git a/src/docs/pages/localization.md b/src/docs/pages/localization.md index fdd21745b..233010028 100644 --- a/src/docs/pages/localization.md +++ b/src/docs/pages/localization.md @@ -38,7 +38,7 @@ Multilingual fields are provided as a JSON object with keys specifying the local ```js { "name": { - "en_US": "Journal of Public Knowledge", + "en": "Journal of Public Knowledge", "fr_CA": "Journal de la connaissance du public" }, ...