From f6a05ec1183aace435b0a2aa37eedd273e927ce6 Mon Sep 17 00:00:00 2001 From: ipula Date: Thu, 31 Oct 2024 11:28:50 +0100 Subject: [PATCH] add privacy statement as param in language files --- public/globals.js | 2 +- .../AcceptInvitationUserAccountDetails.vue | 10 +++------- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/public/globals.js b/public/globals.js index 03a259a27..0d9515038 100644 --- a/public/globals.js +++ b/public/globals.js @@ -708,7 +708,7 @@ window.pkp = { 'acceptInvitation.modal.message':'Congratulations on your new role in OJS! You might now have access to new options. If you need assistance navigating the system, please click on the “Help” buttons throughout the interface for guidance', 'acceptInvitation.modal.button':'View All Submissions', 'acceptInvitation.privacyStatement.btn':'Privacy Statement', - 'acceptInvitation.privacyStatement.label':'Yes, I agree to have my data collected and stored according to the', + 'acceptInvitation.privacyStatement.label':'Yes, I agree to have my data collected and stored according to the {$url}', 'invitation.cancel': 'Cancel Invite', 'invitation.inviteToRole.btn': 'Invite to a role', 'invitation.header': 'Invitation', diff --git a/src/pages/acceptInvitation/AcceptInvitationUserAccountDetails.vue b/src/pages/acceptInvitation/AcceptInvitationUserAccountDetails.vue index 1623293da..edb2ff902 100644 --- a/src/pages/acceptInvitation/AcceptInvitationUserAccountDetails.vue +++ b/src/pages/acceptInvitation/AcceptInvitationUserAccountDetails.vue @@ -66,13 +66,9 @@ const {pageUrl} = useUrl('about/privacy'); const options = [ { value: true, - label: - t('acceptInvitation.privacyStatement.label') + - ' ' + - t('acceptInvitation.privacyStatement.btn') + - ' ', + label: t('acceptInvitation.privacyStatement.label', { + url: `${t('acceptInvitation.privacyStatement.btn')}`, + }), }, ]; const store = useAcceptInvitationPageStore();