-
-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fb4c798
commit fcd1d75
Showing
10 changed files
with
73 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
|
||
namespace Kirby\Panel\Ui; | ||
|
||
use Kirby\Toolkit\I18n; | ||
|
||
/** | ||
* @package Kirby Panel | ||
* @author Bastian Allgeier <[email protected]> | ||
|
@@ -28,9 +30,9 @@ public function __construct( | |
public string|null $size = null, | ||
public string|null $style = null, | ||
public string|null $target = null, | ||
public string|null $text = null, | ||
public string|array|null $text = null, | ||
public string|null $theme = null, | ||
public string|null $title = null, | ||
public string|array|null $title = null, | ||
public string $type = 'button', | ||
public string|null $variant = null, | ||
) { | ||
|
@@ -51,9 +53,9 @@ public function props(): array | |
'responsive' => $this->responsive, | ||
'size' => $this->size, | ||
'target' => $this->target, | ||
'text' => $this->text, | ||
'text' => I18n::translate($this->text, $this->text), | ||
'theme' => $this->theme, | ||
'title' => $this->title, | ||
'title' => I18n::translate($this->title, $this->title), | ||
'type' => $this->type, | ||
'variant' => $this->variant, | ||
]; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters