diff --git a/client/components/boards/boardsList.js b/client/components/boards/boardsList.js index dbdd3789c..101c1d5be 100644 --- a/client/components/boards/boardsList.js +++ b/client/components/boards/boardsList.js @@ -239,7 +239,7 @@ BlazeComponent.extendComponent({ evt.preventDefault(); }, 'click .js-clone-board'(evt) { - if (confirm('Are you sure you want to clone this board?')) { + if (confirm(TAPi18n.__('duplicate-board-confirm')) { let title = getSlug(ReactiveCache.getBoard(this.currentData()._id).title) || 'cloned-board'; @@ -268,11 +268,10 @@ BlazeComponent.extendComponent({ } }, 'click .js-archive-board'(evt) { - if (confirm('Are you sure you want to archive this board?')) - { + if (confirm(TAPi18n.__('archive-board-confirm')) { const boardId = this.currentData()._id; - Meteor.call('archiveBoard', boardId); - evt.preventDefault(); + Meteor.call('archiveBoard', boardId); + evt.preventDefault(); } }, 'click .js-accept-invite'() { diff --git a/imports/i18n/data/en.i18n.json b/imports/i18n/data/en.i18n.json index 78b62d375..10260ff2b 100644 --- a/imports/i18n/data/en.i18n.json +++ b/imports/i18n/data/en.i18n.json @@ -125,6 +125,7 @@ "archive": "Move to Archive", "archive-all": "Move All to Archive", "archive-board": "Move Board to Archive", + "archive-board-confirm": "Are you sure you want to archive this board?", "archive-card": "Move Card to Archive", "archive-list": "Move List to Archive", "archive-swimlane": "Move Swimlane to Archive", @@ -896,6 +897,7 @@ "oidc-button-text": "Customize the OIDC button text", "default-authentication-method": "Default Authentication Method", "duplicate-board": "Duplicate Board", + "duplicate-board-confirm": "Are you sure you want to duplicate this board?", "org-number": "The number of organizations is: ", "team-number": "The number of teams is: ", "people-number": "The number of people is: ",