mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-06-23 11:01:34 +00:00
Translate Swal buttons
This commit is contained in:
parent
3491559e9f
commit
b4cf5b57fa
17 changed files with 292 additions and 1 deletions
|
|
@ -20,11 +20,14 @@
|
|||
import Swal from 'sweetalert2';
|
||||
import 'sweetalert2/themes/bootstrap-5.css';
|
||||
import '../css/components/swal.css'
|
||||
|
||||
import { trans } from '../translator';
|
||||
|
||||
const BaseSwal = Swal.mixin({
|
||||
position: "top",
|
||||
theme: "bootstrap-5",
|
||||
confirmButtonText: trans('dialog.btn.ok'),
|
||||
cancelButtonText: trans('dialog.btn.cancel'),
|
||||
denyButtonText: trans('dialog.btn.deny'),
|
||||
});
|
||||
|
||||
const ConfirmSwal = BaseSwal.mixin({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue