Added translations to questions about are you sure.

Thanks to xet7 !

Related https://github.com/wekan/wekan/pull/5745
This commit is contained in:
Lauri Ojansivu 2025-04-25 18:24:40 +03:00
parent bc2eab6f9d
commit 4d145ab4ad
2 changed files with 6 additions and 5 deletions

View file

@ -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'() {