Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
we change lang translation separator(-) to underscore(-) to make it similar to all other translations.
  • Loading branch information
hemant-kr-meena committed Jun 25, 2024
1 parent 62f03df commit 50d8676
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Components/Actions/Macros.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,14 +199,14 @@ public static function boot(): void
$this->dynamicProperties['confirm'] = [
'component' => 'button',
'attribute' => 'wire:confirm',
'value' => $message ?? trans('livewire-powergrid::datatable.buttons-macros.confirm.message'),
'value' => $message ?? trans('livewire-powergrid::datatable.buttons_macros.confirm.message'),
];

return $this;
});

Button::macro('confirmPrompt', function (?string $message = null, string $confirmValue = 'Confirm') {
$message = $message ?? trans('livewire-powergrid::datatable.buttons-macros.confirm-prompt.message', ['confirm_value' => $confirmValue]);
$message = $message ?? trans('livewire-powergrid::datatable.buttons_macros.confirm_prompt.message', ['confirm_value' => $confirmValue]);
$confirm_value = trim($confirmValue);
$this->dynamicProperties['confirmPrompt'] = [
'component' => 'button',
Expand Down

0 comments on commit 50d8676

Please sign in to comment.