Skip to content

Commit

Permalink
added some languages
Browse files Browse the repository at this point in the history
  • Loading branch information
marcorombach committed Aug 15, 2024
1 parent c525087 commit 576b3a1
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 6 deletions.
4 changes: 0 additions & 4 deletions resources/js/livewire-confirm-modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ document.addEventListener('alpine:init', () => {
title: 'default',
description: 'default',

toggle(){
this.show = !this.show;
},
hide(){
this.show = false;
},
Expand Down Expand Up @@ -35,7 +32,6 @@ function parseMethod(rawMethod){
return { method: method, params: params }
}


Livewire.directive('confirm-modal', ({ el, directive, component, cleanup }) => {
let content = directive.expression;

Expand Down
4 changes: 2 additions & 2 deletions resources/lang/en/confirm-modal.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

return [
'continue' => 'Weiter',
'cancel' => 'Abbrechen',
'continue' => 'Continue',
'cancel' => 'Cancel',
];
6 changes: 6 additions & 0 deletions resources/lang/es/confirm-modal.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php

return [
'continue' => 'Continuar',
'cancel' => 'Cancelar',
];
6 changes: 6 additions & 0 deletions resources/lang/fr/confirm-modal.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php

return [
'continue' => 'Continuer',
'cancel' => 'Annuler',
];
6 changes: 6 additions & 0 deletions resources/lang/pt/confirm-modal.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php

return [
'continue' => 'Continuar',
'cancel' => 'Cancelar',
];

0 comments on commit 576b3a1

Please sign in to comment.